CVE-2026-138932

staging: rtl8723bs: fix RX buffer OOB write from device-reported length

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

staging: rtl8723bs: fix RX buffer OOB write from device-reported length

sd_recv_rxfifo() trusts the device-reported RX0_REQ_LEN value
(hal->SdioRxFIFOSize, a u16 read from the card via CMD52) as the
size of the next RX packet and passes it to sdio_read_port(), which
copies that many bytes into the recvbuf skb whose data area is only
MAX_RECVBUF_SZ (10240) bytes. A bogus device on SDIO can report up to
65535 bytes, causing a heap overflow of up to ~55KB past the skb
buffer.

Bail out when the RX0_REQ_LEN exceeds MAX_RECVBUF_SZ. This is expected
to keep behavior unchanged on normal devices.

Discovered by Atuin - Automated Vulnerability Discovery Engine.

Analysis

AI-generated

Technical impact

The Linux kernel's rtl8723bs staging driver was vulnerable because the function sd_recv_rxfifo() accepts an 16‑bit value reported by the SDIO device as the length of an incoming packet and copies that many bytes into a sk_buff. The sk_buff data area is limited to 10240 bytes. If a device supplies a length up to 65535, the copy overruns the buffer, causing a heap overflow of up to roughly 55 kilobytes. An attacker with control over the SDIO device could trigger this overflow, leading to memory corruption that could be exploited for arbitrary code execution or a denial‑of‑service crash.

Affected Systems

All Linux kernel releases that include the rtl8723bs driver in the staging tree without the bound check are vulnerable. This includes any kernel compiled with CONFIG_RTL8723BS set to load the driver and connecting to any SDIO‑based rtl8723bs card. No specific kernel version range is listed, so it is safest to consider any kernel prior to the commit that introduced the bound check to be affected.

Risk and Exploitability

Because the bug resides in the kernel, the risk is high, with potential for privilege escalation. EPSS data is not available, so the likelihood of widespread exploitation is unclear, but the code path is reachable from any SDIO device connected to the host. The absence of a KEV listing does not imply lower risk. An attacker would need to supply a malicious SDIO card or compromise an existing card, so the attack vector is a physical device or potentially a compromised peripheral.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a patched version that includes the bound‑check commit (the commit identifiers are available in the references).
  • If a kernel update is not feasible, disable the rtl8723bs driver by blacklisting the module or recompiling the kernel without CONFIG_RTL8723BS.
  • Remove or isolate any unsecured SDIO devices that could supply malicious packets, and restrict physical access to SDIO slots.

Generated by OpenCVE AI on November 30, 2026 at 18:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix RX buffer OOB write from device-reported length sd_recv_rxfifo() trusts the device-reported RX0_REQ_LEN value (hal->SdioRxFIFOSize, a u16 read from the card via CMD52) as the size of the next RX packet and passes it to sdio_read_port(), which copies that many bytes into the recvbuf skb whose data area is only MAX_RECVBUF_SZ (10240) bytes. A bogus device on SDIO can report up to 65535 bytes, causing a heap overflow of up to ~55KB past the skb buffer. Bail out when the RX0_REQ_LEN exceeds MAX_RECVBUF_SZ. This is expected to keep behavior unchanged on normal devices. Discovered by Atuin - Automated Vulnerability Discovery Engine.
Title staging: rtl8723bs: fix RX buffer OOB write from device-reported length
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:26 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM