CVE-2026-139688

Source
https://cve.org/CVERecord?id=CVE-2026-139688
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139688.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139688
Downstream
Published
2026-11-30T13:37:03Z
Modified
2026-11-30T15:02:30Z
Summary
wifi: rtw88: sdio: zero the padding added to a TX transfer
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139688.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
65371a3f14e73979958aea0db1e3bb456a296149
Fixed
8146f118b6d3f573d946dca012a2d666e8b3ddae
Fixed
fba1a6719db6452493578728a07bb42b1f64b44e
Fixed
12564b689ddec554135833e2627691571d326007
Fixed
3c4b0c3f8cb95dff1366a215172670623e2e60e4
Fixed
b81ead28aeb1fd9bc3b0de4e20342b6b538ac658

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139688.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.4.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139688.json"