{"id":"CVE-2024-38574","published":"2024-06-19T13:35:39Z","modified":"2026-05-11T20:19:20Z","title":"libbpf: Prevent null-pointer dereference when prog to load has no BTF","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibbpf: Prevent null-pointer dereference when prog to load has no BTF\n\nIn bpf_objec_load_prog(), there's no guarantee that obj->btf is non-NULL\nwhen passing it to btf__fd(), and this function does not perform any\ncheck before dereferencing its argument (as bpf_object__btf_fd() used to\ndo). As a consequence, we get segmentation fault errors in bpftool (for\nexample) when trying to load programs that come without BTF information.\n\nv2: Keep btf__fd() in the fix instead of reverting to bpf_object__btf_fd().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00225,"percentile":0.13399,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ef80b59acfa4dee4b5eaccb15572b69248831104","tags":[]},{"url":"https://git.kernel.org/stable/c/1fd91360a75833b7110af9834ae26c977e1273e0","tags":[]},{"url":"https://git.kernel.org/stable/c/9bf48fa19a4b1d186e08b20bf7e5de26a15644fb","tags":[]}],"priority":{"score":2.7,"factors":[{"name":"EPSS percentile","points":2.68}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= df7c3f7d3a3ddab31ca8cfa9b86a8729ec43fd2e, < ef80b59acfa4dee4b5eaccb15572b69248831104",">= df7c3f7d3a3ddab31ca8cfa9b86a8729ec43fd2e, < 1fd91360a75833b7110af9834ae26c977e1273e0",">= df7c3f7d3a3ddab31ca8cfa9b86a8729ec43fd2e, < 9bf48fa19a4b1d186e08b20bf7e5de26a15644fb"]},{"vendor":"Linux","product":"Linux","versions":["6.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:14:12.770831Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-37437","exploited":false,"provenance":"source"}}