Re: [PATCH] wifi: mwifiex: bound uAP association event IEs to the event buffer
From: skyexpoc
Date: Fri Jul 10 2026 - 06:44:50 EST
| > Should we consider the firmware trust-worthy or should we validate > everything we receive from it? Is there some agreement on this topic > in general? For mwifiex there's a concrete reason not to trust it: besides the SDIO/PCIe parts, mwifiex also drives USB dongles (8797/8801/8997), so the "firmware" can sit on a hot-pluggable, potentially attacker-supplied device. A malformed event from such a device is the same threat model as any other malicious USB peripheral, not just a hypothetical firmware bug. There is also precedent inside mwifiex itself: commit 119585281617 ("wifi: mwifiex: Fix OOB and integer underflow when rx packets") already added exactly these bounds checks to the receive-data path. This patch is the same class of fix for the uAP event path, which that commit did not cover. So I'd say it's consistent with how the driver already treats firmware-reported lengths and agreed, worth fixing. Thanks, HE WEI(ギカク)
|
Attachment:
signature.asc
Description: PGP signature