CVE-2024-38574

Severity CVSS v4.0:
Pending analysis
Type:
CWE-476 NULL Pointer Dereference
Publication date:
19/06/2024
Last modified:
31/01/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> libbpf: Prevent null-pointer dereference when prog to load has no BTF<br /> <br /> In bpf_objec_load_prog(), there&amp;#39;s no guarantee that obj-&gt;btf is non-NULL<br /> when passing it to btf__fd(), and this function does not perform any<br /> check before dereferencing its argument (as bpf_object__btf_fd() used to<br /> do). As a consequence, we get segmentation fault errors in bpftool (for<br /> example) when trying to load programs that come without BTF information.<br /> <br /> v2: Keep btf__fd() in the fix instead of reverting to bpf_object__btf_fd().

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.8 (including) 6.8.12 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.9 (including) 6.9.3 (excluding)