AZL-117289: CVE-2026-139688 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw88: sdio: zero the padding added to a TX transfer
rtwsdiowriteport() rounds the transfer up with sdioalignsize() and then hands that length to sdiomemcpytoio() while the skb still only holds skb->len bytes. The difference, between one and 511 bytes, is read from beyond the end of the frame and transmitted. Whether it stays inside the skb's allocation depends on how much tailroom the skb happens to have, so this is at best sending uninitialised memory over the air.
Pad the skb up to the transfer size first. skbpad() zeroes the added bytes, reallocates a cloned skb rather than writing into a buffer a clone still shares, and leaves skb->len alone, so nothing else in the transmit path has to change.
It must not free the skb on failure: rtwsdiowritedata() frees the skb itself and rtwsdioprocesstxqueue() requeues it, so both callers still own it and would double free.
Found while reworking this path for the RTL8723BS. Measured on RTL8723BS hardware, padding the transfer costs about 2% observable over transfer: uplink is 19.5 to 19.8 Mbit/s padded against 20.9 to 21.1 Mbit/s unpadded in an interleaved A/B, with scans, reconnection and a UDP flood clean in both. The other SDIO parts sharing this path are untested; I have only the RTL8723BS.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the RTL8723BS SDIO transmit path, pad the skb to the transfer size with __skb_pad() before transmitting so the added bytes are zeroed.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux rtw88 SDIO Wi-Fi transmit path are exposed. The issue was measured on RTL8723BS hardware; the provided data does not identify other affected hardware.
What could leak during exploitation?
A transmit operation can send between one and 511 bytes beyond the end of a frame over the air. Depending on available skb tailroom, those bytes may contain uninitialized memory.
Does exploiting this require local access or authentication?
The provided information does not state an attacker access requirement or authentication prerequisite. It describes leakage occurring when the affected SDIO transmit path rounds a frame transfer length beyond the frame length.
What is the remediation described for this issue?
The transmit skb should be padded to the SDIO-aligned transfer size before transmission, with the added bytes zeroed. The padding operation must not free the skb on failure because callers retain ownership and may requeue or free it.