nfc: st21nfca: validate ISO15693 inventory length
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7974728094d35f38775417a26d8f30ea3602496a · < fdd95e819d828c975aaeb258a3fed5dd7fd136d0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nfc: st21nfca: validate ISO15693 inventory length
The ISO15693 inventory helper removes a two-byte prefix without checking that it exists, then accepts a one-byte remainder before reading data[1] as the DSFID.
Require the prefix and at least two remaining bytes before copying the UID data and reading the DSFID.
From the CVE record · Linux
The Linux kernel’s st21nfca ISO15693 inventory helper does not check that a two-byte prefix exists or that enough data remains before reading the DSFID. A short inventory response can cause an out-of-bounds read. The input does not specify how an attacker could supply such a response or whether authentication or user interaction is needed.
Engineers running the Linux kernel with the st21nfca NFC component should check their systems; affected versions are not specified.