VDB

CVE-2024-40908

CVE-2024-40908 PUBLISHED

bpf: Set run context for rawtp test_run callback

Reported by linux · Published July 12, 2024

In the Linux kernel, the following vulnerability has been resolved: bpf: Set run context for rawtp test_run callback syzbot reported crash when rawtp program executed through the test_run interface calls bpf_get_attach_cookie helper or any other helper that touches task->bpf_ctx pointer. Setting the run context (task->bpf_ctx pointer) for test_run callback.

Fixed versions

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

PackageEcosystemFixed in
kernel-tools-develAmazon Linux6.1.96-102.177.amzn2023
perfAmazon Linux6.1.96-102.177.amzn2023
bpftoolAmazon Linux6.1.96-102.177.amzn2023
kernel-libbpf-staticAmazon Linux6.1.96-102.177.amzn2023
kernel-modules-extraAmazon Linux6.1.96-102.177.amzn2023
kernel-libbpfAmazon Linux6.1.96-102.177.amzn2023
kernel-toolsAmazon Linux6.1.96-102.177.amzn2023
kernel-develAmazon Linux6.1.96-102.177.amzn2023
linux_kernellinux6.9.6, 6.6.35, 6.1.95, 5.15.162

Affected products

VendorProductVersions
LinuxLinux7adfc6c9b315e174cf8743b21b7b691c8766791b, 7adfc6c9b315e174cf8743b21b7b691c8766791b, 7adfc6c9b315e174cf8743b21b7b691c8766791b
LinuxLinux5.15, 0, 5.15.162
amazon:2023kernel-tools-devel0
amazon:2023perf0
amazon:2023bpftool0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra0
amazon:2023kernel-libbpf0
amazon:2023kernel-tools0
amazon:2023kernel-devel0
linuxlinux_kernel5.15, 5.15, 5.15
LinuxLinux7adfc6c9b315e174cf8743b21b7b691c8766791b, 5.15.162, 6.6.35
amazon:2023kernel-libbpf-devel0
amazon:2023python3-perf0
amazon:2023kernel-headers0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-livepatch-6.1.96-102.1770
amazon:2023kernel0

Timeline

  • Jul 12, 2024 CVE Published
  • Jul 13, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (11 in total, the first dated here)
  • Jan 7, 2026 Security Advisory (271 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (174 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-40908
vulnetix vdb fixes CVE-2024-40908

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-40908/fixes/registry"

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

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