CVE-2025-37845 tracing: fprobe events: Fix possible UAF on modules

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's fprobe events allows attackers to potentially execute arbitrary code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-37845?

CVE-2025-37845 is a high-severity use after free vulnerability in Linux kernel, published on 9 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-416

Which versions are affected by CVE-2025-37845?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-37845?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2025-37845 being exploited?

There is no known exploitation of CVE-2025-37845 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-37845, DEBIAN-CVE-2025-37845, GHSA-mjp6-8q33-2qx3, ROOT-OS-UBUNTU-2204-CVE-2025-37845, UBUNTU-CVE-2025-37845.

Is CVE-2025-37845 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free