VDB

CVE-2024-38662

CVE-2024-38662 PUBLISHED

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.

PackageEcosystemFixed in
python3-perfAmazon Linux6.1.94-99.176.amzn2023

Affected products

VendorProductVersions
LinuxLinuxdd54b48db0c822ae7b520bc80751f0a0a173ef75, d1e73fb19a4c872d7a399ad3c66e8ca30e0875ec, a44770fed86515eedb5a7c00b787f847ebb134a5
LinuxLinux6.9, 0, 5.10.219
amazon:2023python3-perf0
linuxlinux_kernel5.15.154, 6.1.85, 6.9
amazon:2023kernel0
amazon:2023perf0
amazon:2023kernel-tools0
amazon:2023bpftool0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-tools-devel0
amazon:2023kernel-modules-extra0
amazon:2023kernel-livepatch-6.1.94-99.1760
amazon:2023kernel-devel0
amazon:2023kernel-modules-extra-common0
LinuxLinux6.8.5, *, 5.10.215
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family0
amazon:2023kernel-libbpf0
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 family0
amazon:2023kernel-headers0

…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

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