IM
IronMonkey Threat Research

CVE-2025-39689 HIGH

Published: 2025-09-05 | Last Modified: 2026-07-30 | Status: Modified

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

Base Score: 7.8 (HIGH)

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

Attack VectorLOCAL
Attack ComplexityLOW
Privileges RequiredLOW
User InteractionNONE
ScopeUNCHANGED
Confidentiality ImpactHIGH
Integrity ImpactHIGH
Availability ImpactHIGH

Source: [email protected]

Type: Primary

Exploitability Score: 1.8

Impact Score: 5.9

Weaknesses

Source Type Description
[email protected] Primary
en CWE-416

Affected Products

Vendor Product Version Update Type
linux linux_kernel * <built-in method update of dict object at 0x7fd2dbd50c00> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd2d3b92a40> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd384627180> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd384626480> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd39c44ad00> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd39c448440> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd39c52ec00> Operating System
linux linux_kernel 6.17 <built-in method update of dict object at 0x7fd340a307c0> Operating System
linux linux_kernel 6.17 <built-in method update of dict object at 0x7fd36a703b40> Operating System
debian debian_linux 11.0 <built-in method update of dict object at 0x7fd39c44ac80> Operating System

Affected Configurations

Operator: OR

Vulnerable CPE
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*

Operator: OR

Vulnerable CPE
Yes cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

References