CVE-2025-39689
HighIn 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 3.1 score
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-416CVE-2025-39689 is a Use After Free vulnerability
What is Use After Free?
The product references memory after it has been freed, which may cause it to crash, use unexpected values, or execute code. Learn more on MITRE CWE
Affected versions
Linux kernel versions
4.12
and later are affected. Fixed in
5.4.297,
5.10.241,
5.15.190,
6.1.149,
6.6.103,
6.12.44,
6.16.4,
6.17
and their respective stable series.
References
The following references provide additional information about CVE-2025-39689 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
Mailing List Third Party Advisory
-
Mailing List Third Party Advisory
-
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/12064e1880fc9202be75ff668205b1703d92f74f
-
PatchKernel patch commithttps://git.kernel.org/stable/c/3b114a3282ab1a12cb4618a8f45db5d7185e784a
-
PatchKernel patch commithttps://git.kernel.org/stable/c/64db338140d2bad99a0a8c6a118dd60b3e1fb8cb
Frequently asked questions
-
What is CVE-2025-39689?
CVE-2025-39689 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 , classified as an Use After Free flaw (CWE-416) . It affects Linux kernel versions from 4.12 onward and has been patched in 5.4.297, 5.10.241, 5.15.190 and others. CVE-2025-39689 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2025-39689?
CVE-2025-39689 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2025-39689?
Yes — CVE-2025-39689 has been patched. Fixed versions include 5.4.297, 5.10.241, 5.15.190 and others. If you are running Linux kernel 4.12 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-39689 actively exploited?
No — CVE-2025-39689 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Use After Free (CWE-416)?
The product references memory after it has been freed, which may cause it to crash, use unexpected values, or execute code. View CWE-416 on MITRE CWE →