summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorRyosuke Yasuoka <ryasuoka@redhat.com>2024-05-19 12:43:03 +0300
committerDavid S. Miller <davem@davemloft.net>2024-05-20 13:41:26 +0300
commite4a87abf588536d1cdfb128595e6e680af5cf3ed (patch)
tree687f63f649607a861f24260e842a08c4f3852e95 /drivers/net
parentcc563e749810f5636451d4b833fbd689899ecdb9 (diff)
downloadlinux-e4a87abf588536d1cdfb128595e6e680af5cf3ed.tar.xz
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: syzbot+d7b4dc6cd50410152534@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=d7b4dc6cd50410152534 [1] Signed-off-by: Ryosuke Yasuoka <ryasuoka@redhat.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions