diff options
| author | 2026-10-07 11:30:21 +0200 | |
|---|---|---|
| committer | 2026-10-08 10:36:12 +1100 | |
| commit | 7e6689cbbf9e6040e4ce38656a126459aa994f68 (patch) | |
| tree | 774a48a3bc5006cacf4a52f0f25ac30b65f78d42 /scripts/Makefile.thinlto | |
| parent | wifi: mm81x: copy new sband for each module (diff) | |
wifi: mm81x: validate YAPS receive framing
The receive byte count comes from device-controlled status registers, but
the packet splitter unconditionally consumes a four-byte delimiter. A count
of one to three bytes therefore makes bytes_remaining negative. If the
reused receive buffer contains a valid delimiter, the negative value is
passed to memcpy() and converted to a near-SIZE_MAX length, corrupting
kernel memory.
YAPS streams are word aligned, so reject byte counts that cannot contain
complete delimiters. Also reject delimiter sizes which do not leave any
packet data after removing the reserved metadata page.
Assisted-by: LLM
Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Felix Hoffmann <f3lix.dev@gmx.de>
Link: https://patch.msgid.link/20261007093021.17132-1-f3lix.dev@gmx.de
[remove Suggested-by and fix Assisted-by]
Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
