Re: [PATCH net] nfc: s3fwrn5: validate the firmware image size against the firmware file

From: Joas Antonio dos Santos

Date: Fri Oct 30 2026 - 13:23:01 EST


This was found by LLM-assisted code review, as part of an audit of the
NFC drivers that are only reachable with real hardware (and so are not
exercised by syzbot). It was then confirmed with KASAN on arm64 QEMU,
using a test-only module that registers s3fwrn5 through s3fwrn5_probe()
on a virtual phy and a userspace emulator of the controller's NCI and
bootloader protocols, as described below the --- of the patch. It was
not hit in production or on hardware.