CVE-2026-53222

Source
https://cve.org/CVERecord?id=CVE-2026-53222
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53222.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-53222
Downstream
Published
2026-06-25T08:39:23.934Z
Modified
2026-07-08T08:13:44.086099927Z
Summary
ptp: ocp: fix resource freeing order
Details

In the Linux kernel, the following vulnerability has been resolved:

ptp: ocp: fix resource freeing order

Commit a60fc3294a37 ("ptp: rework ptpclockunregister() to disable events") added a call to ptpdisableallevents() which changes the configuration of pins if they support EXTTS events. In ptpocpdetach() pins resources are freed before ptpclockunregister() 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 synchronizeirq() after HW is configured to stop producing irqs and no irqs are in-flight.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53222.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a60fc3294a377204664b5484e4a487fa124155da
Fixed
aa03698bb28d3be5ee180adb185395054b342b04
Fixed
627366c51145a07f675b1800fb5ea2ec960bd900

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53222.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.18.0
Fixed
7.0.13

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53222.json"