linux-stable/drivers/nfc
Dan Carpenter ca4d4c34ae nfc: pn533: prevent potential memory corruption
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>
2021-04-02 14:27:50 -07:00
..
fdp NFC: Fix a typo 2021-03-22 12:59:07 -07:00
microread mei: bus: change remove callback to return void 2021-02-09 09:30:16 +01:00
nfcmrvl nfc: Fix Kconfig indentation 2019-11-20 12:30:40 -08:00
nxp-nci NFC: nxp-nci: Make firmware GPIO pin optional 2020-12-02 11:58:19 -08:00
pn533 nfc: pn533: prevent potential memory corruption 2021-04-02 14:27:50 -07:00
pn544 mei: bus: change remove callback to return void 2021-02-09 09:30:16 +01:00
s3fwrn5 nfc: s3fwrn5: Remove unused NCI prop commands 2020-12-16 13:09:35 -08:00
st-nci nfc: st-nci: Remove unnecessary variable 2021-02-08 14:56:20 -08:00
st21nfca nfc: remove unneeded break 2020-10-20 10:36:41 -07:00
st95hf NFC: st95hf: Fix memleak in st95hf_in_send_cmd 2020-08-24 17:34:25 -07:00
Kconfig nfc: Add a virtual nci device driver 2021-01-29 18:03:33 -08:00
Makefile nfc: Add a virtual nci device driver 2021-01-29 18:03:33 -08:00
mei_phy.c nfc/mei: convert to SPDX license tags 2019-03-28 02:07:54 +09:00
mei_phy.h
nfcsim.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
port100.c NFC: port100: Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu(). 2019-12-09 14:27:26 -08:00
trf7970a.c nfc: fix typo 2021-01-25 19:35:26 -08:00
virtual_ncidev.c nfc: Add a virtual nci device driver 2021-01-29 18:03:33 -08:00