CVE-2024-26883: bpf: Fix stackmap overflow check on 32-bit arches
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.
Security readout for executives and security teams
Plain-English summary
CVE-2024-26883 is a Linux kernel BPF bug affecting 32-bit architectures. A size calculation intended to prevent overflow could itself overflow unpredictably. The sources confirm kernel fixes exist, but do not provide CVSS, CWE, or a concrete impact statement.
Executive priority
Track and remediate through routine kernel patch management, with higher priority for 32-bit Linux systems running untrusted workloads. Current urgency is limited by missing severity and exploitation evidence.
Technical view
The BPF stackmap code used roundup_pow_of_two() to size hash buckets and then checked for zero. On 32-bit architectures, the rounding operation could invoke undefined behavior through a left shift before the overflow check. The fix checks the input value before rounding.
Likely exposure
Likely exposure is limited to affected Linux kernel versions on 32-bit architectures, especially where BPF map functionality is available. The supplied sources do not establish exposure for 64-bit-only systems or identify specific distributions beyond referenced Debian LTS advisories and vendor notices.
Exploitation context
The CVE says syzbot triggered the issue, but the bundle does not show public exploitation, weaponized exploit availability, or CISA KEV listing. Treat active exploitation as unconfirmed.
Researcher notes
The key issue is undefined behavior before the overflow check, not a missing check after rounding. The source bundle does not state memory corruption, privilege escalation, denial of service, or confidentiality impact, so impact assessment requires vendor advisories or kernel maintainer context.
Mitigation direction
Update affected Linux kernels to vendor releases containing the stable kernel fixes.
Check Debian LTS and appliance vendor advisories for packaged kernel availability.
Prioritize vendor-supported kernel updates over source-level assumptions.
If updates are unavailable, follow vendor guidance for BPF-related risk reduction.
Validation and detection
Inventory systems running 32-bit Linux kernels in affected version ranges.
Confirm installed kernel builds include the referenced stable commits or vendor backports.
Review Debian LTS and Siemens advisories if those ecosystems are present.
Document any 32-bit systems where BPF functionality is available to untrusted workloads.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-26883 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.