CVE-2024-38662
bpf: Allow delete from sockmap/sockhash only if update is allowed
Check your servers for CVE-2024-38662
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-38662 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 21 Jun 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from dd54b48db0c822ae7b520bc80751f0a0a173ef75, before 29467edc23818dc5a33042ffb4920b49b090e63d affected from d1e73fb19a4c872d7a399ad3c66e8ca30e0875ec, before 11e8ecc5b86037fec43d07b1c162e233e131b1d9 affected from a44770fed86515eedb5a7c00b787f847ebb134a5, before 6693b172f008846811f48a099f33effc26068e1e affected from 668b3074aa14829e2ac2759799537a93b60fef86, before 000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1 affected from ff91059932401894e6c86341915615c5eb0eca48, before b81e1c5a3c70398cf76631ede63a03616ed1ba3c affected from ff91059932401894e6c86341915615c5eb0eca48, before 98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d affected f7990498b05ac41f7d6a190dc0418ef1d21bf058 affected 6af057ccdd8e7619960aca1f0428339f213b31cd affected from 5.10.215, before 5.10.219 affected from 5.15.154, before 5.15.161 affected from 6.1.85, before 6.1.93 affected from 6.6.26, before 6.6.33 affected from 5.4.274, before 5.5 affected from 6.8.5, before 6.9
Other versions: unaffected
|
| Linux |
affected 6.9 unaffected before 6.9 unaffected from 5.10.219 up to and including 5.10.* unaffected from 5.15.161 up to and including 5.15.* unaffected from 6.1.93 up to and including 6.1.* unaffected from 6.6.33 up to and including 6.6.* unaffected from 6.9.4 up to and including 6.9.* unaffected 6.10 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-38662 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38662
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-38662
trivy image --scanners vuln IMAGE | grep CVE-2024-38662
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/29467edc23818dc5a33042ffb4920b49b090e63d git.kernel.org
- https://git.kernel.org/stable/c/11e8ecc5b86037fec43d07b1c162e233e131b1d9 git.kernel.org
- https://git.kernel.org/stable/c/6693b172f008846811f48a099f33effc26068e1e git.kernel.org
- https://git.kernel.org/stable/c/000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1 git.kernel.org
- https://git.kernel.org/stable/c/b81e1c5a3c70398cf76631ede63a03616ed1ba3c git.kernel.org
- https://git.kernel.org/stable/c/98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-613116.html cert-portal.siemens.com
Source: the record CVE-2024-38662 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse