CVE-2025-39689: ftrace: Also allocate and copy hash for reading of filter files
Vulnerability summary
CVE-2025-39689 is a high (CVSS 7.8) Use After Free vulnerability in debian debian_linux. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 8% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 45 · Related 39Timeline
- 05-09-2025PublishedVulnerability first disclosed.
- 15-10-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: ftrace: Also allocate and copy hash for reading of filter files Currently the reader of set_ftrace_filter and set_ftrace_notrace just adds the pointer to the global tracer hash to its iterator. Unlike the writer that allocates a copy of the hash, the reader keeps the pointer to the filter hashes. This is problematic because this pointer is static across function calls that release the locks that can update the global tracer hashes. This can cause UAF and similar bugs. Allocate and copy the hash for reading the filter files like it is done for the writers. This not only fixes UAF bugs, but also makes the code a bit simpler as it doesn't have to differentiate when to free the iterator's hash between writers and readers.
CVSS metrics
4 scores · 4 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
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
8%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.18% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu147 products
- linuxAll versions (No fix recorded) | < 5.15.0-163.173 | < 6.8.0-100.100
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1097.104 | < 6.8.0-1046.49
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian2 products
- linux< 6.1.153-1 | < 6.12.48-1 | < 6.16.5-1
- debian_linuxEOL11.0
Linux2 products
- linux≥ c20489dad156dd9919ebd854bbace46dbd2576a3, < 12064e1880fc9202be75ff668205b1703d92f74f | ≥ c20489dad156dd9919ebd854bbace46dbd2576a3, < c4cd93811e038d19f961985735ef7bb128078dfb | ≥ c20489dad156dd9919ebd854bbace46dbd2576a3, < e0b6b223167e1edde5c82edf38e393c06eda1f13 | ≥ c20489dad156dd9919ebd854bbace46dbd2576a3, < a40c69f4f1ed96acbcd62e9b5ff3a596f0a91309 | ≥ c20489dad156dd9919ebd854bbace46dbd2576a3, < 3b114a3282ab1a12cb4618a8f45db5d7185e784a | ≥ c20489dad156dd9919ebd854bbace46dbd2576a3, < c591ba1acd081d4980713e47869dd1cc3d963d19 | ≥ c20489dad156dd9919ebd854bbace46dbd2576a3, < 64db338140d2bad99a0a8c6a118dd60b3e1fb8cb | ≥ c20489dad156dd9919ebd854bbace46dbd2576a3, < bfb336cf97df7b37b2b2edec0f69773e06d11955 | 4.12
- linux_kernel≥ 4.12, < 5.4.297 | ≥ 5.5, < 5.10.241 | ≥ 5.11, < 5.15.190 | ≥ 5.16, < 6.1.149 | ≥ 6.2, < 6.6.103 | ≥ 6.7, < 6.12.44 | ≥ 6.13, < 6.16.4 | 6.17:rc1 | 6.17:rc2
3 vendors · 151 products