CVE-2026-46163: wifi: b43legacy: enforce bounds check on firmware key index in RX path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: b43legacy: enforce bounds check on firmware key index in RX path
Same fix as b43: the firmware-controlled key index in b43legacy_rx() can exceed dev->max_nr_keys. The existing B43legacy_WARN_ON is non-enforcing in production builds, allowing an out-of-bounds read of dev->key[].
Make the check enforcing by dropping the frame for invalid indices.
The Linux kernel CVE team has assigned CVE-2026-46163 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.24 with commit 75388acd0cd827dc1498043daa7d1c760902cd67 and fixed in 6.6.140 with commit 1baaeb6adecb9691748c0253dab6ddd19a2b4e9e Issue introduced in 2.6.24 with commit 75388acd0cd827dc1498043daa7d1c760902cd67 and fixed in 6.12.88 with commit 6ee946077607d7783ae6709a899213fc4fe08f35 Issue introduced in 2.6.24 with commit 75388acd0cd827dc1498043daa7d1c760902cd67 and fixed in 6.18.30 with commit 9d1bc155802943e92c57a5fb923d23edfbf0b525 Issue introduced in 2.6.24 with commit 75388acd0cd827dc1498043daa7d1c760902cd67 and fixed in 7.0.7 with commit fdd4e51979f42ca8b1ab7e6176b607e1caabf2a5 Issue introduced in 2.6.24 with commit 75388acd0cd827dc1498043daa7d1c760902cd67 and fixed in 7.1-rc3 with commit a035766f970bde2d4298346a31a80685be5c0205
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-46163
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/broadcom/b43legacy/xmit.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/1baaeb6adecb9691748c0253dab6ddd19a2b4e9e https://git.kernel.org/stable/c/6ee946077607d7783ae6709a899213fc4fe08f35 https://git.kernel.org/stable/c/9d1bc155802943e92c57a5fb923d23edfbf0b525 https://git.kernel.org/stable/c/fdd4e51979f42ca8b1ab7e6176b607e1caabf2a5 https://git.kernel.org/stable/c/a035766f970bde2d4298346a31a80685be5c0205