CVE-2024-38662
bpf: Allow delete from sockmap/sockhash only if update is allowed
Reported by linux · Published June 21, 2024
In the Linux kernel, the following vulnerability has been resolved: bpf: Allow delete from sockmap/sockhash only if update is allowed We have seen an influx of syzkaller reports where a BPF program attached to a tracepoint triggers a locking rule violation by performing a map_delete on a sockmap/sockhash. We don't intend to support this artificial use scenario. Extend the existing verifier allowed-program-type check for updating sockmap/sockhash to also cover deleting from a map. From now on only BPF programs which were previously allowed to update sockmap/sockhash can delete from these map types.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf | Amazon Linux | 6.1.94-99.176.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | dd54b48db0c822ae7b520bc80751f0a0a173ef75, d1e73fb19a4c872d7a399ad3c66e8ca30e0875ec, a44770fed86515eedb5a7c00b787f847ebb134a5 |
| Linux | Linux | 6.9, 0, 5.10.219 |
| amazon:2023 | python3-perf | 0 |
| linux | linux_kernel | 5.15.154, 6.1.85, 6.9 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | bpftool | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-livepatch-6.1.94-99.176 | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| Linux | Linux | 6.8.5, *, 5.10.215 |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 family | 0 |
| amazon:2023 | kernel-headers | 0 |
…and 2 more
Timeline
- Jun 21, 2024 CVE Published
- Jun 22, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (6 in total, the first dated here)
- Jan 8, 2026 Security Advisory (118 in total, the first dated here)
- May 12, 2026 CVE Updated
- May 28, 2026 Distribution Patch (98 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-38662
vulnetix vdb fixes CVE-2024-38662
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-38662/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart