Linux Kernel up to 6.16.5/6.17-rc4 ptp_ocp_detach use after free

| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.7 | $0-$5k | 0.00 |
Summary
A vulnerability has been found in Linux Kernel up to 6.16.5/6.17-rc4 and classified as critical. Impacted is the function ptp_ocp_detach. The manipulation leads to use after free.
This vulnerability is referenced as CVE-2025-39859. No exploit is available.
The affected component should be upgraded.
Details
A vulnerability, which was classified as critical, has been found in Linux Kernel up to 6.16.5/6.17-rc4. This issue affects the function ptp_ocp_detach. The manipulation with an unknown input leads to a use after free vulnerability. Using CWE to declare the problem leads to CWE-416. Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code. Impacted is confidentiality, integrity, and availability. The summary by CVE 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.
It is possible to read the advisory at git.kernel.org. The identification of this vulnerability is CVE-2025-39859 since 04/16/2025. The exploitation is known to be easy. Technical details of the vulnerability are known, but there is no available exploit. The pricing for an exploit might be around USD $0-$5k at the moment (estimation calculated on 12/22/2025).
The vulnerability scanner Nessus provides a plugin with the ID 265844 (Linux Distros Unpatched Vulnerability : CVE-2025-39859), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 6.16.6 or 6.17-rc5 eliminates this vulnerability. Applying the patch f10d3c7267ac7387a5129d5506c3c5f2460cfd9b/8bf935cf789872350b04c1a6468b0a509f67afb2 is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (265844) and CERT Bund (WID-SEC-2025-2099). Be aware that VulDB is the high quality source for vulnerability data.
Affected
- Debian Linux
- Amazon Linux 2
- Red Hat Enterprise Linux
- Ubuntu Linux
- SUSE Linux
- Oracle Linux
- IBM QRadar SIEM
- SUSE openSUSE
- RESF Rocky Linux
- Open Source Linux Kernel
- Dell Secure Connect Gateway
Product
Type
Vendor
Name
Version
License
Website
- Vendor: https://www.kernel.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.9VulDB Meta Temp Score: 7.7
VulDB Base Score: 8.0
VulDB Temp Score: 7.6
VulDB Vector: 🔒
VulDB Reliability: 🔍
NVD Base Score: 7.8
NVD Vector: 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Use after freeCWE: CWE-416 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: Partially
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 265844
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-39859
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: Kernel 6.16.6/6.17-rc5
Patch: f10d3c7267ac7387a5129d5506c3c5f2460cfd9b/8bf935cf789872350b04c1a6468b0a509f67afb2
Timeline
04/16/2025 CVE reserved09/19/2025 Advisory disclosed
09/19/2025 VulDB entry created
12/22/2025 VulDB entry last update
Sources
Vendor: kernel.orgAdvisory: git.kernel.org
Status: Confirmed
CVE: CVE-2025-39859 (🔒)
GCVE (CVE): GCVE-0-2025-39859
GCVE (VulDB): GCVE-100-325055
CERT Bund: WID-SEC-2025-2099 - Linux Kernel: Mehrere Schwachstellen
Entry
Created: 09/19/2025 18:21Updated: 12/22/2025 10:56
Changes: 09/19/2025 18:21 (58), 09/28/2025 21:40 (2), 10/20/2025 20:58 (7), 11/12/2025 05:12 (1), 11/29/2025 07:20 (1), 12/13/2025 06:08 (11), 12/22/2025 10:56 (1)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.