VDB

CVE-2025-39689

CVE-2025-39689 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernel6.12-toolsAmazon Linux1:6.12.46-66.121.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.150-174.273.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.46-66.121.amzn2023
kernel-tools-develAmazon Linux1:6.1.150-174.273.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.46-66.121.amzn2023
kernel-toolsAmazon Linux1:6.1.150-174.273.amzn2023
bpftool6.12Amazon Linux1:6.12.46-66.121.amzn2023
perf6.12Amazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-develAmazon Linux1:6.12.46-66.121.amzn2023
kernel-libbpfAmazon Linux1:6.1.150-174.273.amzn2023
SIMATIC CN 4100Siemens5.0
linux_kernellinux6.16.4, 6.12.44, 6.6.103, 6.1.149, 5.15.190, 5.10.241, 5.4.297

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxc20489dad156dd9919ebd854bbace46dbd2576a3, c20489dad156dd9919ebd854bbace46dbd2576a3, c20489dad156dd9919ebd854bbace46dbd2576a3
LinuxLinux4.12, 0, 5.4.297
amazon:2023kernel6.12-tools0
amazon:2023kernel-modules-extra-common0
SiemensSIMATIC CN 41000
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel-tools-devel0
amazon:2023kernel6.12-libbpf-static0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.5
amazon:2023kernel-tools0
amazon:2023bpftool6.120
amazon:2023perf6.120
amazon:2023kernel6.12-devel0
amazon:2023kernel-libbpf0
linuxlinux_kernel4.12, 4.12, 4.12
amazon:2023kernel-headers0
amazon:2023python3-perf0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel6.12-headers0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›