CVE-2026-53222 ptp: ocp: fix resource freeing order

Medium 5.5 Published Updated

A use-after-free vulnerability in the Linux kernel PTP OCP driver allows attackers to cause denial of service or execute code during driver removal.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-53222?

CVE-2026-53222 is a medium-severity use after free vulnerability in Linux kernel, published on 25 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

ptp: ocp: fix resource freeing order

Commit a60fc3294a37 ("ptp: rework ptp_clock_unregister() to disable events") added a call to ptp_disable_all_events() which changes the configuration of pins if they support EXTTS events. In ptp_ocp_detach() pins resources are freed before ptp_clock_unregister() and it leads to use-after-free during driver removal. Fix it by changing the order of free/unregister calls. To avoid irq handler running on the other core while ptp device unregistering, call synchronize_irq() after HW is configured to stop producing irqs and no irqs are in-flight.

Weakness: CWE-401

Which versions are affected by CVE-2026-53222?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-53222?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-53222 being exploited?

There is no known exploitation of CVE-2026-53222 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2026-53222, DEBIAN-CVE-2026-53222, GHSA-prx4-x7m8-p9m9, UBUNTU-CVE-2026-53222.

Is CVE-2026-53222 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free