CVE-2026-64441: staging: rtl8723bs: fix OOB reads in rtw_get_sec_ie(), rtw_get_wapi_ie(), and rtw_get_wps_attr()

Published Jul 25, 2026
·
Updated

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

staging: rtl8723bs: fix OOB reads in rtwgetsecie(), rtwgetwapiie(), and rtwgetwpsattr()

Three IE/attribute parsing functions have missing bounds checks.

rtwgetsecie() and rtwgetwapiie() iterate over a raw IE buffer without verifying that the header bytes (tag + length) are within the remaining buffer before reading them. Additionally, rtwgetsecie() compares the 4-byte WPA OUI at cnt+2 without checking that at least 6 bytes remain, and rtwgetwapiie() compares a 4-byte WAPI OUI at cnt+6 without checking that at least 10 bytes remain.

rtwgetwpsattr() reads wpsie[0] and wpsie+2 unconditionally at entry, before verifying that wpsielen is large enough to contain the 6-byte WPS IE header (elementid + length + 4-byte OUI). Inside the attribute loop, getunalignedbe16() is called on attrptr and attrptr+2 without checking that 4 bytes remain in the buffer.

Add a cnt+2 bounds check before each loop body in rtwgetsecie() and rtwgetwapiie(), guard each multi-byte comparison with a minimum IE length requirement, add a wpsielen < 6 early return in rtwgetwpsattr(), and add a 4-byte bounds check in its inner loop.

Affected Software

10 affected componentsFixes available
Linux Kernel
Microsoft azl3 kernel 6.6.144.1-1<6.6.145.2-1
6.6.145.2-1
Linux Linux kernel>=4.12<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.97
Linux Linux kernel>=6.13<6.18.40
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. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.145.2-1
  2. Upgrade

    Upgrade staging: rtl8723bs to a version that resolves this vulnerability.

    Patch fix OOB reads in rtw_get_sec_ie(), rtw_get_wapi_ie(), and rtw_get_wps_attr()
  3. Configuration

    In rtw_get_sec_ie(), add a cnt+2 bounds check before each loop body to ensure at least the required bytes remain before multi-byte comparisons/reads.

    rtw_get_sec_ie() bounds checks (cnt+2 / loop body) = add bounds check before each loop body
  4. Configuration

    In rtw_get_sec_ie(), add a wps_ielen < 6 early return before verifying that wps_ielen is large enough to contain the 6-byte WPS IE header (element_id + length + 4-byte OUI).

    rtw_get_sec_ie() IE length requirement (wps_ielen < 6) = early return when wps_ielen < 6
  5. Configuration

    In rtw_get_wapi_ie(), guard each multi-byte comparison so that a 4-byte WAPI OUI at cnt+2 (and/or attr_ptr+2) is only compared after verifying that at least 4 bytes remain in the buffer.

    rtw_get_wapi_ie() WAPI OUI comparison bounds = guard multi-byte comparison with minimum remaining bytes (attr_ptr+2 / 4 bytes remain)
  6. Configuration

    In rtw_get_wapi_ie(), add bounds checking so that reads based on cnt+6 only occur after verifying that at least 10 bytes remain in the buffer.

    rtw_get_wapi_ie() WPS attribute-length/loop bounds (cnt+6 / at least 10 bytes remain) = check before reading header/attributes
  7. Configuration

    In rtw_get_wps_attr(), add a 4-byte bounds check before reading wps_ie[0] and wps_ie+2 unconditionally (the 6-byte WPS IE header includes element_id + length + 4-byte OUI).

    rtw_get_wps_attr() WPS IE header bounds (wps_ie[0] and wps_ie+2) = add 4-byte bounds check for the 6-byte WPS IE header minimum access
  8. Configuration

    In the inner attribute loop of rtw_get_wps_attr(), add bounds checks to ensure the header bytes (tag + length) are within the remaining buffer before calling get_unaligned_be16() on attr_ptr, and avoid calling it without confirming sufficient bytes remain.

    rtw_get_wps_attr() attribute loop bounds (tag+length / get_unaligned_be16 input) = verify header bytes (tag + length) are within remaining buffer

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
Jul 26, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-64441?

The severity of CVE-2026-64441 is high, with a CVSS score of 8.8.

2

What does CVE-2026-64441 affect?

CVE-2026-64441 affects the Linux kernel, specifically within the rtl8723bs staging driver.

3

How do I fix CVE-2026-64441?

To fix CVE-2026-64441, update your Linux kernel to a version that includes the patch for this vulnerability.

4

What types of vulnerabilities does CVE-2026-64441 address?

CVE-2026-64441 addresses out-of-bounds read vulnerabilities in the rtw_get_sec_ie(), rtw_get_wapi_ie(), and rtw_get_wps_attr() functions.

5

When was CVE-2026-64441 published?

CVE-2026-64441 was published on July 25, 2026.

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