CVE-2024-57934

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-57934
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57934.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-57934
Downstream
Related
Published
2025-01-21T12:15:27Z
Modified
2025-02-03T14:52:40Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

fgraph: Add READONCE() when accessing fgrapharray[]

In _ftracereturntohandler(), a loop iterates over the fgrapharray[] elements, which are fgraphops. The loop checks if an element is a fgraphstub to prevent using a fgraphstub afterward.

However, if the compiler reloads fgrapharray[] after this check, it might race with an update to fgrapharray[] that introduces a fgraphstub. This could result in the stub being processed, but the stub contains a null "funchash" field, leading to a NULL pointer dereference.

To ensure that the gops compared against the fgraphstub matches the gops processed later, add a READONCE(). A similar patch appears in commit 63a8dfb ("functiongraph: Add READONCE() when accessing fgraph_array[]").

References

Affected packages

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.12.9-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}