nfc: microread: validate target discovery payload lengths
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cfad1ba87150e198be9ea32367a24e500e59de2c · < d0902a7c454326c6384c614226ab8987f3fd425d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nfc: microread: validate target discovery payload lengths
microread_target_discovered() parses target discovery payloads from skb->data according to the HCI gate. The fixed field offsets and UID copies were checked only against the destination nfc_target buffers, not against the actual skb length.
Validate that each gate-specific payload contains the fixed fields and UID bytes before reading or copying them.
From the CVE record · Linux
The Linux kernel’s NFC microread driver did not check that target discovery payloads were long enough before reading fixed fields or copying UID bytes. A short payload could cause an out-of-bounds read when the driver processes it. The input does not establish whether an attacker can supply such a payload or whether authentication or user interaction is required.
Engineers running Linux kernels with the NFC microread driver should check their versions; affected versions are not specified.