linux/drivers/nfc
Edward Adam Davis 068648aab7 nfc/nci: Add the inconsistency check between the input data length and count
write$nci(r0, &(0x7f0000000740)=ANY=[@ANYBLOB="610501"], 0xf)

Syzbot constructed a write() call with a data length of 3 bytes but a count value
of 15, which passed too little data to meet the basic requirements of the function
nci_rf_intf_activated_ntf_packet().

Therefore, increasing the comparison between data length and count value to avoid
problems caused by inconsistent data length and count.

Reported-and-tested-by: syzbot+71bfed2b2bcea46c98f2@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-05-29 13:08:31 +01:00
..
fdp
microread
nfcmrvl nfc: mrvl: spi: drop driver owner assignment 2024-03-29 12:32:51 -07:00
nxp-nci
pn533 treewide, serdev: change receive_buf() return type to size_t 2024-01-27 18:13:53 -08:00
pn544
s3fwrn5 treewide, serdev: change receive_buf() return type to size_t 2024-01-27 18:13:53 -08:00
st-nci
st21nfca
st95hf nfc: st95hf: drop driver owner assignment 2024-03-29 12:32:51 -07:00
Kconfig
Makefile
mei_phy.c
mei_phy.h
nfcsim.c
port100.c
trf7970a.c NFC: trf7970a: disable all regulators on removal 2024-04-22 14:19:58 -07:00
virtual_ncidev.c nfc/nci: Add the inconsistency check between the input data length and count 2024-05-29 13:08:31 +01:00