VDB

CVE-2025-38539

CVE-2025-38539 PUBLISHED CVSS 7.8 HIGH

tracing: Add down_write(trace_event_sem) when adding trace event

Reported by linux · Published August 16, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-toolsAmazon Linux1:6.12.40-63.114.amzn2023
python3-perfAmazon Linux1:6.1.147-172.266.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.40-63.114.amzn2023
kernelAmazon Linux1:6.1.147-172.266.amzn2023
bpftool6.12Amazon Linux1:6.12.40-63.114.amzn2023
bpftoolAmazon Linux1:6.1.147-172.266.amzn2023
kernel-headersAmazon Linux1:6.1.147-172.266.amzn2023
kernel-develAmazon Linux1:6.1.147-172.266.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.147-172.266.amzn2023
kernel-libbpf-staticAmazon Linux1:6.1.147-172.266.amzn2023
kernel-livepatch-6.12.40-63.114Amazon Linux1:1.0-0.amzn2023
kernel6.12Amazon Linux1:6.12.40-63.114.amzn2023

10 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux110bf2b764eb6026b868d84499263cb24b1bcc8d, 110bf2b764eb6026b868d84499263cb24b1bcc8d, 110bf2b764eb6026b868d84499263cb24b1bcc8d
LinuxLinux2.6.31, 0, 5.4.297
amazon:2023kernel6.12-tools0
amazon:2023python3-perf0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel0
amazon:2023bpftool6.120
amazon:2023bpftool0
amazon:2023kernel-headers0
amazon:2023kernel-devel0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-livepatch-6.12.40-63.1140
amazon:2023kernel6.120
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-devel0
amazon:2023kernel-modules-extra0
amazon:2023kernel-tools-devel0

…and 12 more

Timeline

  • May 12, 2025 PoC Published (15 in total, the first dated here)
  • Aug 8, 2025 CVE Published
  • Aug 16, 2025 EPSS Score (30 in total, the first dated here)
  • Nov 17, 2025 CVE Updated
  • Mar 29, 2026 Distribution Patch (157 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (165 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38539
vulnetix vdb fixes CVE-2025-38539

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38539/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›