CVE-2025-38539: tracing: Add down_write(trace_event_sem) when adding trace event

Published Aug 16, 2025
·
Updated

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

tracing: Add downwrite(traceeventsem) 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 ftraceevents 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 traceeventsem for write while it adds the new event.

Also add a lockdepassertheld() on that semaphore in traceaddeventdirs() as it iterates the list.

Affected Software

18 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=2.6.31<5.4.297
Linux Linux kernel>=5.5<5.10.241
Linux Linux kernel>=5.11<5.15.190
Linux Linux kernel>=5.16<6.1.147
Linux Linux kernel>=6.2<6.6.100
Linux Linux kernel>=6.7<6.12.40
Linux Linux kernel>=6.13<6.15.8
Linux Linux kernel=6.16-rc1
Linux Linux kernel=6.16-rc2
Linux Linux kernel=6.16-rc3
Linux Linux kernel=6.16-rc4
Linux Linux kernel=6.16-rc5
Linux Linux kernel=6.16-rc6
Debian Debian Linux=11.0
Microsoft azl3 kernel 6.6.96.2-1
Microsoft azl3 kernel 6.6.96.2-2
Microsoft cbl2 kernel 5.15.186.1-1

Event History

Aug 16, 2025
CVE Published
via MITRE·11:12 AM
Data Sourced
via MITRE·11:12 AM
DescriptionSeverity
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·01:12 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:12 AM
SeverityAffected Software
Updated
via Microsoft·08:12 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-38539?

CVE-2025-38539 is classified as a medium-severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2025-38539?

To fix CVE-2025-38539, users should update to the latest version of the Linux kernel where the vulnerability has been patched.

3

What systems are affected by CVE-2025-38539?

CVE-2025-38539 affects various versions of the Linux kernel that allow unauthorized modifications to trace events.

4

What type of vulnerability is CVE-2025-38539?

CVE-2025-38539 is a vulnerability related to improper synchronization when adding trace events in the Linux kernel.

5

What are the potential impacts of CVE-2025-38539?

The potential impact of CVE-2025-38539 includes the possibility of unauthorized access and modification of trace event logging in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203