CVE-2025-39859
ptp: ocp: fix use-after-free bugs causing by ptp_ocp_watchdog
Mitigation
- Upgrade Linux to 8bf935cf789872350b04c1a6468b0a509f67afb2 or later.
Who should check
- Anyone running Linux >= 773bda96492153e11d21eb63ac814669b51fc701, < a59822a762039b6e0252f21b091245d6ad7f324b; >= 773bda96492153e11d21eb63ac814669b51fc701, < e2a6eabe5304a789b7d40ce2576cd80154255e51; >= 773bda96492153e11d21eb63ac814669b51fc701, < aad70bdfc8244616e48c434310cab241a3f17781; >= 773bda96492153e11d21eb63ac814669b51fc701, < f10d3c7267ac7387a5129d5506c3c5f2460cfd9b; >= 773bda96492153e11d21eb63ac814669b51fc701, < 8bf935cf789872350b04c1a6468b0a509f67afb2
- Anyone running Linux 5.15
Vulnerability facts
- Affected
- Linux >= 773bda96492153e11d21eb63ac814669b51fc701, < a59822a762039b6e0252f21b091245d6ad7f324b; >= 773bda96492153e11d21eb63ac814669b51fc701, < e2a6eabe5304a789b7d40ce2576cd80154255e51; >= 773bda96492153e11d21eb63ac814669b51fc701, < aad70bdfc8244616e48c434310cab241a3f17781; >= 773bda96492153e11d21eb63ac814669b51fc701, < f10d3c7267ac7387a5129d5506c3c5f2460cfd9b; >= 773bda96492153e11d21eb63ac814669b51fc701, < 8bf935cf789872350b04c1a6468b0a509f67afb2; Linux 5.15
- Fixed in
- Linux 8bf935cf789872350b04c1a6468b0a509f67afb2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- CWE
- CWE-416
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 773bda96492153e11d21eb63ac814669b51fc701, < a59822a762039b6e0252f21b091245d6ad7f324b; >= 773bda96492153e11d21eb63ac814669b51fc701, < e2a6eabe5304a789b7d40ce2576cd80154255e51; >= 773bda96492153e11d21eb63ac814669b51fc701, < aad70bdfc8244616e48c434310cab241a3f17781; >= 773bda96492153e11d21eb63ac814669b51fc701, < f10d3c7267ac7387a5129d5506c3c5f2460cfd9b; >= 773bda96492153e11d21eb63ac814669b51fc701, < 8bf935cf789872350b04c1a6468b0a509f67afb2 | — | cvelist |
| Linux | 5.15 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-39859. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-39859.md Affected: Linux >= 773bda96492153e11d21eb63ac814669b51fc701, < a59822a762039b6e0252f21b091245d6ad7f324b; >= 773bda96492153e11d21eb63ac814669b51fc701, < e2a6eabe5304a789b7d40ce2576cd80154255e51; >= 773bda96492153e11d21eb63ac814669b51fc701, < aad70bdfc8244616e48c434310cab241a3f17781; >= 773bda96492153e11d21eb6… Fixed in: Linux 8bf935cf789872350b04c1a6468b0a509f67afb2 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2025-39859 being exploited?
There is no confirmed exploitation: CVE-2025-39859 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-39859?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-39859?
Linux >= 773bda96492153e11d21eb63ac814669b51fc701, < a59822a762039b6e0252f21b091245d6ad7f324b; >= 773bda96492153e11d21eb63ac814669b51fc701, < e2a6eabe5304a789b7d40ce2576cd80154255e51; >= 773bda96492153e11d21eb63ac814669b51fc701, < aad70bdfc8244616e48c434310cab241a3f17781; >= 773bda96492153e11d21eb63ac814669b51fc701, < f10d3c7267ac7387a5129d5506c3c5f2460cfd9b; >= 773bda96492153e11d21eb63ac814669b51fc701, < 8bf935cf789872350b04c1a6468b0a509f67afb2; Linux 5.15.
Is there a fix for CVE-2025-39859?
Yes. Fixed in Linux 8bf935cf789872350b04c1a6468b0a509f67afb2. Upgrade Linux to 8bf935cf789872350b04c1a6468b0a509f67afb2 or later.
How do I check if I'm affected by CVE-2025-39859?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.