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

staging: rtl8723bs: fix heap buffer overflow in rtw_cfg80211_set_wpa_ie()

supplicant_ie is a 256-byte array in struct security_priv. The WPA and
WPA2 IE copy paths use:

memcpy(padapter->securitypriv.supplicant_ie, &pwpa[0], wpa_ielen + 2);

where wpa_ielen is the raw IE length field (u8, 0-255). When a local user
supplies a connect request via nl80211 with a crafted WPA IE of length 255,
wpa_ielen + 2 equals 257, overflowing the 256-byte buffer by one byte into
the adjacent last_mic_err_time field.

rtw_parse_wpa_ie() does not prevent this: its length consistency check
compares *(wpa_ie+1) against (u8)(wpa_ie_len-2), which is (u8)(255) == 255
when wpa_ie_len = 257, so the check passes silently.

Add explicit bounds checks for both the WPA and WPA2 paths before the
memcpy, rejecting any IE whose total size (wpa_ielen + 2) exceeds the
supplicant_ie buffer.
Published: 2026-07-25
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the Linux kernel’s staging driver rtl8723bs. During a wireless connection setup, a user can supply a WPA Information Element crafted to 255 bytes. The driver copies the IE data plus a 2–byte header into a 256‑byte buffer using memcpy, which writes 257 bytes and overflows the buffer by one byte into an adjacent field. This overflow can corrupt control data on the heap and, if properly exploited, could lead to arbitrary code execution or compromise system integrity.

Affected Systems

All Linux kernel versions that include the staging rtl8723bs wireless driver are affected. The issue is specific to this driver and does not impact other wireless drivers.

Risk and Exploitability

The EPSS score is below 1 %, indicating a low current exploitation probability, and the vulnerability is not listed in CISA KEV. The flaw is a classic heap buffer overflow (CWE‑120) that requires the ability to issue an nl80211 command—typically a local user or process with sufficient privileges. Absent a disclosed CVSS score, the nature of the overflow suggests high severity when triggered.

Generated by OpenCVE AI on August 5, 2026 at 00:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains the commit adding bounds checks (e.g., the patch referenced in commit 138cd190efd56ab36c9fdd8fef8749d06937f24b).
  • If a kernel update is unavailable, prevent the vulnerable driver from loading by adding "blacklist rtl8723bs" to /etc/modprobe.d/blacklist.conf and rebooting the system.
  • If the distribution does not provide the patch, manually apply the commit 138cd190efd56ab36c9fdd8fef8749d06937f24b to your kernel source, rebuild, and install the updated kernel.

Generated by OpenCVE AI on August 5, 2026 at 00:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4717-1 linux security update
Debian DLA Debian DLA DLA-4720-1 linux security update
Debian DLA Debian DLA DLA-4723-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Tue, 04 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122

Mon, 03 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 27 Jul 2026 05:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix heap buffer overflow in rtw_cfg80211_set_wpa_ie() supplicant_ie is a 256-byte array in struct security_priv. The WPA and WPA2 IE copy paths use: memcpy(padapter->securitypriv.supplicant_ie, &pwpa[0], wpa_ielen + 2); where wpa_ielen is the raw IE length field (u8, 0-255). When a local user supplies a connect request via nl80211 with a crafted WPA IE of length 255, wpa_ielen + 2 equals 257, overflowing the 256-byte buffer by one byte into the adjacent last_mic_err_time field. rtw_parse_wpa_ie() does not prevent this: its length consistency check compares *(wpa_ie+1) against (u8)(wpa_ie_len-2), which is (u8)(255) == 255 when wpa_ie_len = 257, so the check passes silently. Add explicit bounds checks for both the WPA and WPA2 paths before the memcpy, rejecting any IE whose total size (wpa_ielen + 2) exceeds the supplicant_ie buffer.
Title staging: rtl8723bs: fix heap buffer overflow in rtw_cfg80211_set_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-07-25T08:51:17.402Z

Reserved: 2026-07-19T15:36:31.788Z

Link: CVE-2026-64446

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:29.310

Modified: 2026-08-11T15:01:50.637

Link: CVE-2026-64446

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64446 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T00:30:05Z

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')