CVE-2024-57930: tracing: Have process_string() also allow arrays

Published Jan 21, 2025
·
Updated

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

tracing: Have processstring() also allow arrays

In order to catch a common bug where a TRACEEVENT() TPfastassign() assigns an address of an allocated string to the ring buffer and then references it in TPprintk(), which can be executed hours later when the string is free, the function testeventprintk() runs on all events as they are registered to make sure there's no unwanted dereferencing.

It calls processstring() to handle cases in TPprintk() format that has "%s". It returns whether or not the string is safe. But it can have some false positives.

For instance, xebomove() has:

TPprintk("movelackssource:%s, migrate object %p [size %zu] from %s to %s deviceid:%s", entry->movelackssource ? "yes" : "no", entry->bo, entry->size, xememtypetoname[entry->oldplacement], xememtypetoname[entry->newplacement], getstr(deviceid))

Where the "%s" references into xememtypetoname[]. 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.

Affected Software

10 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.1.122<6.1.124
Linux Linux kernel>=6.6.68<6.6.70
Linux Linux kernel>=6.12.7<6.12.9
Linux Linux kernel=6.13-rc4
Linux Linux kernel=6.13-rc5
debian/linux<6.1.124-1
6.1.124-1
debian/linux<6.12.9-1
6.12.9-1
debian/linux<6.12.9-1
6.12.9-1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.124-1
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.9-1
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1

Event History

Jan 21, 2025
CVE Published
via MITRE·12:01 PM
Data Sourced
via MITRE·12:01 PM
Description
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:15 PM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

Is CVE-2024-57930 exploitable remotely?

CVE-2024-57930 is not considered remotely exploitable; it requires local access to exploit.

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