{"id":"CVE-2026-53222","published":"2026-06-25T08:39:23Z","modified":"2026-10-15T10:07:43Z","title":"ptp: ocp: fix resource freeing order","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: ocp: fix resource freeing order\n\nCommit a60fc3294a37 (\"ptp: rework ptp_clock_unregister() to disable\nevents\") added a call to ptp_disable_all_events() which changes the\nconfiguration of pins if they support EXTTS events. In ptp_ocp_detach()\npins resources are freed before ptp_clock_unregister() and it leads to\nuse-after-free during driver removal. Fix it by changing the order of\nfree/unregister calls. To avoid irq handler running on the other core\nwhile ptp device unregistering, call synchronize_irq() after HW is\nconfigured to stop producing irqs and no irqs are in-flight.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00155,"percentile":0.04636,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/daacc9d1430b63f6bee6e5646def5d6414d35c4e","tags":[]},{"url":"https://git.kernel.org/stable/c/aa03698bb28d3be5ee180adb185395054b342b04","tags":[]},{"url":"https://git.kernel.org/stable/c/627366c51145a07f675b1800fb5ea2ec960bd900","tags":[]}],"priority":{"score":0.9,"factors":[{"name":"EPSS percentile","points":0.93}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a60fc3294a377204664b5484e4a487fa124155da, < daacc9d1430b63f6bee6e5646def5d6414d35c4e",">= a60fc3294a377204664b5484e4a487fa124155da, < aa03698bb28d3be5ee180adb185395054b342b04",">= a60fc3294a377204664b5484e4a487fa124155da, < 627366c51145a07f675b1800fb5ea2ec960bd900"]},{"vendor":"Linux","product":"Linux","versions":["6.18"]}],"euvd":{"id":"EUVD-2026-39313","exploited":false,"provenance":"source"}}