Not scored
wifi: rtw88: sdio: zero the padding added to a TX transfer
- Severity
- Not scored
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: wifi: rtw88: sdio: zero the padding added to a TX transfer rtw_sdio_write_port() rounds the transfer up with sdio_align_size() and then hands that length to sdio_memcpy_toio() 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. __skb_pad() 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: rtw_sdio_write_data() frees the skb itself and rtw_sdio_process_tx_queue() 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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 65371a3f14e73979958aea0db1e3bb456a296149 before 8146f118b6d3f573d946dca012a2d666e8b3ddae, from 65371a3f14e73979958aea0db1e3bb456a296149 before fba1a6719db6452493578728a07bb42b1f64b44e, from 65371a3f14e73979958aea0db1e3bb456a296149 before 12564b689ddec554135833e2627691571d326007, from 65371a3f14e73979958aea0db1e3bb456a296149 before 3c4b0c3f8cb95dff1366a215172670623e2e60e4, from 65371a3f14e73979958aea0db1e3bb456a296149 before b81ead28aeb1fd9bc3b0de4e20342b6b538ac658, 6.4 Not affected: before 6.4, from 6.6.163 up to 6.6.*, from 6.12.119 up to 6.12.*, from 6.18.65 up to 6.18.*, from 7.3.6 up to 7.3.*, from 7.4-rc1 up to * | CVE List |
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-139688 changed 2026-11-30 | CVE Terms of Use |
| NVD | CVE-2026-139688 changed 2026-11-30 | Public domain |