CVE-2025-39859CWE-416

CVE-2025-39859

High · published September 19, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
4.3
In the wild
Unconfirmed
What it is

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

ptp: ocp: fix use-after-free bugs causing by ptp_ocp_watchdog

The ptp_ocp_detach() only shuts down the watchdog timer if it is

pending. However, if the timer handler is already running, the

timer_delete_sync() is not called. This leads to race conditions

where the devlink that contains the ptp_ocp is deallocated while

the timer handler is still accessing it, resulting in use-after-free

bugs. The following details one of the race scenarios.

(thread 1) | (thread 2)

ptp_ocp_remove() |

ptp_ocp_detach() | ptp_ocp_watchdog()

if (timer_pending(&bp->watchdog))| bp = timer_container_of()

timer_delete_sync() |

|

devlink_free(devlink) //free |

| bp-> //use

Resolve this by unconditionally calling timer_delete_sync() to ensure

the timer is reliably deactivated, preventing any access after free.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00155 · 4.3th percentile
Weakness
CWE-416 · Use After Free
Published
2025-09-19T20:15Z
Affected products (5)
ProductVersionsFixed in
linux/linux_kernel≥ 5.15, < 6.16.66.16.6
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (4)
EPSS history
Timeline
  • 19 SEP 15:26Z
    ptp: ocp: fix use-after-free bugs causing by ptp_ocp_watchdog
    cvelistv5