diff options
| author | Yehyeong Lee <yhlee@isslab.korea.ac.kr> | 2026-10-20 09:50:27 +0900 |
|---|---|---|
| committer | Jeff Chen <jeff.chen_1@nxp.com> | 2026-11-03 11:05:53 +0800 |
| commit | f17e2eda1630ab375ac71a91252694a485addef7 (patch) | |
| tree | 34df629423362d68b45865d7cd84d788174ab4d6 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 1cb78390d1c6c7908ab9838238a702799e0f7e9f (diff) | |
wifi: nxpwifi: bound the TLV lengths in the 11AX_CFG response
nxpwifi_ret_11ax_cfg() walks the TLVs the firmware returns and copies an
HE capability into fixed-size buffers without bounding any length. A
response shorter than the fixed part wraps the u16 walk length, and
header->len is used as a memcpy length without being checked against the
destination.
Reject a response too short for the fixed part, reject a TLV longer than
the bytes left, and reject an HE capability that does not fit its
destination. Select the destination buffer first, by band, then validate
and copy that one.
The lengths come from device firmware, so this is not a demonstrated
out-of-bounds write. The driver has not appeared in a released kernel,
so there is no stable tag.
Fixes: 73b01e57ed3e ("wifi: nxp: add nxpwifi driver for IW61x")
Signed-off-by: Yehyeong Lee <yhlee@isslab.korea.ac.kr>
Reviewed-by: Jeff Chen <jeff.chen_1@nxp.com>
Signed-off-by: Jeff Chen <jeff.chen_1@nxp.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
