VDB

CVE-2024-26883

CVE-2024-26883 PUBLISHED CVSS 7.8 HIGH

bpf: Fix stackmap overflow check on 32-bit arches

Reported by linux · Published April 17, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-modules-extraAmazon Linux6.1.84-99.169.amzn2023
python3-perfAmazon Linux6.1.84-99.169.amzn2023
kernel-libbpf-develAmazon Linux6.1.84-99.169.amzn2023

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux063c722dd9d285d877e6fd499e753d6224f4c046, 7e3a6b820535eb395784060ae26c5af579528fa0, 8032bf2af9ce26b3a362b9711d15f626ab946a74
LinuxLinux5.11, 0, 4.19.311
amazon:2023kernel-modules-extra0
amazon:2023python3-perf0
amazon:2023kernel-libbpf-devel0
linuxlinux_kernel5.11, 4.14.222, 4.19.177
amazon:2023kernel-headers0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf0
amazon:2023bpftool0
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel0
amazon:2023perf0
LinuxLinux4.14.222, 5.10.17, 4.9.258
amazon:2023kernel-tools0
amazon:2023kernel-livepatch-6.1.84-99.1690

Timeline

  • Apr 17, 2024 CVE Published
  • Apr 18, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
  • Jan 15, 2026 Security Advisory (252 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (195 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-26883
vulnetix vdb fixes CVE-2024-26883

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-26883/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 ›