1. Accueil
  2. Vulnérabilités
  3. CVE-2024-26883

CVE-2024-26883

bpf: Fix stackmap overflow check on 32-bit arches

Publiée le 17 avr. 2024 · modifiée le 15 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 35/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Linux (16 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux de 4.19.177 (inclus) à 4.19.311 (exclu) — CNA (éditeur ou attributeur)
Linux de 5.4.99 (inclus) à 5.4.273 (exclu) — CNA (éditeur ou attributeur)
Linux de 5.10.17 (inclus) à 5.10.214 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.9.258 (inclus) à 4.10 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.14.222 (inclus) à 4.15 (exclu) — CNA (éditeur ou attributeur)
Linux 5.11 — CNA (éditeur ou attributeur)
Linux kernel de 4.9.258 (inclus) à 4.10 (exclu) — NVD
Linux kernel de 4.14.222 (inclus) à 4.15 (exclu) — NVD
Linux kernel de 4.19.177 (inclus) à 4.19.311 (exclu) — NVD
Linux kernel de 5.4.99 (inclus) à 5.4.273 (exclu) — NVD
Linux kernel de 5.10.17 (inclus) à 5.10.214 (exclu) — NVD
Linux kernel de 5.11 (inclus) à 5.15.153 (exclu) — NVD
Linux kernel de 5.16 (inclus) à 6.1.83 (exclu) — NVD
Linux kernel de 6.2 (inclus) à 6.6.23 (exclu) — NVD
Linux kernel de 6.7 (inclus) à 6.7.11 (exclu) — NVD
Linux kernel de 6.8 (inclus) à 6.8.2 (exclu) — NVD
Debian (1 ligne(s))
Debian
ProduitVersionsCorrigé dansSource
Debian linux 10.0 — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-119 · Corruption mémoire

Comment sont obtenues et calculées ces données