CVE-2024-57930 json
tracing: Have process_string() also allow arrays
published 2025-01-21 21 mo ago modified 2026-06-17 4 mo ago also EUVD-2024-53833
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 10%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
tracing: Have process_string() also allow arrays
In order to catch a common bug where a TRACE_EVENT() TP_fast_assign() assigns an address of an allocated string to the ring buffer and then references it in TP_printk(), which can be executed hours later when the string is free, the function test_event_printk() runs on all events as they are registered to make sure there's no unwanted dereferencing.
It calls process_string() to handle cases in TP_printk() format that has "%s". It returns whether or not the string is safe. But it can have some false positives.
For instance, xe_bo_move() has:
TP_printk("move_lacks_source:%s, migrate object %p [size %zu] from %s to %s device_id:%s", __entry->move_lacks_source ? "yes" : "no", __entry->bo, __entry->size, xe_mem_type_to_name[__entry->old_placement], xe_mem_type_to_name[__entry->new_placement], __get_str(device_id))
Where the "%s" references into xe_mem_type_to_name[]. This is an array of pointers that should be safe for the event to access. Instead of flagging this as a bad reference, if a reference points to an array, where the record field is the index, consider it safe.
Patch / fix
- Linux Linux 6.1.124, 6.6.70, 6.12.9
- linux Debian 12 6.1.124-1
- linux Debian 14, Debian 13 6.12.9-1
debian advisories DEBIAN-CVE-2024-57930
- git.kernel.org/stable/c/3bcdc9039a6e9e6e47ed689a37b8d57894a3c571 commit
- git.kernel.org/stable/c/631b1e09e213c86d5a4ce23d45c81af473bb0ac7 commit
- git.kernel.org/stable/c/a64e5295ebc4afdefe69cdf16cc286a60ff8ba4b commit
- git.kernel.org/stable/c/92bd18c74624e5eb9f96e70076aa46293f4b626f commit
- git.kernel.org/stable/c/afc6717628f959941d7b33728570568b4af1c4b8 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-57930 updated cvss 4.4
kernel: tracing: Have process_string() also allow arrays
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.20% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
-
git.kernel.org
/stable/c/3bcdc9039a6e9e6e47ed689a37b8d57894a3c571
patch
-
git.kernel.org
/stable/c/631b1e09e213c86d5a4ce23d45c81af473bb0ac7
patch
-
git.kernel.org
/stable/c/a64e5295ebc4afdefe69cdf16cc286a60ff8ba4b
patch
-
git.kernel.org
/stable/c/92bd18c74624e5eb9f96e70076aa46293f4b626f
patch
-
git.kernel.org
/stable/c/afc6717628f959941d7b33728570568b4af1c4b8
patch
- lists.debian.org /debian-lts-announce/2025/03/msg00001.html
Sources
- CVE List CVE-2024-57930
- NVD CVE-2024-57930
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.