CVE-2024-38574

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-38574
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38574.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-38574
Downstream
Published
2024-06-19T14:15:17Z
Modified
2025-01-31T15:18:10Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/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:

libbpf: Prevent null-pointer dereference when prog to load has no BTF

In bpfobjecloadprog(), there's no guarantee that obj->btf is non-NULL when passing it to btffd(), and this function does not perform any check before dereferencing its argument (as bpfobjectbtf_fd() used to do). As a consequence, we get segmentation fault errors in bpftool (for example) when trying to load programs that come without BTF information.

v2: Keep btffd() in the fix instead of reverting to bpfobjectbtffd().

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.8.12-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}