{"id":"CVE-2026-53222","revision":"e9b559ace2e742569c6aee6c17d30a40","records":[{"revision":"e9b559ace2e742569c6aee6c17d30a40","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-53222","aliases":[],"title":"ptp: ocp: fix resource freeing order","description":"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.","state":0,"publishedAt":"2026-06-25T08:39:23.934+00:00","modifiedAt":"2026-10-15T10:07:43.087+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/ptp/ptp_ocp.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"a60fc3294a377204664b5484e4a487fa124155da\",\n                            \"lessThan\": \"daacc9d1430b63f6bee6e5646def5d6414d35c4e\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"a60fc3294a377204664b5484e4a487fa124155da\",\n                            \"lessThan\": \"aa03698bb28d3be5ee180adb185395054b342b04\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"a60fc3294a377204664b5484e4a487fa124155da\",\n                            \"lessThan\": \"627366c51145a07f675b1800fb5ea2ec960bd900\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/ptp/ptp_ocp.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.18\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.18\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.57\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.0.13\",\n                            \"lessThanOrEqual\": \"7.0.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.1\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/daacc9d1430b63f6bee6e5646def5d6414d35c4e","https://git.kernel.org/stable/c/aa03698bb28d3be5ee180adb185395054b342b04","https://git.kernel.org/stable/c/627366c51145a07f675b1800fb5ea2ec960bd900"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-53222","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-53222","identifiers":["CVE-2026-53222"]},"retained":false,"historicalAffected":[]}],"coverage":[]}