CVE-2026-98189: wifi: wilc1000: fix RX buffer OOB-write in wilc_wlan_handle_isr_ext()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: wilc1000: fix RX buffer OOB-write in wilc_wlan_handle_isr_ext()
wilc_wlan_handle_isr_ext() takes the RX transfer size from the device-reported interrupt status register (a 15-bit field shifted left by 2, up to 131068 bytes) and reads that many bytes from the device into rx_buffer, which is only WILC_RX_BUFF_SIZE (96K) large. The wrap check only handles the current offset; the size itself is never compared against the buffer, so a bogus SDIO device can make the driver OOB-write rx_buffer by up to ~32K with data it controls.
The oversized transfer also leaves rx_buffer_offset past the end of the buffer, after which the unsigned wrap check stops working and the overflow can repeat.
Drop any transfer whose size exceeds the RX buffer, acknowledging the data interrupt and re-arming the RX engine so the bogus frame is discarded and reception can continue. This also restores the rx_buffer_offset <= WILC_RX_BUFF_SIZE invariant the wrap check relies on.
This is not expected to change driver behavior in most cases:
without this check, an oversized transfer would most likely corrupt neighboring kernel memory instead of completing anyway, and the drop path performs the same interrupt acknowledgment and RX engine re-arming as the normal path, so subsequent transfers are received unaffected.
Discovered by Atuin - Automated Vulnerability Discovery Engine.
The Linux kernel CVE team has assigned CVE-2026-98189 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.2 with commit c5c77ba18ea66aa05441c71e38473efb787705a4 and fixed in 5.10.271 with commit 3ddb88e237bc1e59fd37b1cf369f3b6c2dedae26 Issue introduced in 4.2 with commit c5c77ba18ea66aa05441c71e38473efb787705a4 and fixed in 5.15.222 with commit 9f6a276ade936a8803f9f3df217c2368944dc321 Issue introduced in 4.2 with commit c5c77ba18ea66aa05441c71e38473efb787705a4 and fixed in 6.1.189 with commit aeb44a456d126d89863230eef0187e77e6441995 Issue introduced in 4.2 with commit c5c77ba18ea66aa05441c71e38473efb787705a4 and fixed in 6.6.158 with commit 612ed9224eae70c53c0c88cb0990e0f9b709280a Issue introduced in 4.2 with commit c5c77ba18ea66aa05441c71e38473efb787705a4 and fixed in 6.12.112 with commit 304a5d72a04a3979a6434088c8d9c5172c2a908e Issue introduced in 4.2 with commit c5c77ba18ea66aa05441c71e38473efb787705a4 and fixed in 6.18.54 with commit 4f86fb6f9dce04f697da85806ad96a932fc2f079 Issue introduced in 4.2 with commit c5c77ba18ea66aa05441c71e38473efb787705a4 and fixed in 7.2.8 with commit 14dcf4c3d74c878175b19d3da5986f83f26b1dd5 Issue introduced in 4.2 with commit c5c77ba18ea66aa05441c71e38473efb787705a4 and fixed in 7.3-rc4 with commit c1ba7f7f18465e259cf1b4d9c73fc73853d7f790
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-98189
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/microchip/wilc1000/wlan.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/3ddb88e237bc1e59fd37b1cf369f3b6c2dedae26 https://git.kernel.org/stable/c/9f6a276ade936a8803f9f3df217c2368944dc321 https://git.kernel.org/stable/c/aeb44a456d126d89863230eef0187e77e6441995 https://git.kernel.org/stable/c/612ed9224eae70c53c0c88cb0990e0f9b709280a https://git.kernel.org/stable/c/304a5d72a04a3979a6434088c8d9c5172c2a908e https://git.kernel.org/stable/c/4f86fb6f9dce04f697da85806ad96a932fc2f079 https://git.kernel.org/stable/c/14dcf4c3d74c878175b19d3da5986f83f26b1dd5 https://git.kernel.org/stable/c/c1ba7f7f18465e259cf1b4d9c73fc73853d7f790