CVE-2026-53222

ptp: ocp: fix resource freeing order

State
Published
Severity
Not scored
Published
Jun 25, 2026
Updated
Oct 15, 2026
Reserved
Jun 9, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a60fc3294a377204664b5484e4a487fa124155da to before daacc9d1430b63f6bee6e5646def5d6414d35c4eAffected
  • a60fc3294a377204664b5484e4a487fa124155da to before aa03698bb28d3be5ee180adb185395054b342b04Affected
  • a60fc3294a377204664b5484e4a487fa124155da to before 627366c51145a07f675b1800fb5ea2ec960bd900Affected
LinuxLinux
  • 6.18Affected
  • before 6.18Not affected
  • 6.18.57 through 6.18.*Not affected
  • 7.0.13 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.