CVE-2026-139688

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

Published Nov 30, 2026 CVSS n/a EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel’s rtw88 SDIO Wi‑Fi driver contains a logic flaw that causes the transfer size to be rounded up before being passed to the hardware copy routine, while the socket buffer only contains the original data length. This mismatch results in an out‑of‑bounds read that propagates uninitialized memory into the transmitted packet. The leaked data may contain kernel memory contents, leading to information exposure. The vulnerability is an instance of CWE‑125 (Out‑of‑Bounds Read) and CWE‑200 (Information Exposure). It does not provide a way to achieve arbitrary code execution or denial of service, but it compromises the confidentiality of anything that resides in the uninitialized memory being transmitted.

Affected Systems

Linux kernel builds that incorporate the rtw88 SDIO driver are affected, with the RTL8723BS chipset explicitly noted in the announcement. Any machine running a kernel that includes this driver, regardless of distribution, is susceptible until the patch that zeroes the padding is deployed. The vulnerability is not limited to a single vendor; it applies to all Linux-based systems using the vulnerable driver path.

Risk and Exploitability

The flaw is activated during normal transmission; no special privileges or remote access are required. An adversary merely needs to eavesdrop on the device’s wireless link to capture the transmitted payload that contains uninitialized memory. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, which suggests limited or unknown exploitation activity so far. While the confidentiality impact is clear, the overall severity remains moderate because there is no code execution or denial‑of‑service capability. Applying the kernel patch removes the risk entirely.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the rtw88 SDIO driver patch, which zeroes the padding and eliminates the out‑of‑bounds read.
  • After updating, reload the network driver or reboot the system to ensure the patched code is active.
  • If the kernel cannot be updated immediately, disable the rtw88 driver or the Wi‑Fi interface, or replace the hardware with a modem that does not use the vulnerable SDIO path.

Generated by OpenCVE AI on December 1, 2026 at 16:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-125
CWE-200
Type Values Removed Values Added
Weaknesses CWE-125
CWE-200
Type Values Removed Values Added
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.
Title wifi: rtw88: sdio: zero the padding added to a TX transfer
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM