CVE-2025-38539
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-tools | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| kernel | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| kernel-headers | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| kernel-livepatch-6.12.40-63.114 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
10 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 110bf2b764eb6026b868d84499263cb24b1bcc8d, 110bf2b764eb6026b868d84499263cb24b1bcc8d, 110bf2b764eb6026b868d84499263cb24b1bcc8d |
| Linux | Linux | 2.6.31, 0, 5.4.297 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-livepatch-6.12.40-63.114 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
…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