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.
References (2)
Core 2
Scores
CVSS v3
5.5
EPSS
0.0011
EPSS Percentile
1.4%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-401
Status
published
Products (9)
linux/Kernel
6.18.0 - 7.0.13linux
Linux/Linux
< 6.18
Linux/Linux
6.18
Linux/Linux
7.0.13 - 7.0.*
Linux/Linux
7.1
Linux/Linux
a60fc3294a377204664b5484e4a487fa124155da - 627366c51145a07f675b1800fb5ea2ec960bd900
Linux/Linux
a60fc3294a377204664b5484e4a487fa124155da - aa03698bb28d3be5ee180adb185395054b342b04
linux/linux_kernel
7.1 rc1 (7 CPE variants)
linux/linux_kernel
6.18 - 7.0.13
Published
Jun 25, 2026
Tracked Since
Jun 25, 2026