{"id":"CVE-2026-53222","aliases":["CVE-2026-53222"],"related":[],"kind":"vulnerability","state":"published","title":"ptp: ocp: fix resource freeing order","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-06-25T08:39:23.934Z","modified":"2026-10-15T11:17:36.737Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"a60fc3294a377204664b5484e4a487fa124155da","fixed":"daacc9d1430b63f6bee6e5646def5d6414d35c4e","status":"affected"},{"type":"git","introduced":"a60fc3294a377204664b5484e4a487fa124155da","fixed":"aa03698bb28d3be5ee180adb185395054b342b04","status":"affected"},{"type":"git","introduced":"a60fc3294a377204664b5484e4a487fa124155da","fixed":"627366c51145a07f675b1800fb5ea2ec960bd900","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.13","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.18","fixed":"7.0.13"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/daacc9d1430b63f6bee6e5646def5d6414d35c4e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aa03698bb28d3be5ee180adb185395054b342b04","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/627366c51145a07f675b1800fb5ea2ec960bd900","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53222","url":"https://www.cve.org/CVERecord?id=CVE-2026-53222","licence":"CVE Terms of Use","modified":"2026-10-15T10:07:43.087Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53222","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53222","licence":"Public domain","modified":"2026-10-15T11:17:36.737Z"}],"updatedAt":"2026-11-25T22:59:26.320Z","epss":{"score":0.00117,"percentile":0.01845,"date":"2026-12-01T12:00:22.000Z"}}