8.8high
staging: rtl8723bs: fix missing shared-key auth challenge length check
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.46% (higher than 32% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix missing shared-key auth challenge length check The WEP shared-key authentication handler uses the challenge-text element's attacker-controlled length without checking it against the fixed 128-byte chg_txt buffer. In OnAuthClient() the length from rtw_get_ie() - up to 255 - is used to perform memcpy() into the 128-byte pmlmeinfo->chg_txt, so a malicious AP sending a malformed WLAN_EID_CHALLENGE element can overflow/underfill chg_txt by up to 127 bytes. It is reachable over the air, before association, during shared-key authentication. In the case of an overflow, the driver can write out of bounds. In the case of an underfill, the driver can echo stale buffer memory. The challenge text is defined to be exactly 128 octets, which is already provided as the WLAN_AUTH_CHALLENGE_LEN define; require the element to be exactly that length before use.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 39ae1033071001af9bb4573ebdbb43bbbe88f749, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 4d018e7d7d908bdfcb5ecfa922b1d5cb9ddb3722, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 4ba402fd47009d20e51dbfc934abb562098ea35b, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 87c2f073d2aaea041d531b8e579c47570b54b3b7, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before a28a4b0592e4a37ea471bc0d308513a93133ce7e, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 6235b5156b48ed5d1ce3410d8f0b2fd67d30d944, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 2c56ef658ac8c6bca36bc5574715e8f717207c6c, 4.12 Not affected: before 4.12, from 5.15.216 up to 5.15.*, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*, from 6.18.45 up to 6.18.* | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix missing shared-key auth challenge length check The WEP shared-key authentication handler uses the challenge-text element's attacker-controlled length without checking it against the fixed 128-byte chg_txt buffer. In OnAuthClient() the length from rtw_get_ie() - up to 255 - is used to perform memcpy() into the 128-byte pmlmeinfo->chg_txt, so a malicious AP sending a malformed WLAN_EID_CHALLENGE element can overflow/underfill chg_txt by up to 127 bytes. It is reachable over the air, before association, during shared-key authentication. In the case of an overflow, the driver can write out of bounds. In the case of an underfill, the driver can echo stale buffer memory. The challenge text is defined to be exactly 128 octets, which is already provided as the WLAN_AUTH_CHALLENGE_LEN define; require the element to be exactly that length before use.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: staging: rtl8723bs: corregir la falta de comprobación de longitud del desafío de autenticación de clave compartida El gestor de autenticación de clave compartida WEP utiliza la longitud controlada por el atacante del elemento de texto de desafío sin comprobarla contra el búfer fijo chg_txt de 128 bytes. En OnAuthClient() se utiliza la longitud de rtw_get_ie() - hasta 255 - para realizar memcpy() en pmlmeinfo -> chg_txt de 128 bytes, por lo que un AP malicioso que envíe un elemento WLAN_EID_CHALLENGE malformado puede desbordar/subdesbordar chg_txt hasta en 127 bytes. Es alcanzable por aire, antes de la asociación, durante la autenticación de clave compartida. En el caso de un desbordamiento, el controlador puede escribir fuera de los límites. En el caso de un subdesbordamiento, el controlador puede hacer eco de memoria de búfer obsoleta. El texto de desafío está definido para ser exactamente 128 octetos, lo cual ya se proporciona como la definición WLAN_AUTH_CHALLENGE_LEN; se requiere que el elemento tenga exactamente esa longitud antes de su uso.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74649 changed 2026-10-16 | CVE Terms of Use |
| NVD | CVE-2026-74649 changed 2026-10-16 | Public domain |