staging: rtl8723bs: fix stack buffer overflow in OnAssocReq IE parsing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b · < 25411f5fcf5743131158f337c99c2bbf3f8477f5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8723bs: fix stack buffer overflow in OnAssocReq IE parsing
The Supported Rates IE length from an incoming Association Request frame was used directly as the memcpy() length when copying into a fixed-size 16-byte stack buffer (supportRate). A malicious station can advertise an IE length larger than 16 bytes, causing a stack buffer overflow.
Clamp ie_len to the buffer size before copying the Supported Rates IE, and correct the bounds check when merging Extended Supported Rates to prevent a second potential overflow.
This prevents kernel stack corruption triggered by malformed association requests.
From the CVE record · Linux
The Linux kernel’s rtl8723bs driver copies a Supported Rates information element from an incoming Association Request into a fixed-size stack buffer without limiting the copy to 16 bytes. A malicious station can send a malformed request with a longer element to cause kernel stack corruption. No user interaction is described.
Engineers running Linux kernels with the rtl8723bs driver should check their kernel versions; affected versions are not specified.