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

From: Elkin Cruz

Date: Wed Nov 25 2026 - 17:23:49 EST


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(-)

--
2.56.1.839.g22a8290db9-goog