CVE-2026-90018

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/09/2026
Last modified:
19/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> staging: rtl8723bs: fix OOB read / stack overflow in rtw_get_wps_attr()<br /> <br /> rtw_get_wps_attr() walks WPS attributes inside a WPS IE taken from<br /> a wireless management frame. For each candidate attribute it only<br /> checks that the fixed 4-byte attribute header (2-byte ID + 2-byte<br /> length) fits inside the IE:<br /> <br /> if (attr_ptr + 4 &gt; wps_ie + wps_ielen)<br /> break;<br /> u16 attr_id = get_unaligned_be16(attr_ptr);<br /> u16 attr_data_len = get_unaligned_be16(attr_ptr + 2);<br /> u16 attr_len = attr_data_len + 4;<br /> <br /> attr_data_len (and therefore attr_len) is read directly from the<br /> wire and is never checked against the remaining bytes in the IE<br /> before being used as the size of:<br /> <br /> memcpy(buf_attr, attr_ptr, attr_len);<br /> <br /> Since attr_len is fully attacker controlled (0 to 65535+4), this is<br /> both a heap OOB read of wps_ie, and, more seriously, a stack buffer<br /> overflow at several call sites where buf_attr is a single-byte<br /> stack variable, e.g. rtw_get_wps_attr_content()&amp;#39;s callers passing<br /> WPS_ATTR_SELECTED_REGISTRAR into a stack "u8 sr"/"u8<br /> selected_registrar" (drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c,<br /> drivers/staging/rtl8723bs/core/rtw_mlme_ext.c). A crafted WPS IE in a<br /> beacon or probe response processed during scanning can therefore<br /> smash the stack of the parsing thread.<br /> <br /> rtw_get_wps_attr_content() itself has no independent length check<br /> and simply trusts the attr_len it gets back from rtw_get_wps_attr(),<br /> so fixing the bound here also fixes that caller.<br /> <br /> The "attr_ptr + 4 &gt; wps_ie + wps_ielen" header check above was added<br /> by commit 1463ca3ec6601 ("staging: rtl8723bs: fix OOB reads in<br /> rtw_get_sec_ie(), rtw_get_wapi_ie(), and rtw_get_wps_attr()"), which<br /> bounded the fixed header but never extended the check to cover the<br /> variable-length attribute data that follows it. Add that missing<br /> check before attr_len is used as a memcpy() length or accepted as a<br /> match.