net: nfc: nci: Fix parameter validation for packet data
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9c328f54741bd5465ca1dc717c84c04242fac2e1 · < 498fc5d0d650c77e87fcc73808d4f43240c21805| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: nfc: nci: Fix parameter validation for packet data
Since commit 9c328f54741b ("net: nfc: nci: Add parameter validation for packet data") communication with nci nfc chips is not working any more.
The mentioned commit tries to fix access of uninitialized data, but failed to understand that in some cases the data packet is of variable length and can therefore not be compared to the maximum packet length given by the sizeof(struct).
From the CVE record · Linux
The Linux kernel's NCI packet validation can reject valid variable-length data packets. This can prevent communication with NCI NFC chips; the input does not establish an attacker-controlled trigger or authentication requirements.
Check Linux kernel deployments using NCI NFC chips that include commit 9c328f54741b; affected versions are not specified.