CVE-2026-98348: wifi: libipw: reject too-short association responses
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: libipw: reject too-short association responses
libipw_handle_assoc_resp() reads the capability, status and aid fields of the 30-byte association response prefix and then computes the information element length as
stats->len - sizeof(*frame)
stats->len is a u16 and sizeof() has type size_t, so the subtraction is evaluated as size_t and wraps instead of going negative. Truncating that to the u16 length parameter of libipw_parse_info_param() turns a frame shorter than the fixed fields into a length near 64 KiB, and the parser then reads past the receive buffer.
Both the ipw2100 and ipw2200 management receive paths reach this function having established only that the frame carries the generic 24-byte three-address header.
Reject the frame before any fixed field is touched.
Found by an AI-assisted review of length arithmetic in management frame parsers. Verified with a KUnit case under Generic KASAN on arm64 under QEMU; I do not have the hardware, so it is not tested on a real device.
The Linux kernel CVE team has assigned CVE-2026-98348 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.15 with commit 9e8571affd1c54b9638b4ff9844e47aae07310f6 and fixed in 5.10.271 with commit 766268b429ae26d8ca599031fa962b0fe4673120 Issue introduced in 2.6.15 with commit 9e8571affd1c54b9638b4ff9844e47aae07310f6 and fixed in 5.15.222 with commit d70bdb84cf1782039384c1ffa7a18b0303c286a7 Issue introduced in 2.6.15 with commit 9e8571affd1c54b9638b4ff9844e47aae07310f6 and fixed in 6.1.189 with commit 400b89217058fac672134a0d4092c8493dadb8ad Issue introduced in 2.6.15 with commit 9e8571affd1c54b9638b4ff9844e47aae07310f6 and fixed in 6.6.158 with commit 46aa75291056b6dc5faaf956dffdb3e9662477b0 Issue introduced in 2.6.15 with commit 9e8571affd1c54b9638b4ff9844e47aae07310f6 and fixed in 6.12.112 with commit e3025ecdb2057f866c09e059fc1466e81d6f243e Issue introduced in 2.6.15 with commit 9e8571affd1c54b9638b4ff9844e47aae07310f6 and fixed in 6.18.54 with commit 14cb425ba1f3a5d849e3bbc3d02d84e0ae195dbb Issue introduced in 2.6.15 with commit 9e8571affd1c54b9638b4ff9844e47aae07310f6 and fixed in 7.2.8 with commit af1b69be19c34e28c0ae54bee954b58cd076969a Issue introduced in 2.6.15 with commit 9e8571affd1c54b9638b4ff9844e47aae07310f6 and fixed in 7.3-rc4 with commit adb7118b7d2cfd7e8213c17d7d2829f353017754
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98348
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/766268b429ae26d8ca599031fa962b0fe4673120 https://git.kernel.org/stable/c/d70bdb84cf1782039384c1ffa7a18b0303c286a7 https://git.kernel.org/stable/c/400b89217058fac672134a0d4092c8493dadb8ad https://git.kernel.org/stable/c/46aa75291056b6dc5faaf956dffdb3e9662477b0 https://git.kernel.org/stable/c/e3025ecdb2057f866c09e059fc1466e81d6f243e https://git.kernel.org/stable/c/14cb425ba1f3a5d849e3bbc3d02d84e0ae195dbb https://git.kernel.org/stable/c/af1b69be19c34e28c0ae54bee954b58cd076969a https://git.kernel.org/stable/c/adb7118b7d2cfd7e8213c17d7d2829f353017754