CVE-2024-26885 json
bpf: Fix DEVMAP_HASH overflow check on 32-bit arches
published 2024-04-17 2 y ago modified 2026-10-15 25 d ago also EUVD-2024-24147
- 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 DEVMAP_HASH overflow check on 32-bit arches
The devmap code allocates a number hash buckets equal to the next power of two of the max_entries value provided when creating the map. When rounding up to the next power of two, the 32-bit variable storing the number of buckets can overflow, and the code checks for overflow by checking if the truncated 32-bit value is equal to 0. However, on 32-bit arches the rounding up itself can overflow mid-way through, because it ends up doing a left-shift of 32 bits on an unsigned long value. If the size of an unsigned long is four bytes, this is undefined behaviour, so there is no guarantee that we'll end up with a nice and tidy 0-value at the end.
Syzbot managed to turn this into a crash on arm32 by creating a DEVMAP_HASH with max_entries > 0x80000000 and then trying to update it. Fix this by moving the overflow check to before the rounding up operation.
Patch / fix
- Linux Linux 5.4.285, 5.10.227, 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-26885
- linux Ubuntu 20.04 LTS 5.4.0-200.220
- 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-1135.145
- 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-1139.148
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1062.70
ubuntu advisories UBUNTU-CVE-2024-26885
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:1663-1
- git.kernel.org/stable/c/1f5e352b9088211fa5eb4e1639cd365f4f7d2f65 commit
- git.kernel.org/stable/c/4b81a9f92b3676cb74b907a7a209b3d15bd9a7f9 commit
- git.kernel.org/stable/c/c826502bed93970f2fd488918a7b8d5f1d30e2e3 commit
- git.kernel.org/stable/c/edf7990baa48de5097daa9ac02e06cb4c798a737 commit
- git.kernel.org/stable/c/250051acc21f9d4c5c595e4fcb55986ea08c4691 commit
- git.kernel.org/stable/c/22079b3a423382335f47d9ed32114e6c9fe88d7c commit
- git.kernel.org/stable/c/e89386f62ce9a9ab9a94835a9890883c23d9d52c commit
- git.kernel.org/stable/c/281d464a34f540de166cee74b723e97ac2515ec3 commit
- git.kernel.org/stable/c/225da02acdc97af01b6bc6ce1a3e5362bf01d3fb 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-26885 updated cvss 6.7
kernel: bpf: Fix DEVMAP_HASH overflow check on 32-bit arches
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more 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 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 7.8
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 |
| 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
- linux linux_kernel
- Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
- Technology feeds
References
- git.kernel.org /stable/c/1f5e352b9088211fa5eb4e1639cd365f4f7d2f65
- git.kernel.org /stable/c/4b81a9f92b3676cb74b907a7a209b3d15bd9a7f9
-
git.kernel.org
/stable/c/c826502bed93970f2fd488918a7b8d5f1d30e2e3
patch
-
git.kernel.org
/stable/c/edf7990baa48de5097daa9ac02e06cb4c798a737
patch
-
git.kernel.org
/stable/c/250051acc21f9d4c5c595e4fcb55986ea08c4691
patch
-
git.kernel.org
/stable/c/22079b3a423382335f47d9ed32114e6c9fe88d7c
patch
-
git.kernel.org
/stable/c/e89386f62ce9a9ab9a94835a9890883c23d9d52c
patch
-
git.kernel.org
/stable/c/281d464a34f540de166cee74b723e97ac2515ec3
patch
-
git.kernel.org
/stable/c/225da02acdc97af01b6bc6ce1a3e5362bf01d3fb
patch
- lists.debian.org /debian-lts-announce/2024/06/msg00017.html
- cert-portal.siemens.com /productcert/html/ssa-265688.html
Sources
- CVE List CVE-2024-26885
- NVD CVE-2024-26885
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.