{"id":"CVE-2024-42151","published":"2024-07-30T07:46:43Z","modified":"2026-05-11T20:27:57Z","title":"bpf: mark bpf_dummy_struct_ops.test_1 parameter as nullable","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: mark bpf_dummy_struct_ops.test_1 parameter as nullable\n\nTest case dummy_st_ops/dummy_init_ret_value passes NULL as the first\nparameter of the test_1() function. Mark this parameter as nullable to\nmake verifier aware of such possibility.\nOtherwise, NULL check in the test_1() code:\n\n      SEC(\"struct_ops/test_1\")\n      int BPF_PROG(test_1, struct bpf_dummy_ops_state *state)\n      {\n            if (!state)\n                    return ...;\n\n            ... access state ...\n      }\n\nMight be removed by verifier, thus triggering NULL pointer dereference\nunder certain conditions.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0018,"percentile":0.07776,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/7f79097b0de97a486b137b750d7dd7b20b519d23","tags":[]},{"url":"https://git.kernel.org/stable/c/1479eaff1f16983d8fda7c5a08a586c21891087d","tags":[]}],"priority":{"score":1.6,"factors":[{"name":"EPSS percentile","points":1.56}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 2cd3e3772e41377f32d6eea643e0590774e9187c, < 7f79097b0de97a486b137b750d7dd7b20b519d23",">= 2cd3e3772e41377f32d6eea643e0590774e9187c, < 1479eaff1f16983d8fda7c5a08a586c21891087d"]},{"vendor":"Linux","product":"Linux","versions":["6.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:15:24.877493Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39982","exploited":false,"provenance":"source"}}