NFC: pn533: bound the UART receive buffer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c656aa4c27b17a8c70da223ed5ab42145800d6b5 · < ad2f60de5045bfb5d20ea468a97c8760c6a3a4f8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
NFC: pn533: bound the UART receive buffer
pn532_receive_buf() appends every incoming byte to dev->recv_skb and only resets the buffer after pn532_uart_rx_is_frame() recognizes a complete frame. A continuous stream of bytes without a valid PN532 frame header therefore keeps growing the skb until skb_put_u8() hits the tail limit.
Drop the accumulated partial frame once the fixed receive buffer is full so malformed UART traffic cannot grow the skb past PN532_UART_SKB_BUFF_LEN.
From the CVE record · Linux
The Linux kernel pn533 NFC driver can keep appending bytes to its UART receive buffer when traffic lacks a valid PN532 frame header. Malformed UART traffic can fill the buffer and cause a write beyond its tail limit. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with the NFC pn533 driver should check their kernel version; affected versions are not specified.