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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
c5c77ba18ea66aa05441c71e38473efb787705a4 to < 3ddb88e237bc1e59fd37b1cf369f3b6c2dedae26affectedc5c77ba18ea66aa05441c71e38473efb787705a4 to < 9f6a276ade936a8803f9f3df217c2368944dc321affectedc5c77ba18ea66aa05441c71e38473efb787705a4 to < aeb44a456d126d89863230eef0187e77e6441995affectedc5c77ba18ea66aa05441c71e38473efb787705a4 to < 612ed9224eae70c53c0c88cb0990e0f9b709280aaffectedc5c77ba18ea66aa05441c71e38473efb787705a4 to < 304a5d72a04a3979a6434088c8d9c5172c2a908eaffectedc5c77ba18ea66aa05441c71e38473efb787705a4 to < 4f86fb6f9dce04f697da85806ad96a932fc2f079affectedc5c77ba18ea66aa05441c71e38473efb787705a4 to < 14dcf4c3d74c878175b19d3da5986f83f26b1dd5affectedc5c77ba18ea66aa05441c71e38473efb787705a4 to < c1ba7f7f18465e259cf1b4d9c73fc73853d7f790affected
Linux Linux
Default version status: affected
4.2affected0 to < 4.2unaffected5.10.271 to ≤ 5.10.*unaffected5.15.222 to ≤ 5.15.*unaffected6.1.189 to ≤ 6.1.*unaffected6.6.158 to ≤ 6.6.*unaffected6.12.112 to ≤ 6.12.*unaffected6.18.54 to ≤ 6.18.*unaffected7.2.8 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- 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 ↗