- Accueil
- Vulnérabilités
- CVE-2026-23140
CVE-2026-23140
bpf, test_run: Subtract size of xdp_frame from allowed metadata size
Résumé
In the Linux kernel, the following vulnerability has been resolved: bpf, test_run: Subtract size of xdp_frame from allowed metadata size The xdp_frame structure takes up part of the XDP frame headroom, limiting the size of the metadata. However, in bpf_test_run, we don't take this into account, which makes it possible for userspace to supply a metadata size that is too large (taking up the entire headroom). If userspace supplies such a large metadata size in live packet mode, the xdp_update_frame_from_buff() call in xdp_test_run_init_page() call will fail, after which packet transmission proceeds with an uninitialised frame structure, leading to the usual Bad Stuff. The commit in the Fixes tag fixed a related bug where the second check in xdp_update_frame_from_buff() could fail, but did not add any additional constraints on the metadata size. Complete the fix by adding an additional check on the metadata size. Reorder the checks slightly to make the logic clearer and add a comment.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Linux (6 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Linux | 5.18 |
— | CNA (éditeur ou attributeur) |
| Linux kernel | de 5.18 (inclus) à 6.1.161 (exclu) |
— | NVD |
| Linux kernel | de 6.2 (inclus) à 6.6.121 (exclu) |
— | NVD |
| Linux kernel | de 6.7 (inclus) à 6.12.66 (exclu) |
— | NVD |
| Linux kernel | de 6.13 (inclus) à 6.18.6 (exclu) |
— | NVD |
| Linux kernel | 6.19 |
— | 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
- — Publication de la CVE (cve)
Références
- https://git.kernel.org/stable/c/31e37f44b60679d90b9f999c91371b15291be8e0Patch
- https://git.kernel.org/stable/c/6447e697cfa8a43a8e491cb81bcc390d0f28f8baPatch
- https://git.kernel.org/stable/c/7c81ad5e580bd8441f8a521a8d34824ce6582ae5Patch
- https://git.kernel.org/stable/c/e558cca217790286e799a8baacd1610bda31b261Patch
- https://git.kernel.org/stable/c/e7440935063949d6f2c10f7328d960d0ff4bce90Patch
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:N/I:N/A:H(CVSS 3.1, NVD)- Faiblesse
- NVD-CWE-noinfo · Non classé