# CVE-2024-26884: bpf: Fix hashtab overflow check on 32-bit arches

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-17 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2024-26884, DEBIAN-CVE-2024-26884
- Record: https://cvemate.com/vulnerability/CVE-2024-26884 · JSON: https://cvemate.com/vulnerability/CVE-2024-26884/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.251%, percentile 17.562%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 121)

- debian linux (Debian): \< 6.1.85-1 \| \< 6.7.12-1
- ubuntu linux (Ubuntu): \< 4.4.0-257.291 \| \< 4.15.0-227.239 \| \< 5.4.0-189.209 \| \< 5.15.0-112.122 \| \< 6.8.0-35.35
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1134.140 \| \< 4.4.0-1172.187 \| \< 4.15.0-1170.183 \| \< 5.4.0-1128.138 \| \< 5.15.0-1063.69 \| \< 6.8.0-1009.9
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1063.69~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1128.138~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2109.115 \| All versions (No fix recorded) \| \< 5.4.0-1128.138+fips1 \| \< 5.15.0-1063.69+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1170.183~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1179.194~14.04.1 \| \< 4.15.0-1179.194~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1133.140 \| \< 5.15.0-1066.75 \| \< 6.8.0-1008.8
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1179.194
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 41)

- <https://git.kernel.org/stable/c/33ec04cadb77605b71d9298311919303d390c4d5>
- <https://git.kernel.org/stable/c/92c81fbb3ed2e0dfc33a4183a67135e1ab566ace>
- <https://git.kernel.org/stable/c/64f00b4df0597590b199b62a37a165473bf658a6>
- <https://git.kernel.org/stable/c/3b08cfc65f07b1132c1979d73f014ae6e04de55d>
- <https://git.kernel.org/stable/c/a83fdaeaea3677b83a53f72ace2d73a19bcd6d93>
- <https://git.kernel.org/stable/c/8435f0961bf3dc65e204094349bd9aeaac1f8868>
- <https://git.kernel.org/stable/c/d817f0d34d927f2deb17dadbfe212c9a6a32ac3e>
- <https://git.kernel.org/stable/c/a6fa75b5096c0f9826a4fabe22d907b0a5bb1016>
- <https://git.kernel.org/stable/c/6787d916c2cf9850c97a0a3f73e08c43e7d973b1>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://ubuntu.com/security/CVE-2024-26884>
- <https://www.cve.org/CVERecord?id=CVE-2024-26884>
- <https://git.kernel.org/linus/6787d916c2cf9850c97a0a3f73e08c43e7d973b1>
- <https://ubuntu.com/security/notices/USN-6816-1>
- <https://ubuntu.com/security/notices/USN-6817-1>
- <https://ubuntu.com/security/notices/USN-6820-1>
- <https://ubuntu.com/security/notices/USN-6821-1>
- <https://ubuntu.com/security/notices/USN-6821-2>

---

Data as of 2026-12-05T06:22:35.135Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
