linux/drivers/nfc
Pengpeng Hou 7f2ea5ed58
nfc: st21nfca: validate ISO15693 inventory length
The ISO15693 inventory helper removes a two-byte prefix without checking
that it exists, then accepts a one-byte remainder before reading data[1] as
the DSFID.

Require the prefix and at least two remaining bytes before copying the UID
data and reading the DSFID.

Fixes: 7974728094 ("NFC: st21nfca: Add ISO15693 Reader/Writer support")
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260830132958.6397-1-pengpeng@iscas.ac.cn
Signed-off-by: David Heidelberg <david@ixit.cz>
2026-09-23 22:13:17 +02:00
..
fdp Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-08-18 10:42:41 -07:00
microread nfc: fix use-after-free in nfc_get_local_general_bytes 2026-09-23 22:13:17 +02:00
nfcmrvl nfc: nfcmrvl: validate helper command length before pull 2026-09-23 22:13:15 +02:00
nxp-nci nfc: Unify style of of_device_id arrays 2026-08-11 18:14:00 +02:00
pn533 nfc: fix use-after-free in nfc_get_local_general_bytes 2026-09-23 22:13:17 +02:00
pn544 nfc: fix use-after-free in nfc_get_local_general_bytes 2026-09-23 22:13:17 +02:00
s3fwrn5 nfc: Unify style of of_device_id arrays 2026-08-11 18:14:00 +02:00
st-nci nfc: Unify style of spi_device_id arrays 2026-08-11 18:14:00 +02:00
st21nfca nfc: st21nfca: validate ISO15693 inventory length 2026-09-23 22:13:17 +02:00
st95hf nfc: st95hf: switch to using sleeping variants of gpiod API 2026-08-11 18:14:01 +02: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 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mei_phy.h NFC: mei_phy: fix kernel-doc warnings 2025-11-17 19:32:32 -08:00
nfcsim.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
port100.c nfc: port100: reject frames whose declared length exceeds the received data 2026-09-23 22:13:16 +02:00
trf7970a.c nfc: trf7970a: power down on startup RX gain failure 2026-09-23 22:13:17 +02:00
virtual_ncidev.c nfc: virtual_ncidev: Add missing ioctl compat handler 2026-09-23 22:13:16 +02:00