CVE-2025-39859: linux Use After Free
Vulnerability summary
CVE-2025-39859 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.15% chance of exploitation in the next 30 days, higher than 3.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 16 · Related 17Timeline
- 19-09-2025PublishedVulnerability first disclosed.
- 21-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.15%
Chance of exploitation in the next 30 days
Percentile
4%
Versus all other CVEs
30-day change
0.00 pp
From 0.15% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu139 products
- linuxAll versions (No fix recorded)
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded)
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Chainguard5 products
- linux-aws-6.12< 6.12.74-r1 | < 6.12.63-r0 | < 6.12.66-r0 | < 6.12.72-r1 | < 6.12.77-r0 | < 6.12.68-r1 | < 6.12.72-r0 | < 6.12.78-r0 | < 6.12.62-r2 | < 6.12.62-r1 | < 6.12.70-r0 | < 6.12.65-r2 | < 6.12.77-r1 | < 6.12.76-r0 | < 6.12.65-r1 | < 6.12.67-r0 | < 6.12.74-r0 | < 6.12.71-r0 | < 6.12.65-r0 | < 6.12.80-r0 | < 6.12.68-r0 | < 6.12.69-r0 | < 6.12.77-r2
- linux-azure-6.12< 6.12.77-r2 | < 6.12.77-r1 | < 6.12.62-r2 | < 6.12.78-r0 | < 6.12.72-r0 | < 6.12.67-r0 | < 6.12.65-r3 | < 6.12.65-r1 | < 6.12.74-r0 | < 6.12.74-r1 | < 6.12.69-r0 | < 6.12.76-r0 | < 6.12.63-r0 | < 6.12.68-r0 | < 6.12.77-r0 | < 6.12.80-r0 | < 6.12.62-r1 | < 6.12.70-r0 | < 6.12.65-r2 | < 6.12.71-r0 | < 6.12.65-r4 | < 6.12.66-r0
- linux-gcp-6.12< 6.12.69-r0 | < 6.12.71-r0 | < 6.12.66-r0 | < 6.12.72-r0 | < 6.12.76-r0 | < 6.12.65-r2 | < 6.12.68-r0 | < 6.12.74-r1 | < 6.12.67-r0 | < 6.12.65-r0 | < 6.12.74-r0 | < 6.12.77-r2 | < 6.12.63-r0 | < 6.12.77-r0 | < 6.12.78-r0 | < 6.12.77-r1 | < 6.12.80-r0 | < 6.12.68-r1 | < 6.12.70-r0 | < 6.12.62-r2 | < 6.12.65-r1 | < 6.12.62-r0 | < 6.12.62-r1
- linux-qemu-6.12< 6.12.66-r0 | < 6.12.78-r0 | < 6.12.72-r0 | < 6.12.74-r1 | < 6.12.65-r1 | < 6.12.77-r0 | < 6.12.80-r0 | < 6.12.68-r0 | < 6.12.70-r0 | < 6.12.67-r0 | < 6.12.74-r0 | < 6.12.77-r1 | < 6.12.65-r2 | < 6.12.77-r2 | < 6.12.69-r0 | < 6.12.71-r0 | < 6.12.76-r0
- linux-vmware-6.12< 6.12.65-r1 | < 6.12.68-r0 | < 6.12.65-r2 | < 6.12.78-r0 | < 6.12.77-r0 | < 6.12.74-r0 | < 6.12.74-r1 | < 6.12.77-r2 | < 6.12.70-r0 | < 6.12.66-r0 | < 6.12.76-r0 | < 6.12.69-r0 | < 6.12.80-r0 | < 6.12.71-r0 | < 6.12.68-r1 | < 6.12.77-r1 | < 6.12.67-r0 | < 6.12.72-r0
Linux2 products
- linux≥ 773bda96492153e11d21eb63ac814669b51fc701, < e2a6eabe5304a789b7d40ce2576cd80154255e51 | ≥ 773bda96492153e11d21eb63ac814669b51fc701, < aad70bdfc8244616e48c434310cab241a3f17781 | ≥ 773bda96492153e11d21eb63ac814669b51fc701, < f10d3c7267ac7387a5129d5506c3c5f2460cfd9b | ≥ 773bda96492153e11d21eb63ac814669b51fc701, < 8bf935cf789872350b04c1a6468b0a509f67afb2 | 5.15
- linux_kernel≥ 5.15, < 6.16.6 | 6.17:rc1 | 6.17:rc2 | 6.17:rc3 | 6.17:rc4
Debian1 product
- linuxAll versions (No fix recorded) | < 6.16.6-1
4 vendors · 147 products