# CVE-2026-64446: staging: rtl8723bs: fix heap buffer overflow in rtw_cfg80211_set_wpa_ie()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-07-25T08:51:17.402Z
- Modified: 2026-11-06T17:18:54.550Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before a94a643a80a84ceb8139061c3d6bf988d75e45a5; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 2131621986c62c86109ce4d84cf73a73757eb8a6; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 6f20d7b0ee47c470734a69379b0fc6647c519603; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 5d7812360abf3143afcbf5efe4ef242448fa1f28; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 46f66c16a95191d9aca07a72ae6b1252a244e26c; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before b9c4bf133c3c47e23baf4f5403b98a953bf58606; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 138cd190efd56ab36c9fdd8fef8749d06937f24b; from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 5a752a616e756844388a1a45404db9fc29fec655; 4.12 (not affected: before 4.12; from 5.10.261 up to 5.10.*; from 5.15.212 up to 5.15.*; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.96 up to 6.12.*; from 6.18.39 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 4.12 before 5.10.261; from 5.11 before 5.15.212; from 5.16 before 6.1.178; from 6.2 before 6.6.145; from 6.7 before 6.12.96; from 6.13 before 6.18.39; from 6.19 before 7.1.4; 7.2

## References

- <https://git.kernel.org/stable/c/a94a643a80a84ceb8139061c3d6bf988d75e45a5> (patch)
- <https://git.kernel.org/stable/c/2131621986c62c86109ce4d84cf73a73757eb8a6> (patch)
- <https://git.kernel.org/stable/c/6f20d7b0ee47c470734a69379b0fc6647c519603> (patch)
- <https://git.kernel.org/stable/c/5d7812360abf3143afcbf5efe4ef242448fa1f28> (patch)
- <https://git.kernel.org/stable/c/46f66c16a95191d9aca07a72ae6b1252a244e26c> (patch)
- <https://git.kernel.org/stable/c/b9c4bf133c3c47e23baf4f5403b98a953bf58606> (patch)
- <https://git.kernel.org/stable/c/138cd190efd56ab36c9fdd8fef8749d06937f24b> (patch)
- <https://git.kernel.org/stable/c/5a752a616e756844388a1a45404db9fc29fec655> (patch)

## Sources

- CVE List: [CVE-2026-64446](https://www.cve.org/CVERecord?id=CVE-2026-64446), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-64446](https://nvd.nist.gov/vuln/detail/CVE-2026-64446), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-64446 · Whole record: https://cve.day/CVE-2026-64446.json · Rebuilt by cve.day 2026-11-25T22:59:30.123Z
