wifi: rtw88: sdio: zero the padding added to a TX transfer

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux65371a3f14e73979958aea0db1e3bb456a296149 to before 8146f118b6d3f573d946dca012a2d666e8b3ddae Affected65371a3f14e73979958aea0db1e3bb456a296149 to before fba1a6719db6452493578728a07bb42b1f64b44e Affected65371a3f14e73979958aea0db1e3bb456a296149 to before 12564b689ddec554135833e2627691571d326007 Affected65371a3f14e73979958aea0db1e3bb456a296149 to before 3c4b0c3f8cb95dff1366a215172670623e2e60e4 Affected65371a3f14e73979958aea0db1e3bb456a296149 to before b81ead28aeb1fd9bc3b0de4e20342b6b538ac658 Affected
Linux Linux6.4 Affectedbefore 6.4 Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.