CVE-2026-31622
JSON

8.8high

NFC: digital: Bounds check NFC-A cascade depth in SDD response handler

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: NFC: digital: Bounds check NFC-A cascade depth in SDD response handler The NFC-A anti-collision cascade in digital_in_recv_sdd_res() appends 3 or 4 bytes to target->nfcid1 on each round, but the number of cascade rounds is controlled entirely by the peer device. The peer sets the cascade tag in the SDD_RES (deciding 3 vs 4 bytes) and the cascade-incomplete bit in the SEL_RES (deciding whether another round follows). ISO 14443-3 limits NFC-A to three cascade levels and target->nfcid1 is sized accordingly (NFC_NFCID1_MAXSIZE = 10), but nothing in the driver actually enforces this. This means a malicious peer can keep the cascade running, writing past the heap-allocated nfc_target with each round. Fix this by rejecting the response when the accumulated UID would exceed the buffer. Commit e329e71013c9 ("NFC: nci: Bounds check struct nfc_target arrays") fixed similar missing checks against the same field on the NCI path.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 2c66daecc4092e6049673c281b2e6f0d5e59a94c before 9ba6bb09e00b922d902f684f575779e5433fe6e3, from 2c66daecc4092e6049673c281b2e6f0d5e59a94c before f83b399aa05a0712e3b1569a30d3d90b3533d2ef, from 2c66daecc4092e6049673c281b2e6f0d5e59a94c before 20663102c14566e900e1d2f679e30b7f1694f387, from 2c66daecc4092e6049673c281b2e6f0d5e59a94c before 2819f34e08bdffb6f06a51c67948ec5737fb166a, from 2c66daecc4092e6049673c281b2e6f0d5e59a94c before 1bec5698b55aa2be5c3b983dba657c01d0fd3dbc, from 2c66daecc4092e6049673c281b2e6f0d5e59a94c before 5a59bf70c38ee1eb4be03bab830bbc3a6f0bd1f1, from 2c66daecc4092e6049673c281b2e6f0d5e59a94c before 8d9d9bf3565271ca7ab9c716a94e87296177e7ba, from 2c66daecc4092e6049673c281b2e6f0d5e59a94c before cc024a3de265ef6c58957f4990eccb9f806208cb and 2 more
Not affected: before 3.13, from 5.10.258 up to 5.10.*, from 5.15.209 up to 5.15.*, from 6.1.175 up to 6.1.*, from 6.6.136 up to 6.6.*, from 6.12.83 up to 6.12.*
CVE List
linux linux_kernelfrom 3.13 before 6.6.136, from 6.7 before 6.12.83, from 6.13 before 6.18.24, from 6.19 before 6.19.14, from 7.0 before 7.0.1NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: NFC: digital: Bounds check NFC-A cascade depth in SDD response handler The NFC-A anti-collision cascade in digital_in_recv_sdd_res() appends 3 or 4 bytes to target->nfcid1 on each round, but the number of cascade rounds is controlled entirely by the peer device. The peer sets the cascade tag in the SDD_RES (deciding 3 vs 4 bytes) and the cascade-incomplete bit in the SEL_RES (deciding whether another round follows). ISO 14443-3 limits NFC-A to three cascade levels and target->nfcid1 is sized accordingly (NFC_NFCID1_MAXSIZE = 10), but nothing in the driver actually enforces this. This means a malicious peer can keep the cascade running, writing past the heap-allocated nfc_target with each round. Fix this by rejecting the response when the accumulated UID would exceed the buffer. Commit e329e71013c9 ("NFC: nci: Bounds check struct nfc_target arrays") fixed similar missing checks against the same field on the NCI path.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: NFC: digital: Comprobación de límites de la profundidad de cascada NFC-A en el gestor de respuesta SDD La cascada anticolisión NFC-A en digital_in_recv_sdd_res() añade 3 o 4 bytes a target -> nfcid1 en cada ronda, pero el número de rondas de cascada es controlado completamente por el dispositivo par. El par establece la etiqueta de cascada en el SDD_RES (decidiendo 3 frente a 4 bytes) y el bit de cascada incompleta en el SEL_RES (decidiendo si sigue otra ronda). ISO 14443-3 limita NFC-A a tres niveles de cascada y target -> nfcid1 tiene un tamaño acorde (NFC_NFCID1_MAXSIZE = 10), pero nada en el controlador realmente lo aplica. Esto significa que un par malicioso puede mantener la cascada en ejecución, escribiendo más allá del nfc_target asignado en el heap con cada ronda. Solucione esto rechazando la respuesta cuando el UID acumulado excedería el búfer. El commit e329e71013c9 (’NFC: nci: Comprobación de límites de arrays de struct nfc_target’) corrigió comprobaciones faltantes similares contra el mismo campo en la ruta NCI.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31622 changed 2026-10-15CVE Terms of Use
NVDCVE-2026-31622 changed 2026-11-11Public domain