Qualcomm Wi-Fi drivers accepted bad checksums and forged sources
Fixes for ath11k and ath12k, mostly found by an LLM reading the code, close receive-path holes including a spoof a bridge will learn.
Julius Bairaktaris has posted fixes for a run of receive-path bugs in the kernel drivers for Qualcomm's ath11k and ath12k Wi-Fi chips. He wrote that an LLM review of the code, using Anthropic's Claude, found them. He then reproduced the source-address flaw on hardware and measured the checksum bug.
The checksum problem is the one with a number attached. Both drivers marked a frame as already verified whenever the hardware did not report a checksum failure, including ICMP, ICMPv6, IP fragments and 802.11 fragments the hardware never actually checked. The network stack then treated the checksum as done. On an IPQ8074 running OpenWrt's ath11k, an access point answered all 50 ICMP echo requests and all 50 fragmented UDP datagrams that arrived with a wrong checksum. With the fixes it answered none and counted 50 checksum errors in each case.
A second bug is a practical spoof. With Ethernet decapsulation, ath11k delivered a station's frames under whatever Ethernet source the hardware passed up, without comparing it to the associated station. On the same IPQ8074, with firmware WLAN.HK.2.12-01460, a station that enabled 4-address mode on its own side could send frames under any source address. An ath10k station sent 200 broadcasts with a forged source; all 200 reached the access point's bridge, which learned the forged address on the Wi-Fi port. The fix drops those frames on an access point unless the peer is actually using four addresses. ath12k already hands the equivalent frames up as 802.11 frames, which the stack drops.
Two more flaws come from both drivers keeping one receive-status block for every frame in a hardware batch. A group-addressed frame that follows a decrypted unicast frame can inherit a flag that tells the stack the packet number was already checked, so the group-key replay check is skipped. On the IPQ8074 that path is not reachable: the firmware delivers group frames on an error path, and a station under unicast load saw none of 29,011 group frames arrive with the flag already set. Bairaktaris noted that a chip or firmware that does deliver group frames on the normal ring could accept a replayed group frame with no key. In ath12k the same shared status can also mark later EAPOL and decrypted group frames as Ethernet, so they are dropped or parsed as if the 802.11 header were an Ethernet header. An EAPOL frame that follows any station's data in the same batch is lost that way.
The remaining changes harden ath11k against bad descriptors and teardown races: leaked receive buffers, a radio identifier and error codes from the device used as array indexes with no bound check, a reinjected fragment unmapped in the wrong DMA direction, a debug print that could read a peer address after the peer was freed, a raw frame split across buffers handed up malformed, and a monitor timer deleted or armed on IPQ8074, IPQ6018, QCN9074 and IPQ5018 without ever being set up. The DMA change follows a fix Lorenzo Bianconi already posted for ath12k. Bairaktaris wrote that no released firmware is known to supply the inputs that trigger the unbounded indexes or the split raw frame.