VDB

CVE-2024-42151

CVE-2024-42151 PUBLISHED

bpf: mark bpf_dummy_struct_ops.test_1 parameter as nullable

Reported by linux · Published July 30, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinux7f79097b0de97a486b137b750d7dd7b20b519d23, 6.8

Affected products

VendorProductVersions
LinuxLinux2cd3e3772e41377f32d6eea643e0590774e9187c, 2cd3e3772e41377f32d6eea643e0590774e9187c
LinuxLinux6.8, 0, 6.9.9
LinuxLinux0, 6.8, 2cd3e3772e41377f32d6eea643e0590774e9187c
linuxlinux_kernel6.8, 6.8

Timeline

  • Jul 29, 2024 CVE Published
  • Jul 30, 2024 EPSS Score (30 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (237 in total, the first dated here)
  • Mar 30, 2026 Security Advisory (355 in total, the first dated here)
  • Jul 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-42151
vulnetix vdb fixes CVE-2024-42151

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-42151/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›