net/sched: cls_u32: validate offshift to prevent shift-out-of-bounds (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.13 % · centile 3 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Statut NVD
- Received
Rechercher sur…
Description
In the Linux kernel, the following vulnerability has been resolved: net/sched: cls_u32: validate offshift to prevent shift-out-of-bounds u32_change() copies the user-provided tc_u32_sel.offshift (unsigned char, 0-255) into the kernel knode object without bounds validation. When a packet later hits u32_classify() with TC_U32_VAROFFSET set, it evaluates `ntohs(offmask & *data) >> offshift` where the left operand is a 16-bit value promoted to a 32-bit int. Any offshift >= 32 is undefined behavior per C11 6.5.7p3, triggerable by an unprivileged user via user/network namespaces. UBSAN: shift-out-of-bounds in net/sched/cls_u32.c:236:43 shift exponent 32 is too large for 32-bit type int Fix this by rejecting offshift >= 16 during filter creation in u32_change().
Références
- https://git.kernel.org/stable/c/7fd5b2287e5cf33e114fb7f0cef781a546039757
- https://git.kernel.org/stable/c/724c8edbacf1259988829cb9967f751222121d8a
- https://git.kernel.org/stable/c/006a4598da9a6b02e0ddc3ca5042b97224774364
- https://git.kernel.org/stable/c/9990cac513e8b191de2ee589051ea7ebf3cee940
- https://git.kernel.org/stable/c/313cb9ffc4101a885d791facf4b5ea3d5e06144d
- https://git.kernel.org/stable/c/aef96eead2860cbfa371e4471d4f04412213b958
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2026-59737
- GCVE · GCVE-0-2026-74544
Avis du CERT-FR
- CERTFR-2026-AVI-1432 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1286 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions |
|---|---|
| Linux · Linux | affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 7fd5b2287e5cf33e114fb7f0cef781a546039757 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 724c8edbacf1259988829cb9967f751222121d8a ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 006a4598da9a6b02e0ddc3ca5042b97224774364 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 9990cac513e8b191de2ee589051ea7ebf3cee940 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 313cb9ffc4101a885d791facf4b5ea3d5e06144d ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < aef96eead2860cbfa371e4471d4f04412213b958 |
| Linux · Linux | affected 2.6.12 ; unaffected 0 < 2.6.12 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.114 ≤ 6.12.* ; unaffected 6.18.57 ≤ 6.18.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |