nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6a2968aaf50c7a22fced77a5e24aa636281efca8 · < a946ebee45b09294c8b0b0e77410b763c4d2817a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet
syzbot reported the following uninit-value access issue [1][2]:
nci_rx_work() parses and processes received packet. When the payload length is zero, each message type handler reads uninitialized payload and KMSAN detects this issue. The receipt of a packet with a zero-size payload is considered unexpected, and therefore, such packets should be silently discarded.
This patch resolved this issue by checking payload size before calling each message type handler codes.
From the CVE record · Linux
The Linux kernel’s NFC NCI packet processing can read uninitialized payload data when it receives a packet with a zero-length payload. The input does not specify whether authentication, local or network access, or user interaction is required.
Engineers running the Linux kernel should check whether their builds include the NFC NCI fix; affected versions are not specified.