# CVE-2026-53222: ptp: ocp: fix resource freeing order

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-25 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2026-53222, DEBIAN-CVE-2026-53222, CGA-285p-2j9m-fxjv, CGA-2pgg-cp92-rq7g, CGA-347m-75wh-2j8f, CGA-4vww-x6h5-x4f2, CGA-55q8-vj72-vr2w, CGA-5jpf-xj35-v78p, CGA-6mfw-4wqv-69c9, CGA-8gm3-3fwr-6v36, CGA-8rwx-v4v8-4rfw, CGA-937x-67r3-xw97, CGA-974g-jvh6-56vm, CGA-c6gq-w8rj-mw4g, CGA-c7j9-mc5c-8j3r, CGA-g3xx-9rw9-c3jv, CGA-g648-w86q-2wcg, CGA-g7mx-4qqf-4rf6, CGA-jc7f-rq82-jc57, CGA-m49h-jf46-3v2m, CGA-m95p-r83r-rqwr, CGA-qqgw-37vm-7m5q, CGA-qrpf-ffh2-4frp, CGA-vw95-674f-h9xj, CGA-vwj4-jjqp-cx5v, CGA-w4cw-hqjr-f5hx, CGA-x5r5-98f3-9j7f, CGA-xfp3-5cqx-qh8w, CGA-4cmr-c7wc-6j3h, CGA-7m4v-x3xm-qpm9, CGA-7m57-m782-6p3v, CGA-8g4h-53jg-qxhw, CGA-jc2x-2r7r-2cfq, CGA-ppr9-pp3v-52q7, CGA-2996-pc6r-m24j, CGA-8rq7-xjj7-5gr9, CGA-7457-7r64-f6fx, CGA-9h52-33j5-66c3
- Record: https://cvemate.com/vulnerability/CVE-2026-53222 · JSON: https://cvemate.com/vulnerability/CVE-2026-53222/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.117%, percentile 1.828%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 135)

- chainguard linux-aws-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-firecracker-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-gcp-6.18 (Chainguard): All versions (No fix recorded) \| \< 6.18.38-r2
- chainguard linux-gcp-6.18-bootc (Chainguard): \< 6.18.38-r2
- chainguard linux-gcp-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-microvm-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-microvm-6.18-image-compressed (Chainguard): All versions (No fix recorded)
- chainguard linux-microvm-6.18-image-uncompressed (Chainguard): All versions (No fix recorded)
- chainguard linux-microvm-6.18-loadpin-test (Chainguard): All versions (No fix recorded)
- chainguard linux-microvm-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-qemu-6.18 (Chainguard): \< 6.18.38-r2 \| All versions (No fix recorded)
- chainguard linux-qemu-6.18-bootc (Chainguard): \< 6.18.38-r2
- chainguard linux-qemu-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-qemu-melange (Chainguard): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/aa03698bb28d3be5ee180adb185395054b342b04>
- <https://git.kernel.org/stable/c/627366c51145a07f675b1800fb5ea2ec960bd900>
- <https://ubuntu.com/security/CVE-2026-53222>
- <https://www.cve.org/CVERecord?id=CVE-2026-53222>
- <https://git.kernel.org/linus/627366c51145a07f675b1800fb5ea2ec960bd900>
- <https://ubuntu.com/security/notices/USN-8726-1>
- <https://ubuntu.com/security/notices/USN-8727-1>
- <https://ubuntu.com/security/notices/USN-8728-1>
- <https://ubuntu.com/security/notices/USN-8760-1>
- <https://ubuntu.com/security/notices/USN-8726-2>
- <https://ubuntu.com/security/notices/USN-8726-3>
- <https://ubuntu.com/security/notices/USN-8800-1>
- <https://ubuntu.com/security/notices/USN-8760-2>
- <https://ubuntu.com/security/notices/USN-8728-2>
- <https://ubuntu.com/security/notices/USN-8726-4>
- <https://ubuntu.com/security/notices/USN-8728-3>
- <https://security-tracker.debian.org/tracker/CVE-2026-53222>
- <https://git.kernel.org/stable/c/daacc9d1430b63f6bee6e5646def5d6414d35c4e>

---

Data as of 2026-12-05T04:24:02.874Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
