mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] nfc: pn533: bound device-supplied lengths in the receive path
@ 2026-06-18  2:59 Michael Bommarito
  2026-06-18  2:59 ` [PATCH 1/2] " Michael Bommarito
  2026-06-18  2:59 ` [PATCH 2/2] nfc: pn533: add KUnit tests for receive-path bounds Michael Bommarito
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Bommarito @ 2026-06-18  2:59 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Dan Carpenter
  Cc: Jakub Kicinski, Kees Cook, linux-kernel

The PN533 receive path trusts several device-supplied length fields and
reads past the received buffer when they exceed it. The receive skb is
sized to the device's USB transfer length, so a malicious or counterfeit
PN53x reader triggers out-of-bounds reads in the standard/ACR122 frame
validators, in Type A target parsing (nfcid_len), and in the autopoll
record walk.

Michael Bommarito (2):
  nfc: pn533: bound device-supplied lengths in the receive path
  nfc: pn533: add KUnit tests for receive-path bounds

 drivers/nfc/pn533/Kconfig |   9 +++
 drivers/nfc/pn533/pn533.c | 125 +++++++++++++++++++++++++++++++++++++-
 drivers/nfc/pn533/pn533.h |   3 +-
 drivers/nfc/pn533/usb.c   |  12 +++-
 4 files changed, 144 insertions(+), 5 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-18  3:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-18  2:59 [PATCH 0/2] nfc: pn533: bound device-supplied lengths in the receive path Michael Bommarito
2026-06-18  2:59 ` [PATCH 1/2] " Michael Bommarito
2026-06-18  2:59 ` [PATCH 2/2] nfc: pn533: add KUnit tests for receive-path bounds Michael Bommarito

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®