nuttx/drivers/contactless
Catalin Visinescu a3029acf95 drivers/contactless/mfrc522: Contactless Driver Is Not Robust
An attacker can specify an arbitrary page address when reading MIFARE tags.
Without validation, this could read beyond intended memory regions on the
tag, potentially causing a crash.

The mfrc522_mifare_read() command is also not robust and does not check
that the page address is valid. From section 7.6.5 of the *MIFARE Ultralight
contactless single-ticket IC
(https://www.nxp.com/docs/en/data-sheet/MF0ICU1.pdf) document:

>> The READ command needs the page address as a parameter. Only addresses
00h to 0Fh are decoded.

Testing: Builds fine.

Signed-off-by: Catalin Visinescu <catalin_visinescu@yahoo.com>
2026-07-02 09:38:49 +02:00
..
CMakeLists.txt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
Kconfig drivers/*/Kconfig: Consolidate driver Kconfig Files. 2020-02-15 15:19:11 +01:00
Make.defs drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
mfrc522.c drivers/contactless/mfrc522: Contactless Driver Is Not Robust 2026-07-02 09:38:49 +02:00
mfrc522.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pn532.c drivers/contactless/mfrc522: Contactless Driver Is Not Robust 2026-07-02 09:38:49 +02:00
pn532.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00