Junglewise Threat Intelligence

CVE-2025-38539: Linux Kernel race condition in trace event registration

CVE-2025-38539 · Severity: high · CVSS 7.8 · Published 2025-08-16

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's tracing subsystem could allow a local user to crash the system. When multiple software modules are loaded simultaneously, a race condition occurs that can corrupt internal lists used for system monitoring. This results in a kernel crash, impacting the availability of the server or device.

Technical details

A race condition exists in kernel/trace/trace_events.c due to missing synchronization when adding trace events to the ftrace_events list. When a module is loaded, it registers trace events and may modify printk format strings; if two modules are loaded concurrently, the lack of write-side locking on trace_event_sem allows for list corruption during iteration. An attacker with local access and the ability to trigger module loading could exploit this to cause a Denial of Service (kernel panic). The fix introduces down_write(trace_event_sem) during event registration to ensure exclusive access to the list.

Affected products

  • Linux Linux Kernel 2.6.31 to 6.1.147

Timeline

  • 2025-07-18: disclosed: Vulnerability reported and patch authored
  • 2025-07-24: patched: Patch committed to stable tree
  • 2025-08-16: advisory: CVE published

References

Related threats