staging: rtl8723bs: fix OOB reads in rtw_get_wps_ie()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b · < 23c31f107b4f8f420a754a45d12599bdb78f9bb8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8723bs: fix OOB reads in rtw_get_wps_ie()
rtw_get_wps_ie() iterates over IE data from network frames without validating that the IE header and payload fit within the remaining buffer before reading them. Specifically:
- in_ie[cnt + 1] is read without checking cnt + 1 < in_len - memcmp(&in_ie[cnt + 2], ...) accesses cnt + 2 without bounds check - in_ie[cnt + 1] is used as length without verifying payload fits
Add bounds checks at the top of the loop body to break early if fewer than 2 bytes remain for the IE header, or if the declared payload extends past the end of the buffer. Also require at least 4 bytes of payload before comparing the WPS OUI.
From the CVE record · Linux
The Linux kernel’s rtl8723bs staging driver reads information elements from network frames without checking that headers and payloads fit within the buffer. A crafted frame can cause an out-of-bounds read; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with the rtl8723bs staging driver should check their kernel versions; affected versions were not provided.