CVE-2024-42151

Medium

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: mark bpf_dummy_struct_ops.test_1 parameter as nullable Test case dummy_st_ops/dummy_init_ret_value passes NULL as the first parameter of the test_1() function. Mark this parameter as nullable to make verifier aware of such possibility. Otherwise, NULL check in the test_1() code: SEC("struct_ops/test_1") int BPF_PROG(test_1, struct bpf_dummy_ops_state *state) { if (!state) return ...; ... access state ... } Might be removed by verifier, thus triggering NULL pointer dereference under certain conditions.

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedJul 30, 2024
First seenJul 30, 2024

How to fix

Update
  • linux linux_kernel6.9.9 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernelv < 6.9.96.9.9

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2024-42151 · Linux Kernel · Dark Radar