AZL-114905: CVE-2026-99454 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8723bs: fix protected RX frame validation in decrypt path
The RX software decrypt path mishandles crafted protected frames from a malicious AP in two ways:
1) decryptor() never checks that a protected frame is long enough to hold the 802.11 header plus the per-cipher trailer. All of rtwwepdecrypt(), rtwtkipdecrypt() and rtwaesdecrypt() compute
length = hdr.len - hdrlen - ivlen;
and act on the result, and recvframechkmic() similarly computes
datalen = hdr.len - hdrlen - ivlen - icvlen - 8;
for TKIP (the 8-byte Michael MIC is not accounted for in icvlen). A frame shorter than hdrlen + ivlen + icvlen (+ 8 for TKIP) underflows these unsigned subtractions, turning into a ~4 GiB iteration count in aesdecipher()/arc4crypt()/rtwseccalctkipmic() or a ~4 GiB crc32le() length, causing out-of-bounds reads/writes of up to ~4 GiB starting from the rx skb. Reject such frames in decryptor() before touching the IV; this covers all three ciphers and the TKIP MIC check, and also keeps the unconditional iv[3] access within the frame.
2) validate80211wmgmt() keeps using the frame - two memcpys through the stale rxdata pointer and a pktlen update - before checking whether decryptor() returned NULL. On decrypt failure (e.g. a unicast protected deauth/disassoc/action frame with a bad MIC, which this path always software-decrypts) the skb has already been freed, so this is a use-after-free read/write, and the caller's error path frees the frame a second time, drifting freerecvframecnt. Bail out immediately when decryptor() fails, freeing the temporary mgmtDATA buffer first.
Discovered by Atuin - Automated Vulnerability Discovery Engine.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In rtl8723bs, reject protected frames in decryptor() before accessing the IV if the frame is shorter than hdrlen + iv_len + icv_len, plus 8 bytes for TKIP.
- Compensating control
When decryptor() returns NULL, bail out immediately before accessing rx_data or updating pkt_len, to avoid using the freed frame.