CVE-2026-53222

published 25 Jun 2026 · updated 15 Oct 2026

ptp: ocp: fix resource freeing order

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 627366c51145a07f675b1800fb5ea2ec960bd900, Kernel aa03698bb28d3be5ee180adb185395054b342b04 and Kernel daacc9d1430b63f6bee6e5646def5d6414d35c4e.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.18, >=a60fc3294a377204664b5484e4a487fa124155da <627366c51145a07f675b1800fb5ea2ec960bd900, >=a60fc3294a377204664b5484e4a487fa124155da <aa03698bb28d3be5ee180adb185395054b342b04, >=a60fc3294a377204664b5484e4a487fa124155da <daacc9d1430b63f6bee6e5646def5d6414d35c4e627366c51145a07f675b1800fb5ea2ec960bd900, aa03698bb28d3be5ee180adb185395054b342b04, daacc9d1430b63f6bee6e5646def5d6414d35c4e

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-53222 severity on Zeptric[![CVE-2026-53222](https://zeptric.io/badge/cve/CVE-2026-53222.svg)](https://zeptric.io/cve/CVE-2026-53222)