Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected c656aa4c27b17a8c70da223ed5ab42145800d6b5 before 8bedf1dd5640ac8997bff00bbefe241b438df397; affected c656aa4c27b17a8c70da223ed5ab42145800d6b5 before 23e925183db26cd322597679669ad29d70ed2ada; affected c656aa4c27b17a8c70da223ed5ab42145800d6b5 before 3adca9be14bf36b927193f05f5aea35a1a90e913; affected c656aa4c27b17a8c70da223ed5ab42145800d6b5 before 2c1fadd221b21d8038acfe6a0f56291881d5ff76; affected c656aa4c27b17a8c70da223ed5ab42145800d6b5 before f48ab6ee654ecc350434e4566bc785773f412b7e; affected c656aa4c27b17a8c70da223ed5ab42145800d6b5 before ad2f60de5045bfb5d20ea468a97c8760c6a3a4f8; affected c656aa4c27b17a8c70da223ed5ab42145800d6b5 before cf2ff10183204349edfd6b972e189375fc5f1fb0; affected c656aa4c27b17a8c70da223ed5ab42145800d6b5 before 30fe3f5f6494f827d812ff179f295a8e532709d6 |
| Linux / Linux | affected 5.5; unaffected 0 before 5.5; unaffected 5.10.253 through 5.10.*; unaffected 5.15.203 through 5.15.*; unaffected 6.1.168 through 6.1.*; unaffected 6.6.134 through 6.6.*; unaffected 6.12.81 through 6.12.*; unaffected 6.18.22 through 6.18.*; unaffected 6.19.12 through 6.19.*; unaffected 7.0 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/8bedf1dd5640ac8997bff00bbefe241b438df397
- https://git.kernel.org/stable/c/23e925183db26cd322597679669ad29d70ed2ada
- https://git.kernel.org/stable/c/3adca9be14bf36b927193f05f5aea35a1a90e913
- https://git.kernel.org/stable/c/2c1fadd221b21d8038acfe6a0f56291881d5ff76
- https://git.kernel.org/stable/c/f48ab6ee654ecc350434e4566bc785773f412b7e
- https://git.kernel.org/stable/c/ad2f60de5045bfb5d20ea468a97c8760c6a3a4f8
- https://git.kernel.org/stable/c/cf2ff10183204349edfd6b972e189375fc5f1fb0
- https://git.kernel.org/stable/c/30fe3f5f6494f827d812ff179f295a8e532709d6