Description
In the Linux kernel, the following vulnerability has been resolved:

staging: rtl8723bs: fix OOB read in rtw_get_wpa_ie()

rtw_get_wpa_ie() reads bytes at fixed offsets into a vendor-specific
information element without checking that the element is long enough,
causing an out-of-bounds read for a short trailing IE.

The function locates a vendor-specific IE (EID 221) with rtw_get_ie()
and then compares a 4-byte OUI+type at pbuf + 2 and reads a 2-byte
version word at pbuf + 6. Those accesses require the IE body to be at
least 6 bytes, but rtw_get_ie() only guarantees that the element fits
within the buffer; it does not enforce a minimum body length. A
vendor-specific IE whose length byte is 0 to 5, placed at the end of
the buffer, therefore makes these reads run past the end of the IE and
past the end of the buffer itself.

The buffer holds information elements taken from received management
frames and from the IE blob passed to rtw_cfg80211_set_wpa_ie(), which
is kmemdup'd to its exact length, so the read can run off the end of
the allocation.

The sibling helpers rtw_get_sec_ie(), rtw_get_wapi_ie() and
rtw_get_wps_ie() in this file already reject too-short vendor-specific
IEs before their OUI memcmp(); rtw_get_wpa_ie() was never brought in
line with them, and needs a minimum of 6 rather than 4 bytes because
of the version word. Add the missing length check.
Published: 2026-08-22
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The rtl8723bs staging driver contains a flaw where the function that extracts the WPA information element reads a version field and an OUI+type from a vendor‑specific IE without first verifying that the IE body is at least 6 bytes long. If the IE length byte is between 0 and 5, these reads access memory past the end of the IE and past the end of the allocated buffer, resulting in an out‑of‑bounds read that could expose sensitive kernel data. The affected code path is exercised when processing received management frames or when a user calls rtw_cfg80211_set_wpa_ie(), which copies the IE blob verbatim. No known authentication or privilege checks are involved, so the read can be triggered simply by a crafted frame.

Affected Systems

Any Linux system that builds the kernel with the rtl8723bs driver in the staging tree is affected. This includes standard distributions that ship the driver as part of the kernel and any custom builds that incorporate the staging driver. The vulnerability is tied to the hardware identifier 221 (EID 221) and applies to all instances of the rtl8723bs chipset handled by the driver.

Risk and Exploitability

The vulnerability can be exploited by sending a malformed vendor‑specific IE that is too short to the rtl8723bs device. Because the driver performs no bounds check on the IE body, the kernel will read past the allocated buffer, allowing an attacker to tail the bytes read by the kernel. This read can be triggered by remote traffic, so the attack is possible without privileged local access. The exploitation path requires the target to have a working rtl8723bs driver, and the attacker must have sufficient wireless transmission capability to reach the device.

Generated by OpenCVE AI on August 22, 2026 at 16:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the upstream kernel patch that adds the missing length check to rtw_get_wpa_ie() based on the commits listed in the provided kernel URLs.
  • If the rtl8723bs driver is shipped as a separate vendor package, install the vendor’s updated bundle that contains the corrected code.
  • Until a patch or updated driver is available, disable the rtl8723bs wireless interface or block reception of malformed vendor‑specific EID 221 frames by configuring the access point or local firewall rules.
  • Monitor system logs and network traffic for suspicious management frames or read‑out errors that may indicate exploitation attempts.

Generated by OpenCVE AI on August 22, 2026 at 16:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125

Sat, 22 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix OOB read in rtw_get_wpa_ie() rtw_get_wpa_ie() reads bytes at fixed offsets into a vendor-specific information element without checking that the element is long enough, causing an out-of-bounds read for a short trailing IE. The function locates a vendor-specific IE (EID 221) with rtw_get_ie() and then compares a 4-byte OUI+type at pbuf + 2 and reads a 2-byte version word at pbuf + 6. Those accesses require the IE body to be at least 6 bytes, but rtw_get_ie() only guarantees that the element fits within the buffer; it does not enforce a minimum body length. A vendor-specific IE whose length byte is 0 to 5, placed at the end of the buffer, therefore makes these reads run past the end of the IE and past the end of the buffer itself. The buffer holds information elements taken from received management frames and from the IE blob passed to rtw_cfg80211_set_wpa_ie(), which is kmemdup'd to its exact length, so the read can run off the end of the allocation. The sibling helpers rtw_get_sec_ie(), rtw_get_wapi_ie() and rtw_get_wps_ie() in this file already reject too-short vendor-specific IEs before their OUI memcmp(); rtw_get_wpa_ie() was never brought in line with them, and needs a minimum of 6 rather than 4 bytes because of the version word. Add the missing length check.
Title staging: rtl8723bs: fix OOB read in rtw_get_wpa_ie()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-22T15:32:27.073Z

Reserved: 2026-08-15T05:44:03.923Z

Link: CVE-2026-74651

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T16:16:38.543

Modified: 2026-08-22T16:16:38.543

Link: CVE-2026-74651

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T17:00:10Z

Weaknesses