# CVE-2025-38539: tracing: Add down\_write(trace\_event\_sem) when adding trace event

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-30)
- **Published:** 2025-08-16T11:12:31.678Z
- **Modified:** 2026-10-15T22:18:45.043Z

## Who should check

- Anyone running Linux \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< e70f5ee4c8824736332351b703c46f9469ed7f6c; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< db45632479ceecb669612ed8dbce927e3c6279fc; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< ca60064ea03f14e06c763de018403cb56ba3207d; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 7803b28c9aa8d8bd4e19ebcf5f0db9612b0f333b; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 6bc94f20a4c304997288f9a45278c9d0c06987d3; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 33e20747b47ddc03569b6bc27a2d6894c1428182; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 70fecd519caad0c1741c3379d5348c9000a5b29d; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< b5e8acc14dcb314a9b61ff19dcd9fdd0d88f70df
- Anyone running Linux 2.6.31

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

## Affected and fixed versions

- Linux: \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< e70f5ee4c8824736332351b703c46f9469ed7f6c; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< db45632479ceecb669612ed8dbce927e3c6279fc; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< ca60064ea03f14e06c763de018403cb56ba3207d; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 7803b28c9aa8d8bd4e19ebcf5f0db9612b0f333b; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 6bc94f20a4c304997288f9a45278c9d0c06987d3; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 33e20747b47ddc03569b6bc27a2d6894c1428182; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 70fecd519caad0c1741c3379d5348c9000a5b29d; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< b5e8acc14dcb314a9b61ff19dcd9fdd0d88f70df (cvelist)
- Linux: 2.6.31 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38539. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38539.md
Affected: Linux >= 110bf2b764eb6026b868d84499263cb24b1bcc8d, < e70f5ee4c8824736332351b703c46f9469ed7f6c; >= 110bf2b764eb6026b868d84499263cb24b1bcc8d, < db45632479ceecb669612ed8dbce927e3c6279fc; >= 110bf2b764eb6026b868d84499263cb24b1bcc8d, < ca60064ea03f14e06c763de018403cb56ba3207d; >= 110bf2b764eb6026b868d84…
Fixed in: Linux 7803b28c9aa8d8bd4e19ebcf5f0db9612b0f333b, Linux 6bc94f20a4c304997288f9a45278c9d0c06987d3, Linux 33e20747b47ddc03569b6bc27a2d6894c1428182, Linux 70fecd519caad0c1741c3379d5348c9000a5b29d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38539 being exploited?

There is no confirmed exploitation: CVE-2025-38539 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-30).

### How serious is CVE-2025-38539?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38539?

Linux \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< e70f5ee4c8824736332351b703c46f9469ed7f6c; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< db45632479ceecb669612ed8dbce927e3c6279fc; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< ca60064ea03f14e06c763de018403cb56ba3207d; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 7803b28c9aa8d8bd4e19ebcf5f0db9612b0f333b; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 6bc94f20a4c304997288f9a45278c9d0c06987d3; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 33e20747b47ddc03569b6bc27a2d6894c1428182; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< 70fecd519caad0c1741c3379d5348c9000a5b29d; \>= 110bf2b764eb6026b868d84499263cb24b1bcc8d, \< b5e8acc14dcb314a9b61ff19dcd9fdd0d88f70df; Linux 2.6.31.

### Is there a fix for CVE-2025-38539?

Yes. Fixed in Linux 7803b28c9aa8d8bd4e19ebcf5f0db9612b0f333b, Linux 6bc94f20a4c304997288f9a45278c9d0c06987d3, Linux 33e20747b47ddc03569b6bc27a2d6894c1428182, Linux 70fecd519caad0c1741c3379d5348c9000a5b29d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38539?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e70f5ee4c8824736332351b703c46f9469ed7f6c>
- patch: <https://git.kernel.org/stable/c/db45632479ceecb669612ed8dbce927e3c6279fc>
- patch: <https://git.kernel.org/stable/c/ca60064ea03f14e06c763de018403cb56ba3207d>
- patch: <https://git.kernel.org/stable/c/7803b28c9aa8d8bd4e19ebcf5f0db9612b0f333b>
- patch: <https://git.kernel.org/stable/c/6bc94f20a4c304997288f9a45278c9d0c06987d3>
- patch: <https://git.kernel.org/stable/c/33e20747b47ddc03569b6bc27a2d6894c1428182>
- patch: <https://git.kernel.org/stable/c/70fecd519caad0c1741c3379d5348c9000a5b29d>
- patch: <https://git.kernel.org/stable/c/b5e8acc14dcb314a9b61ff19dcd9fdd0d88f70df>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38539>

HTML: <https://flawdb.com/CVE-2025-38539> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38539>
