CVE-2026-74650
JSON

Not scored

staging: rtl8723bs: fix OOB read in WMM_param_handler()

Severity
Not scored
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix OOB read in WMM_param_handler() WMM_param_handler() copies a fixed-size WMM parameter element out of a received information element without checking that the element is long enough, causing an out-of-bounds read for a short WMM IE. The handler reads sizeof(struct WMM_para_element) (18) bytes at pIE->data + 6, so it requires pIE->length to be at least 24 (WLAN_WMM_LEN), but it never validates the length. Two of its three callers reach it after matching only the WMM OUI: OnAssocRsp() in rtw_mlme_ext.c matches a 6-byte OUI, and join_cmd_hdl() matches a 4-byte OUI, before calling the handler. A vendor-specific IE carrying the WMM OUI but a length between 6 and 23, placed in an association response or in the IE blob handed to join_cmd_hdl(), passes the OUI check and then makes the memcmp() and memcpy() at pIE->data + 6 read past the end of the element. OnAssocRsp() parses a frame received from the AP, so this is reachable from a remote peer. The remaining caller in rtw_wlan_util.c already guards the handler with "pIE->length == WLAN_WMM_LEN". Move the equivalent check into the handler itself so every caller is covered; the sibling IE handlers in the same parsing loop (HT_caps_handler(), HT_info_handler(), ERP_IE_handler()) likewise bound their accesses by pIE->length.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 5df2fd06567df5f178c8faae0bdaefd203618d21, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 6cdca4c8b64c15a3ab9ad7a85f482e9519eadf93, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 2bee6f7a0f0125238951e31da2e96d06fe359043, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 1158b9931207392d6dd136aa0c4be18893b50fa1, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before ce2399717de242344880044b91a20a712644fdfb, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before e5b7610008f4e6a80c8b071aa77ddbd5e17ea472, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before e429c6dfd5d2324cd866daaf4c29d5cfe4dea0e4, from 554c0a3abf216c991c5ebddcdb2c08689ecd290b before ae21407350151bddfd4fea7aa39bd0643c0ca9d3 and 1 more
Not affected: before 4.12, from 5.10.267 up to 5.10.*, 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.*
CVE List

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix OOB read in WMM_param_handler() WMM_param_handler() copies a fixed-size WMM parameter element out of a received information element without checking that the element is long enough, causing an out-of-bounds read for a short WMM IE. The handler reads sizeof(struct WMM_para_element) (18) bytes at pIE->data + 6, so it requires pIE->length to be at least 24 (WLAN_WMM_LEN), but it never validates the length. Two of its three callers reach it after matching only the WMM OUI: OnAssocRsp() in rtw_mlme_ext.c matches a 6-byte OUI, and join_cmd_hdl() matches a 4-byte OUI, before calling the handler. A vendor-specific IE carrying the WMM OUI but a length between 6 and 23, placed in an association response or in the IE blob handed to join_cmd_hdl(), passes the OUI check and then makes the memcmp() and memcpy() at pIE->data + 6 read past the end of the element. OnAssocRsp() parses a frame received from the AP, so this is reachable from a remote peer. The remaining caller in rtw_wlan_util.c already guards the handler with "pIE->length == WLAN_WMM_LEN". Move the equivalent check into the handler itself so every caller is covered; the sibling IE handlers in the same parsing loop (HT_caps_handler(), HT_info_handler(), ERP_IE_handler()) likewise bound their accesses by pIE->length.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: staging: rtl8723bs: corrección de lectura fuera de límites en WMM_param_handler() WMM_param_handler() copia un elemento de parámetro WMM de tamaño fijo de un elemento de información recibido sin verificar que el elemento sea lo suficientemente largo, causando una lectura fuera de límites para un IE WMM corto. El gestor lee sizeof(struct WMM_para_element) (18) bytes en pIE -> data + 6, por lo que requiere que pIE -> length sea al menos 24 (WLAN_WMM_LEN), pero nunca valida la longitud. Dos de sus tres llamadores lo alcanzan después de coincidir solo con el OUI WMM: OnAssocRsp() en rtw_mlme_ext.c coincide con un OUI de 6 bytes, y join_cmd_hdl() coincide con un OUI de 4 bytes, antes de llamar al gestor. Un IE específico del proveedor que lleva el OUI WMM pero una longitud entre 6 y 23, colocado en una respuesta de asociación o en el blob de IE entregado a join_cmd_hdl(), pasa la verificación del OUI y luego hace que memcmp() y memcpy() en pIE -> data + 6 lean más allá del final del elemento. OnAssocRsp() analiza una trama recibida del AP, por lo que esto es alcanzable desde un par remoto. El llamador restante en rtw_wlan_util.c ya protege al gestor con 'pIE -> length == WLAN_WMM_LEN'. Mover la verificación equivalente al propio gestor para que cada llamador esté cubierto; los gestores de IE hermanos en el mismo bucle de análisis (HT_caps_handler(), HT_info_handler(), ERP_IE_handler()) de manera similar limitan sus accesos por pIE -> length.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-74650 changed 2026-11-06CVE Terms of Use
NVDCVE-2026-74650 changed 2026-11-06Public domain