diff options
| author | 2026-09-11 23:15:31 +0100 | |
|---|---|---|
| committer | 2026-10-07 13:35:30 +1100 | |
| commit | ad130fe516914076f3fb11940b1bf9181de04425 (patch) | |
| tree | a7370cfddec61c4009a29f5d7831b14ff71f0ad2 /scripts/Makefile.thinlto | |
| parent | wifi: mm81x: use hweight16() to calculate bit index (diff) | |
wifi: mm81x: validate n_channels in disabled channels response
mm81x_mac_check_fw_disabled_chans() iterates over n_channels entries of
the firmware response without validating the response length against
the array size. A firmware response with n_channels larger than
ARRAY_SIZE(mors_s1ghz_channels) reads past the end of the response
buffer. To fix, make sure we validate the length prior to use.
Assisted-by: LLM
Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Aamir Ahmed <elb12345@hotmail.co.uk>
Link: https://patch.msgid.link/AS8P251MB00015A3FFF9F9A9628CB0BB0C8BE2@AS8P251MB0001.EURP251.PROD.OUTLOOK.COM
[slightly reword commit message]
Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
