CVE-2025-39859
Last modified
CVE-2025-39859 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.14% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.15, < 6.16.6 | — |
| Linux | Linux Kernel | 6.17 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-39859?
How severe is CVE-2025-39859?
How do I fix CVE-2025-39859?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-39853In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-39854In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39855In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39856In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39857In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39858In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3986A vulnerability was found in Apereo CAS 5.2.6. It has been d…7.5
- CVE-2025-39860In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39861In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39862In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39863In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39864In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2025-39859?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
