diff options
| author | Ryosuke Yasuoka <[email protected]> | 2024-05-19 09:43:03 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-05-20 10:41:26 +0000 |
| commit | e4a87abf588536d1cdfb128595e6e680af5cf3ed (patch) | |
| tree | 687f63f649607a861f24260e842a08c4f3852e95 /net/unix/af_unix.c | |
| parent | selftests: net: kill smcrouted in the cleanup logic in amt.sh (diff) | |
| download | kernel-e4a87abf588536d1cdfb128595e6e680af5cf3ed.tar.gz kernel-e4a87abf588536d1cdfb128595e6e680af5cf3ed.zip | |
nfc: nci: Fix uninit-value in nci_rx_work
syzbot reported the following uninit-value access issue [1]
nci_rx_work() parses received packet from ndev->rx_q. It should be
validated header size, payload size and total packet size before
processing the packet. If an invalid packet is detected, it should be
silently discarded.
Fixes: d24b03535e5e ("nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet")
Reported-and-tested-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=d7b4dc6cd50410152534 [1]
Signed-off-by: Ryosuke Yasuoka <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
