diff options
author | Ryosuke Yasuoka <ryasuoka@redhat.com> | 2024-05-19 18:43:03 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-05-20 11:41:26 +0100 |
commit | e4a87abf588536d1cdfb128595e6e680af5cf3ed (patch) | |
tree | 687f63f649607a861f24260e842a08c4f3852e95 /io_uring | |
parent | cc563e749810f5636451d4b833fbd689899ecdb9 (diff) |
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 'io_uring')
0 files changed, 0 insertions, 0 deletions