CVE-2024-26884

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-26884
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26884.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-26884
Downstream
Related
Published
2024-04-17T11:15:10Z
Modified
2025-08-09T19:01:27Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix hashtab overflow check on 32-bit arches

The hashtab code relies on rounduppowoftwo() 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 DEVMAPHASH 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.

References

Affected packages