# CVE-2024-26883: bpf: Fix stackmap overflow check on 32-bit arches

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **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.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-119
- **Published:** 2024-04-17T10:27:39.036Z
- **Modified:** 2026-10-15T01:17:28.667Z

## Who should check

- Anyone running Linux \>= 063c722dd9d285d877e6fd499e753d6224f4c046, \< d0e214acc59145ce25113f617311aa79dda39cb3; \>= 7e3a6b820535eb395784060ae26c5af579528fa0, \< 21e5fa4688e1a4d3db6b72216231b24232f75c1d; \>= 8032bf2af9ce26b3a362b9711d15f626ab946a74, \< 15641007df0f0d35fa28742b25c2a7db9dcd6895; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< ca1f06e72dec41ae4f76e7b1a8a97265447b46ae; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< f06899582ccee09bd85d0696290e3eaca9aa042d; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 7070b274c7866a4c5036f8d54fcaf315c64ac33a; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 43f798b9036491fb014b55dd61c4c5c3193267d0; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 0971126c8164abe2004b8536b49690a0d6005b0a; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 7a4b21250bf79eef26543d35bd390448646c536b; 253150830a012adfccf90afcebae8fda5b05a80f; …
- Anyone running Linux 5.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix stackmap overflow check on 32-bit arches

The stackmap code relies on roundup\_pow\_of\_two() to compute the number
of hash buckets, and contains an overflow check by checking if the
resulting value is 0. However, on 32-bit arches, the roundup code itself
can overflow by doing a 32-bit left-shift of an unsigned long value,
which is undefined behaviour, so it is not guaranteed to truncate
neatly. This was triggered by syzbot on the DEVMAP\_HASH type, which
contains the same check, copied from the hashtab code.

The commit in the fixes tag actually attempted to fix this, but the fix
did not account for the UB, so the fix only works on CPUs where an
overflow does result in a neat truncation to zero, which is not
guaranteed. Checking the value before rounding does not have this
problem.

## Affected and fixed versions

- Linux: \>= 063c722dd9d285d877e6fd499e753d6224f4c046, \< d0e214acc59145ce25113f617311aa79dda39cb3; \>= 7e3a6b820535eb395784060ae26c5af579528fa0, \< 21e5fa4688e1a4d3db6b72216231b24232f75c1d; \>= 8032bf2af9ce26b3a362b9711d15f626ab946a74, \< 15641007df0f0d35fa28742b25c2a7db9dcd6895; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< ca1f06e72dec41ae4f76e7b1a8a97265447b46ae; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< f06899582ccee09bd85d0696290e3eaca9aa042d; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 7070b274c7866a4c5036f8d54fcaf315c64ac33a; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 43f798b9036491fb014b55dd61c4c5c3193267d0; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 0971126c8164abe2004b8536b49690a0d6005b0a; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 7a4b21250bf79eef26543d35bd390448646c536b; 253150830a012adfccf90afcebae8fda5b05a80f; … (cvelist)
- Linux: 5.11 (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-26883. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26883.md
Affected: Linux >= 063c722dd9d285d877e6fd499e753d6224f4c046, < d0e214acc59145ce25113f617311aa79dda39cb3; >= 7e3a6b820535eb395784060ae26c5af579528fa0, < 21e5fa4688e1a4d3db6b72216231b24232f75c1d; >= 8032bf2af9ce26b3a362b9711d15f626ab946a74, < 15641007df0f0d35fa28742b25c2a7db9dcd6895; >= 6183f4d3a0a2ad230511987…
Fixed in: Linux 21e5fa4688e1a4d3db6b72216231b24232f75c1d, Linux 15641007df0f0d35fa28742b25c2a7db9dcd6895, Linux 7070b274c7866a4c5036f8d54fcaf315c64ac33a, Linux 43f798b9036491fb014b55dd61c4c5c3193267d0, Linux 0971126c8164abe2004b8536b49690a0d6005b0a, Linux 7a4b21250bf79eef26543d35bd390448646c536b

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-26883 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 063c722dd9d285d877e6fd499e753d6224f4c046, \< d0e214acc59145ce25113f617311aa79dda39cb3; \>= 7e3a6b820535eb395784060ae26c5af579528fa0, \< 21e5fa4688e1a4d3db6b72216231b24232f75c1d; \>= 8032bf2af9ce26b3a362b9711d15f626ab946a74, \< 15641007df0f0d35fa28742b25c2a7db9dcd6895; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< ca1f06e72dec41ae4f76e7b1a8a97265447b46ae; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< f06899582ccee09bd85d0696290e3eaca9aa042d; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 7070b274c7866a4c5036f8d54fcaf315c64ac33a; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 43f798b9036491fb014b55dd61c4c5c3193267d0; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 0971126c8164abe2004b8536b49690a0d6005b0a; \>= 6183f4d3a0a2ad230511987c6c362ca43ec0055f, \< 7a4b21250bf79eef26543d35bd390448646c536b; 253150830a012adfccf90afcebae8fda5b05a80f; …; Linux 5.11.

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

Yes. Fixed in Linux 21e5fa4688e1a4d3db6b72216231b24232f75c1d, Linux 15641007df0f0d35fa28742b25c2a7db9dcd6895, Linux 7070b274c7866a4c5036f8d54fcaf315c64ac33a, Linux 43f798b9036491fb014b55dd61c4c5c3193267d0, Linux 0971126c8164abe2004b8536b49690a0d6005b0a, Linux 7a4b21250bf79eef26543d35bd390448646c536b. No fix listed yet: follow the vendor advisory.

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

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/d0e214acc59145ce25113f617311aa79dda39cb3>
- patch: <https://git.kernel.org/stable/c/21e5fa4688e1a4d3db6b72216231b24232f75c1d>
- patch: <https://git.kernel.org/stable/c/15641007df0f0d35fa28742b25c2a7db9dcd6895>
- patch: <https://git.kernel.org/stable/c/ca1f06e72dec41ae4f76e7b1a8a97265447b46ae>
- patch: <https://git.kernel.org/stable/c/f06899582ccee09bd85d0696290e3eaca9aa042d>
- patch: <https://git.kernel.org/stable/c/7070b274c7866a4c5036f8d54fcaf315c64ac33a>
- patch: <https://git.kernel.org/stable/c/43f798b9036491fb014b55dd61c4c5c3193267d0>
- patch: <https://git.kernel.org/stable/c/0971126c8164abe2004b8536b49690a0d6005b0a>
- patch: <https://git.kernel.org/stable/c/7a4b21250bf79eef26543d35bd390448646c536b>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.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-26883>

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