CVE-2026-138932: staging: rtl8723bs: fix RX buffer OOB write from device-reported length
In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8723bs: fix RX buffer OOB write from device-reported length
sdrecvrxfifo() trusts the device-reported RX0REQLEN value (hal->SdioRxFIFOSize, a u16 read from the card via CMD52) as the size of the next RX packet and passes it to sdioreadport(), which copies that many bytes into the recvbuf skb whose data area is only MAXRECVBUFSZ (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 RX0REQLEN exceeds MAXRECVBUFSZ. This is expected to keep behavior unchanged on normal devices.
Discovered by Atuin - Automated Vulnerability Discovery Engine.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In sd_recv_rxfifo(), bail out when RX0_REQ_LEN exceeds MAX_RECVBUF_SZ (10240 bytes).
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Systems using the Linux kernel's staging rtl8723bs driver are exposed when communicating with a bogus or malicious SDIO device. Normal devices are expected to continue working unchanged after the fix.
What does an attacker need to exploit it?
An attacker needs control of an SDIO device that can report an RX0_REQ_LEN value larger than the driver's 10,240-byte receive buffer. The device can report values up to 65,535 bytes, causing a heap overflow of roughly 55 KB beyond the buffer.
What behavior does the fix introduce?
The fixed driver rejects received length values that exceed MAX_RECVBUF_SZ rather than passing them to the SDIO read operation. This prevents oversized device-reported packet lengths from being copied into the receive buffer.