CVE-2025-37845
JSON

7.8high

tracing: fprobe events: Fix possible UAF on modules

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.30% (higher than 15% of CVEs)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: tracing: fprobe events: Fix possible UAF on modules Commit ac91052f0ae5 ("tracing: tprobe-events: Fix leakage of module refcount") moved try_module_get() from __find_tracepoint_module_cb() to find_tracepoint() caller, but that introduced a possible UAF because the module can be unloaded before try_module_get(). In this case, the module object should be freed too. Thus, try_module_get() does not only fail but may access to the freed object. To avoid that, try_module_get() in __find_tracepoint_module_cb() again.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 71c9cf87776eaa556fc0a0a060df94200e1f521c before 868df4eb784c3ccc7e4340a9ea993cbbedca167e, from 9db2b8cf4ea07b579db588e0353d5680f5d1f071 before a27d2de2472b1cc7d582ab405d1d5832a80481de, from ac91052f0ae5be9e46211ba92cc31c0e3b0a933a before 626f01f4d26e8cf92e69c1df53036153c8e98a20, from ac91052f0ae5be9e46211ba92cc31c0e3b0a933a before dd941507a9486252d6fcf11814387666792020f3, from 6.12.21 before 6.12.24, from 6.13.9 before 6.13.12, 6.14
Not affected: before 6.14, from 6.12.24 up to 6.12.*, from 6.13.12 up to 6.13.*, from 6.14.3 up to 6.14.*, from 6.15 up to *
CVE List
linux linux_kernelfrom 6.12.21 before 6.12.24, from 6.13.9 before 6.13.12, from 6.14.1 before 6.14.3, 6.14, 6.15NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: tracing: fprobe events: Fix possible UAF on modules Commit ac91052f0ae5 ("tracing: tprobe-events: Fix leakage of module refcount") moved try_module_get() from __find_tracepoint_module_cb() to find_tracepoint() caller, but that introduced a possible UAF because the module can be unloaded before try_module_get(). In this case, the module object should be freed too. Thus, try_module_get() does not only fail but may access to the freed object. To avoid that, try_module_get() in __find_tracepoint_module_cb() again.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tracing: fprobe events: Fix possible UAF on modules. La confirmación ac91052f0ae5 ("tracing: tprobe-events: Fix leakage of module refcount") trasladó try_module_get() de __find_tracepoint_module_cb() al llamador de find_tracepoint(), pero esto introdujo un posible UAF porque el módulo puede descargarse antes que try_module_get(). En este caso, el objeto del módulo también debería liberarse. Por lo tanto, try_module_get() no solo falla, sino que puede acceder al objeto liberado. Para evitarlo, vuelva a intentar try_module_get() en __find_tracepoint_module_cb().

References

Sources

SourceRecordLicence
CVE ListCVE-2025-37845 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-37845 changed 2026-07-30Public domain