CVE-2025-38539

tracing: Add down_write(trace_event_sem) when adding trace event

7.8 high EPSS 0.20%

Published 16 Aug 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2025-38539

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38539 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

tracing: Add down_write(trace_event_sem) when adding trace event

When a module is loaded, it adds trace events defined by the module. It may also need to modify the modules trace printk formats to replace enum names with their values.

If two modules are loaded at the same time, the adding of the event to the ftrace_events list can corrupt the walking of the list in the code that is modifying the printk format strings and crash the kernel.

The addition of the event should take the trace_event_sem for write while it adds the new event.

Also add a lockdep_assert_held() on that semaphore in __trace_add_event_dirs() as it iterates the list.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.9% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 15 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 110bf2b764eb6026b868d84499263cb24b1bcc8d, before e70f5ee4c8824736332351b703c46f9469ed7f6c
affected from 110bf2b764eb6026b868d84499263cb24b1bcc8d, before db45632479ceecb669612ed8dbce927e3c6279fc
affected from 110bf2b764eb6026b868d84499263cb24b1bcc8d, before ca60064ea03f14e06c763de018403cb56ba3207d
affected from 110bf2b764eb6026b868d84499263cb24b1bcc8d, before 7803b28c9aa8d8bd4e19ebcf5f0db9612b0f333b
affected from 110bf2b764eb6026b868d84499263cb24b1bcc8d, before 6bc94f20a4c304997288f9a45278c9d0c06987d3
affected from 110bf2b764eb6026b868d84499263cb24b1bcc8d, before 33e20747b47ddc03569b6bc27a2d6894c1428182
affected from 110bf2b764eb6026b868d84499263cb24b1bcc8d, before 70fecd519caad0c1741c3379d5348c9000a5b29d
affected from 110bf2b764eb6026b868d84499263cb24b1bcc8d, before b5e8acc14dcb314a9b61ff19dcd9fdd0d88f70df
Other versions: unaffected
Linux
affected 2.6.31
unaffected before 2.6.31
unaffected from 5.4.297 up to and including 5.4.*
unaffected from 5.10.241 up to and including 5.10.*
unaffected from 5.15.190 up to and including 5.15.*
unaffected from 6.1.147 up to and including 6.1.*
unaffected from 6.6.100 up to and including 6.6.*
unaffected from 6.12.40 up to and including 6.12.*
unaffected from 6.15.8 up to and including 6.15.*
unaffected 6.16 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38539 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38539

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38539
trivy image --scanners vuln IMAGE | grep CVE-2025-38539

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38539 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.