Skip to content

nfc: st95hf: fix SPI receive bounds, DMA safety, and teardown UAF

Elkin Cruz lkml llvm oe-linux-nfc stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4nfc: st95hf: bound SPI receive length in st95hf_spi_recv_response()drivers/nfc/st95hf/core.c drivers/nfc/st95hf/spi.c drivers/nfc/st95hf/spi.h+28 -120 replies
2/4nfc: st95hf: use DMA-safe buffers for SPI transfersdrivers/nfc/st95hf/spi.c drivers/nfc/st95hf/spi.h+37 -250 replies
3/4nfc: st95hf: validate async tag response frame lengthsdrivers/nfc/st95hf/core.c+19 -80 replies
4/4nfc: st95hf: fix probe init order and remove teardown UAFdrivers/nfc/st95hf/core.c+60 -580 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/4] nfc: st95hf: fix SPI receive bounds, DMA safety, and teardown UAF

I am trying out new Clang static analysis checks for kernel bug classes, and they flagged this code as possibly buggy. The findings were triaged/fixed and commit descriptions were drafted with help of AI, then checked against linux-next (not runtime-tested on hardware).

Thanks,
Elkin

Elkin Cruz (4):
nfc: st95hf: bound SPI receive length in st95hf_spi_recv_response()
nfc: st95hf: use DMA-safe buffers for SPI transfers
nfc: st95hf: validate async tag response frame lengths
nfc: st95hf: fix probe init order and remove teardown UAF

 drivers/nfc/st95hf/core.c | 151 +++++++++++++++++++++-----------------
 drivers/nfc/st95hf/spi.c  |  75 +++++++++++--------
 drivers/nfc/st95hf/spi.h  |  13 +++-
 3 files changed, 140 insertions(+), 99 deletions(-)
Signature · 1 line
2.56.1.839.g22a8290db9-goog