staging: rtl8723bs: fix OOB reads in rtw_get_wps_ie()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c670efe69ec8a3360bfa596436f0250a3bf15d42, Kernel 0e95ff792ae0aa6fbad9455943e9e1e4062670e9, Kernel 23b630e334f7e8f76bb22a18aca350da995af905 and 10 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=554c0a3abf216c991c5ebddcdb2c08689ecd290b <c670efe69ec8a3360bfa596436f0250a3bf15d42, >=554c0a3abf216c991c5ebddcdb2c08689ecd290b <0e95ff792ae0aa6fbad9455943e9e1e4062670e9, >=554c0a3abf216c991c5ebddcdb2c08689ecd290b <23b630e334f7e8f76bb22a18aca350da995af905, >=554c0a3abf216c991c5ebddcdb2c08689ecd290b <23c31f107b4f8f420a754a45d12599bdb78f9bb8, >=554c0a3abf216c991c5ebddcdb2c08689ecd290b <630fdca3f2437fee3ffd437c4b646ccf84c7be87, >=554c0a3abf216c991c5ebddcdb2c08689ecd290b <875479f18835ac11e21a83e88f3d4dc7ccdcd0c4, >=554c0a3abf216c991c5ebddcdb2c08689ecd290b <b9d9a4cd2e59df7281992a076464d2536e80c674, =4.12 | c670efe69ec8a3360bfa596436f0250a3bf15d42, 0e95ff792ae0aa6fbad9455943e9e1e4062670e9, 23b630e334f7e8f76bb22a18aca350da995af905, 23c31f107b4f8f420a754a45d12599bdb78f9bb8, 630fdca3f2437fee3ffd437c4b646ccf84c7be87, 875479f18835ac11e21a83e88f3d4dc7ccdcd0c4, b9d9a4cd2e59df7281992a076464d2536e80c674 |
| linux-kernel: Kernel | >=5.16.0 <6.1.183, >=6.13.0 <6.18.42, >=6.19.0 <7.1.6, >=6.2.0 <6.6.148, >=6.7.0 <6.12.101, >=4.12.0 <5.15.216 | 6.1.183, 6.18.42, 7.1.6, 6.6.148, 6.12.101, 5.15.216 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket