CVE-2024-26884 json
bpf: Fix hashtab overflow check on 32-bit arches
published 2024-04-17 2 y ago modified 2026-10-15 25 d ago also EUVD-2024-24146
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix hashtab overflow check on 32-bit arches
The hashtab 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. So apply the same fix to hashtab, by moving the overflow check to before the roundup.
Patch / fix
- Linux Linux 4.19.311, 5.4.273, 5.10.214, 5.15.153, 6.1.83, 6.6.23, 6.7.11, 6.8.2, 6.9
- Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem V1.1.1
- linux Debian 12 6.1.85-1
- linux Debian 14, Debian 13 6.7.12-1
debian advisories DEBIAN-CVE-2024-26884
- linux Ubuntu 20.04 LTS 5.4.0-189.209
- linux Ubuntu 22.04 LTS 5.15.0-112.122
- linux Ubuntu 24.04 LTS 6.8.0-35.35
- linux-aws Ubuntu 20.04 LTS 5.4.0-1128.138
- linux-aws Ubuntu 22.04 LTS 5.15.0-1063.69
- linux-aws Ubuntu 24.04 LTS 6.8.0-1009.9
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1132.141
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1062.70
ubuntu advisories UBUNTU-CVE-2024-26884
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt Linux Micro 6.0 6.4.0-9.1
- kernel-source-rt Linux Micro 6.0 6.4.0-9.1
- kernel-source Linux Micro 6.0 6.4.0-18.1
- kernel-default Linux Micro 6.0 6.4.0-18.1
- kernel-kvmsmall Linux Micro 6.0 6.4.0-18.1
- kernel-default-base Linux Micro 6.0 6.4.0-17.1.1.51
- kernel-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
- kernel-syms-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
suse advisories SUSE-SU-2025:20028-1SUSE-SU-2025:20008-1SUSE-SU-2024:2973-1SUSE-SU-2024:2203-1SUSE-SU-2024:2135-1SUSE-SU-2024:1870-1
- git.kernel.org/stable/c/33ec04cadb77605b71d9298311919303d390c4d5 commit
- git.kernel.org/stable/c/92c81fbb3ed2e0dfc33a4183a67135e1ab566ace commit
- git.kernel.org/stable/c/64f00b4df0597590b199b62a37a165473bf658a6 commit
- git.kernel.org/stable/c/3b08cfc65f07b1132c1979d73f014ae6e04de55d commit
- git.kernel.org/stable/c/a83fdaeaea3677b83a53f72ace2d73a19bcd6d93 commit
- git.kernel.org/stable/c/8435f0961bf3dc65e204094349bd9aeaac1f8868 commit
- git.kernel.org/stable/c/d817f0d34d927f2deb17dadbfe212c9a6a32ac3e commit
- git.kernel.org/stable/c/a6fa75b5096c0f9826a4fabe22d907b0a5bb1016 commit
- git.kernel.org/stable/c/6787d916c2cf9850c97a0a3f73e08c43e7d973b1 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-26884 updated cvss 6.7
kernel: bpf: Fix hashtab overflow check on 32-bit arches
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-24-102-01 updated cvss 5.5
Siemens SIMATIC S7-1500 TM MFP
-
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystemaffected: mitigation, no fix available
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA ADP | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 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
- Linux Linux
- Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
Classification
- Weakness
- Technology feeds
References
-
git.kernel.org
/stable/c/33ec04cadb77605b71d9298311919303d390c4d5
patch
-
git.kernel.org
/stable/c/92c81fbb3ed2e0dfc33a4183a67135e1ab566ace
patch
-
git.kernel.org
/stable/c/64f00b4df0597590b199b62a37a165473bf658a6
patch
-
git.kernel.org
/stable/c/3b08cfc65f07b1132c1979d73f014ae6e04de55d
patch
-
git.kernel.org
/stable/c/a83fdaeaea3677b83a53f72ace2d73a19bcd6d93
patch
-
git.kernel.org
/stable/c/8435f0961bf3dc65e204094349bd9aeaac1f8868
patch
-
git.kernel.org
/stable/c/d817f0d34d927f2deb17dadbfe212c9a6a32ac3e
patch
-
git.kernel.org
/stable/c/a6fa75b5096c0f9826a4fabe22d907b0a5bb1016
patch
-
git.kernel.org
/stable/c/6787d916c2cf9850c97a0a3f73e08c43e7d973b1
patch
- lists.debian.org /debian-lts-announce/2024/06/msg00017.html
- lists.debian.org /debian-lts-announce/2024/06/msg00020.html
- cert-portal.siemens.com /productcert/html/ssa-265688.html
Sources
- CVE List CVE-2024-26884
- NVD CVE-2024-26884
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.