linux/drivers/nfc
Dan Carpenter cab33b3b6d nfc: pn533: prevent potential memory corruption
[ Upstream commit ca4d4c34ae9aa5c3c0da76662c5e549d2fc0cc86 ]

If the "type_a->nfcid_len" is too large then it would lead to memory
corruption in pn533_target_found_type_a() when we do:

	memcpy(nfc_tgt->nfcid1, tgt_type_a->nfcid_data, nfc_tgt->nfcid1_len);

Fixes: c3b1e1e8a7 ("NFC: Export NFCID1 from pn533")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:44:27 +02:00
..
fdp
microread
nfcmrvl
nxp-nci
pn533 nfc: pn533: prevent potential memory corruption 2021-05-14 09:44:27 +02:00
pn544
s3fwrn5 nfc: s3fwrn5: Release the nfc firmware 2020-12-30 11:51:26 +01:00
st-nci
st21nfca
st95hf
Kconfig
Makefile
mei_phy.c
mei_phy.h
nfcsim.c
port100.c
trf7970a.c