# CVE-2024-38662: bpf: Allow delete from sockmap/sockhash only if update is allowed

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2024-06-21T11:15:12.202Z
- **Modified:** 2026-10-15T01:18:32.737Z

## Who should check

- Anyone running Linux \>= dd54b48db0c822ae7b520bc80751f0a0a173ef75, \< 29467edc23818dc5a33042ffb4920b49b090e63d; \>= d1e73fb19a4c872d7a399ad3c66e8ca30e0875ec, \< 11e8ecc5b86037fec43d07b1c162e233e131b1d9; \>= a44770fed86515eedb5a7c00b787f847ebb134a5, \< 6693b172f008846811f48a099f33effc26068e1e; \>= 668b3074aa14829e2ac2759799537a93b60fef86, \< 000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1; \>= ff91059932401894e6c86341915615c5eb0eca48, \< b81e1c5a3c70398cf76631ede63a03616ed1ba3c; \>= ff91059932401894e6c86341915615c5eb0eca48, \< 98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d; f7990498b05ac41f7d6a190dc0418ef1d21bf058; 6af057ccdd8e7619960aca1f0428339f213b31cd; \>= 5.10.215, \< 5.10.219; \>= 5.15.154, \< 5.15.161; …
- Anyone running Linux 6.9

## 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.

## Affected and fixed versions

- Linux: \>= dd54b48db0c822ae7b520bc80751f0a0a173ef75, \< 29467edc23818dc5a33042ffb4920b49b090e63d; \>= d1e73fb19a4c872d7a399ad3c66e8ca30e0875ec, \< 11e8ecc5b86037fec43d07b1c162e233e131b1d9; \>= a44770fed86515eedb5a7c00b787f847ebb134a5, \< 6693b172f008846811f48a099f33effc26068e1e; \>= 668b3074aa14829e2ac2759799537a93b60fef86, \< 000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1; \>= ff91059932401894e6c86341915615c5eb0eca48, \< b81e1c5a3c70398cf76631ede63a03616ed1ba3c; \>= ff91059932401894e6c86341915615c5eb0eca48, \< 98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d; f7990498b05ac41f7d6a190dc0418ef1d21bf058; 6af057ccdd8e7619960aca1f0428339f213b31cd; \>= 5.10.215, \< 5.10.219; \>= 5.15.154, \< 5.15.161; … (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-38662. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-38662.md
Affected: Linux >= dd54b48db0c822ae7b520bc80751f0a0a173ef75, < 29467edc23818dc5a33042ffb4920b49b090e63d; >= d1e73fb19a4c872d7a399ad3c66e8ca30e0875ec, < 11e8ecc5b86037fec43d07b1c162e233e131b1d9; >= a44770fed86515eedb5a7c00b787f847ebb134a5, < 6693b172f008846811f48a099f33effc26068e1e; >= 668b3074aa14829e2ac2759…
Fixed in: Linux 29467edc23818dc5a33042ffb4920b49b090e63d, Linux 11e8ecc5b86037fec43d07b1c162e233e131b1d9, Linux 6693b172f008846811f48a099f33effc26068e1e, Linux 000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1, Linux 98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d, Linux 5.10.219, Linux 5.15.161

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-38662 being exploited?

There is no confirmed exploitation: CVE-2024-38662 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-38662?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-38662?

Linux \>= dd54b48db0c822ae7b520bc80751f0a0a173ef75, \< 29467edc23818dc5a33042ffb4920b49b090e63d; \>= d1e73fb19a4c872d7a399ad3c66e8ca30e0875ec, \< 11e8ecc5b86037fec43d07b1c162e233e131b1d9; \>= a44770fed86515eedb5a7c00b787f847ebb134a5, \< 6693b172f008846811f48a099f33effc26068e1e; \>= 668b3074aa14829e2ac2759799537a93b60fef86, \< 000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1; \>= ff91059932401894e6c86341915615c5eb0eca48, \< b81e1c5a3c70398cf76631ede63a03616ed1ba3c; \>= ff91059932401894e6c86341915615c5eb0eca48, \< 98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d; f7990498b05ac41f7d6a190dc0418ef1d21bf058; 6af057ccdd8e7619960aca1f0428339f213b31cd; \>= 5.10.215, \< 5.10.219; \>= 5.15.154, \< 5.15.161; …; Linux 6.9.

### Is there a fix for CVE-2024-38662?

Yes. Fixed in Linux 29467edc23818dc5a33042ffb4920b49b090e63d, Linux 11e8ecc5b86037fec43d07b1c162e233e131b1d9, Linux 6693b172f008846811f48a099f33effc26068e1e, Linux 000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1, Linux 98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d, Linux 5.10.219, Linux 5.15.161. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-38662?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/29467edc23818dc5a33042ffb4920b49b090e63d>
- patch: <https://git.kernel.org/stable/c/11e8ecc5b86037fec43d07b1c162e233e131b1d9>
- patch: <https://git.kernel.org/stable/c/6693b172f008846811f48a099f33effc26068e1e>
- patch: <https://git.kernel.org/stable/c/000a65bf1dc04fb2b65e2abf116f0bc0fc2ee7b1>
- patch: <https://git.kernel.org/stable/c/b81e1c5a3c70398cf76631ede63a03616ed1ba3c>
- patch: <https://git.kernel.org/stable/c/98e948fb60d41447fd8d2d0c3b8637fc6b6dc26d>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-38662>

HTML: <https://flawdb.com/CVE-2024-38662> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-38662>
