What’s Vulnerable › Vulnerabilities
CVE-2026-53222: ptp: ocp: fix resource freeing order
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-25 · updated 2026-10-15
- Weakness: CWE-401
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.
Affected products
- Linux kernel: from 6.18 before 7.0.13; 7.1-rc1, 7.1-rc2, 7.1-rc3, 7.1-rc4, 7.1-rc5, 7.1-rc6 (+1) — fixed in 7.0.13
How to fix
Upgrade to a fixed version: Linux kernel 7.0.13. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/627366c51145a07f675b1800fb5ea2ec960bd900
- https://git.kernel.org/stable/c/aa03698bb28d3be5ee180adb185395054b342b04
- https://git.kernel.org/stable/c/daacc9d1430b63f6bee6e5646def5d6414d35c4e
Get alerted when CVE-2026-53222 or the next vulnerability affects your stack