CVE-2025-38539

tracing: Add down_write(trace_event_sem) when adding trace event

State
Published
Severity
7.8 High
Published
Aug 16, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 110bf2b764eb6026b868d84499263cb24b1bcc8d to before e70f5ee4c8824736332351b703c46f9469ed7f6cAffected
  • 110bf2b764eb6026b868d84499263cb24b1bcc8d to before db45632479ceecb669612ed8dbce927e3c6279fcAffected
  • 110bf2b764eb6026b868d84499263cb24b1bcc8d to before ca60064ea03f14e06c763de018403cb56ba3207dAffected
  • 110bf2b764eb6026b868d84499263cb24b1bcc8d to before 7803b28c9aa8d8bd4e19ebcf5f0db9612b0f333bAffected
  • 110bf2b764eb6026b868d84499263cb24b1bcc8d to before 6bc94f20a4c304997288f9a45278c9d0c06987d3Affected
  • 110bf2b764eb6026b868d84499263cb24b1bcc8d to before 33e20747b47ddc03569b6bc27a2d6894c1428182Affected
  • 110bf2b764eb6026b868d84499263cb24b1bcc8d to before 70fecd519caad0c1741c3379d5348c9000a5b29dAffected
  • 110bf2b764eb6026b868d84499263cb24b1bcc8d to before b5e8acc14dcb314a9b61ff19dcd9fdd0d88f70dfAffected
LinuxLinux
  • 2.6.31Affected
  • before 2.6.31Not affected
  • 5.4.297 through 5.4.*Not affected
  • 5.10.241 through 5.10.*Not affected
  • 5.15.190 through 5.15.*Not affected
  • 6.1.147 through 6.1.*Not affected
  • 6.6.100 through 6.6.*Not affected
  • 6.12.40 through 6.12.*Not affected
  • 6.15.8 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.