CVE-2025-39689
ftrace: Also allocate and copy hash for reading of filter files
Reported by linux · Published September 5, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-tools | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel-tools-devel | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel-libbpf | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| SIMATIC CN 4100 | Siemens | 5.0 |
| linux_kernel | linux | 6.16.4, 6.12.44, 6.6.103, 6.1.149, 5.15.190, 5.10.241, 5.4.297 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c20489dad156dd9919ebd854bbace46dbd2576a3, c20489dad156dd9919ebd854bbace46dbd2576a3, c20489dad156dd9919ebd854bbace46dbd2576a3 |
| Linux | Linux | 4.12, 0, 5.4.297 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| Siemens | SIMATIC CN 4100 | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.5 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| linux | linux_kernel | 4.12, 4.12, 4.12 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5 |
…and 24 more
Timeline
- Sep 5, 2025 CVE Published
- Sep 6, 2025 EPSS Score (30 in total, the first dated here)
- Dec 17, 2025 PoC Published (4 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (153 in total, the first dated here)
- Mar 29, 2026 Security Advisory (168 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-39689
vulnetix vdb fixes CVE-2025-39689
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39689/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart