summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorYehyeong Lee <yhlee@isslab.korea.ac.kr>2026-10-20 09:50:27 +0900
committerJeff Chen <jeff.chen_1@nxp.com>2026-11-03 11:05:53 +0800
commitf17e2eda1630ab375ac71a91252694a485addef7 (patch)
tree34df629423362d68b45865d7cd84d788174ab4d6 /tools/perf/scripts/python/stackcollapse.py
parent1cb78390d1c6c7908ab9838238a702799e0f7e9f (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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions