2084AI Security Observatory

CVE

CVE-2025-39689

CVE-2025-39689HIGH 7.8EPSS 9%

CNA 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.

Affected versions

All Linux kernel vulnerabilities →

  • 6.17-rc2This version only
  • 6.17-rc1This version only
  • ≥ 6.13, < 6.16.4Fixed in 6.16.4
  • ≥ 6.7, < 6.12.44Fixed in 6.12.44
  • ≥ 6.2, < 6.6.103Fixed in 6.6.103
  • ≥ 5.16, < 6.1.149Fixed in 6.1.149
  • ≥ 5.11, < 5.15.190Fixed in 5.15.190
  • ≥ 5.5, < 5.10.241Fixed in 5.10.241
  • ≥ 4.12, < 5.4.297Fixed in 5.4.297

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Advisories and patches

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.