nfc: llcp: bound SNL TLV parsing to the skb and add length checks (Linux Linux)

CVE-2026-90223
HIGH 7.1

En bref

Source
NVD
EPSS
EPSS 0.41 % · centile 36 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: nfc: llcp: bound SNL TLV parsing to the skb and add length checks nfc_llcp_recv_snl() walked the SNL TLV list using a u16 offset/length pair derived from skb->len, without bounding reads to the actual skb data. Three problems followed: - For a short frame (skb->len < LLCP_HEADER_SIZE), tlv_len underflowed. - The per-TLV header (type, length) was read without checking that two bytes remained. - A declared TLV length could run past the end of the buffer, and an SDREQ with length == 0 made "service_name_len = length - 1" underflow (size_t), driving an out-of-bounds read in the following strncmp() / nfc_llcp_sock_from_sn(). The SDRES case likewise read tlv[2]/tlv[3] without a length check. A nearby NFC device can reach this without authentication; LLCP link activation happens automatically after NFC-DEP. Walk the TLV list by pointer, bounded by skb_tail_pointer() over the linear skb data, and validate each TLV declared length before use. Add explicit length checks for SDREQ (>= 1) and SDRES (exactly 2). Found by 0sec automated security-research tooling (https://0sec.ai).

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:HLinux
CVSS 3.1HIGH 7.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 19cfe5843e86cc95542d9d875c9386e197956d75 < 88b36d36e12c9ba76decdb580d9c1907c084e587 ; affected 19cfe5843e86cc95542d9d875c9386e197956d75 < 587fc2a5a35b41883b22b8f808fe5d345208914b ; affected 19cfe5843e86cc95542d9d875c9386e197956d75 < f04ac9bf2379f3e2470c400c235eb12f74891bef ; affected 19cfe5843e86cc95542d9d875c9386e197956d75 < 02030f95820c42431280f4f945ff34247fb840ff ; affected 19cfe5843e86cc95542d9d875c9386e197956d75 < 99fdb5c2522f365efa199d0117b641e35097041e ; affected 19cfe5843e86cc95542d9d875c9386e197956d75 < 749a9048bf51a668ec3ab6c0392ba32325607281
Linux · Linuxaffected 3.8 ; unaffected 0 < 3.8 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD