CVE-2026-64445: staging: rtl8723bs: fix WEP length underflow and OOB read in OnAuth()

Published Jul 25, 2026
·
Updated

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

staging: rtl8723bs: fix WEP length underflow and OOB read in OnAuth()

OnAuth() has two bugs in the shared-key authentication path.

When the Privacy bit is set, rtwwepdecrypt() is called without verifying that the frame is long enough to contain a valid WEP IV and ICV. Inside rtwwepdecrypt(), length is computed as:

length = len - WLANHDRA3LEN - ivlen

and then passed as (length - 4) to crc32le(). If len is less than WLANHDRA3LEN + ivlen + icvlen (32 bytes), length - 4 is negative and, after the implicit cast to sizet, causes crc32le() to read far beyond the frame buffer. Add a minimum length check before accessing the IV field and calling the decryption path.

When processing a seq=3 response, rtwgetie() stores the Challenge Text IE length in ielen, but the subsequent memcmp() always reads 128 bytes regardless of ielen. IEEE 802.11 mandates a challenge text of exactly 128 bytes; reject any IE whose length field differs, matching the check already applied to OnAuthClient().

Affected Software

10 affected components
Linux Linux kernel
Linux Linux kernel>=4.12<5.10.261
Linux Linux kernel>=5.11<5.15.212
Linux Linux kernel>=5.16<6.1.178
Linux Linux kernel>=6.2<6.6.145
Linux Linux kernel>=6.7<6.12.96
Linux Linux kernel>=6.13<6.18.39
Linux Linux kernel>=6.19<7.1.4
Linux Linux kernel=7.2-rc1
Linux Linux kernel=7.2-rc2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In the OnAuth / WEP decryption path (rtl8723bs staging), add a minimum length check before accessing ICV/processing WEP so that computed length = len - WLAN_HDR_A3_LEN - iv_len cannot become negative; verify the frame is long enough to contain a valid WEP IV and reject any IE whose length field differs (expected IE length exactly 128 bytes) so memcmp and subsequent reads do not go past the frame buffer.

    Linux kernel (rtl8723bs staging) rtw_wep_decrypt() WEP length validation before crc32_le() = Reject frames where length underflows (i.e., where frame length is not at least WLAN_HDR_A3_LEN + iv_len + icv_len) and reject any IE whose length field differs from expected IE length

Event History

Jul 25, 2026
CVE Published
via MITRE·08:51 AM
Data Sourced
via MITRE·08:51 AM
DescriptionSeverity
Data Sourced
via NVD·10:17 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel's staging rtl8723bs driver are exposed when they process malicious 802.11 shared-key authentication frames. The attack vector is adjacent network access, so an attacker must be within wireless range.

2

Does exploitation require credentials or user interaction?

No. The CVSS vector specifies no privileges required and no user interaction, with low attack complexity.

3

What malformed traffic triggers the vulnerable paths?

One path uses a Privacy-marked authentication frame shorter than the required WEP IV and ICV data, causing an underflow that can drive an out-of-bounds read. Another uses a sequence-3 shared-key authentication response with a Challenge Text information element whose declared length is not 128 bytes.

4

What should be done if an update cannot be applied immediately?

The provided data identifies the affected component as the rtl8723bs staging driver and the attack as wireless-network adjacent. Reducing exposure to untrusted devices within wireless range can limit opportunities to deliver malicious authentication frames, but no specific workaround is provided.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203