staging: rtl8723bs: fix OOB reads in is_ap_in_tkip() IE loop
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b · < 4380b3860d887a13555ff024a58dfc05b490dfd6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8723bs: fix OOB reads in is_ap_in_tkip() IE loop
The loop in is_ap_in_tkip() iterates over IEs without verifying that enough bytes remain before dereferencing the IE header or its payload:
- pIE->element_id and pIE->length are read without checking that i + sizeof(*pIE) <= ie_length, so a truncated IE at the end of the buffer causes an OOB read.
- For WLAN_EID_VENDOR_SPECIFIC the code compares pIE->data + 12, which requires pIE->length >= 16. For WLAN_EID_RSN it compares pIE->data + 8, requiring pIE->length >= 12. Neither requirement is checked.
Add the missing IE header and payload bounds checks and guard each data access with an explicit pIE->length minimum, matching the pattern established in update_beacon_info().
From the CVE record · Linux
The Linux kernel's rtl8723bs driver can read beyond a buffer when is_ap_in_tkip() processes a truncated IE header or a vendor-specific or RSN IE with a short payload. An attacker who can cause the driver to process such an IE may trigger an out-of-bounds read; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with the staging rtl8723bs driver should check their kernel's status; affected versions were not provided.