1. Accueil
  2. Vulnérabilités
  3. CVE-2026-68368

CVE-2026-68368

usb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb()

Publiée le 10 août 2026 · modifiée le 6 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Faible 13/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb() When unpacking host-supplied NTBs, ncm_unwrap_ntb() checks datagram length against frame_max but does not verify that the datagram fits within the declared block length. Additionally, when decoding multiple NTBs from a single socket buffer, subsequent block lengths are not checked against the actual remaining buffer data. With these checks missing, a malicious USB host can specify datagram offsets and lengths that point beyond the block, or supply secondary NTB headers declaring lengths larger than the buffer. skb_put_data() then copies adjacent kernel memory from skb_shared_info into the network skb. Fix this by verifying that sufficient buffer space remains for the NTB header before parsing, handling zero-length block declarations, ensuring that block lengths never exceed the remaining buffer space, and verifying that each datagram payload stays strictly within the block boundary.

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

Produits et versions affectés

Linux (9 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux de 4.9.235 (inclus) à 4.10 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.14.196 (inclus) à 4.15 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.19.143 (inclus) à 4.20 (exclu) — CNA (éditeur ou attributeur)
Linux de 5.4.62 (inclus) à 5.5 (exclu) — CNA (éditeur ou attributeur)
Linux de 5.8.6 (inclus) à 5.9 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.14.328 (inclus) à 4.15 (exclu) — CNA (éditeur ou attributeur)
Linux de 4.19.297 (inclus) à 4.20 (exclu) — CNA (éditeur ou attributeur)
Linux de 5.4.259 (inclus) à 5.5 (exclu) — CNA (éditeur ou attributeur)
Linux 5.9 — CNA (éditeur ou attributeur)

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)
  2. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1286)
  3. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1333)
  4. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1385)
  5. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1469)
  6. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1537)
  7. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1596)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)

Comment sont obtenues et calculées ces données