Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix OOB read in rtw_action_frame_parse() rtw_action_frame_parse() takes a frame_len parameter but never actually checks it before indexing into the frame body: const u8 *frame_body = frame + sizeof(struct ieee80211_hdr_3addr); ... c = frame_body[0]; ... a = frame_body[1]; frame_body already points 24 bytes (sizeof(struct ieee80211_hdr_3addr)) into frame, so reading frame_body[0] and frame_body[1] requires frame_len >= 26. A management action frame shorter than that (e.g. exactly 24 bytes, the minimum a malicious peer can send) causes a 1-2 byte out-of-bounds read. This is reachable from rtw_cfg80211_monitor_if_xmit_entry() and cfg80211_rtw_mgmt_tx() in ioctl_cfg80211.c, both of which pass attacker/user-influenced frame buffers and lengths straight through. Add the missing length check before frame_body is dereferenced.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 15081ff835b29e456da29303b32efc436df04695; affected 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 310aaa8058d19cc431aedac0f5bb814e84479393; affected 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 1410bce22351ba15d8e58287cbf09d55d7f21fc9; affected 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 0b7f64c7bb9664777168768c6b44affb07dcbf24; affected 554c0a3abf216c991c5ebddcdb2c08689ecd290b before 136f9a3ab87ded8aaf081425cfb2059659dd9023; affected 554c0a3abf216c991c5ebddcdb2c08689ecd290b before b041e3f35e0d262d42a711094ab594634d72744a; affected 554c0a3abf216c991c5ebddcdb2c08689ecd290b before a54fd1a44862d263df9f8bc17fca3620be31addb; affected 554c0a3abf216c991c5ebddcdb2c08689ecd290b before ff917923f4fb9c83717ba135ee47d7e4c1567bb7 |
| Linux / Linux | affected 4.12; unaffected 0 before 4.12; unaffected 5.10.270 through 5.10.*; unaffected 5.15.221 through 5.15.*; unaffected 6.1.188 through 6.1.*; unaffected 6.6.157 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.51 through 6.18.*; unaffected 7.2.5 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/15081ff835b29e456da29303b32efc436df04695
- https://git.kernel.org/stable/c/310aaa8058d19cc431aedac0f5bb814e84479393
- https://git.kernel.org/stable/c/1410bce22351ba15d8e58287cbf09d55d7f21fc9
- https://git.kernel.org/stable/c/0b7f64c7bb9664777168768c6b44affb07dcbf24
- https://git.kernel.org/stable/c/136f9a3ab87ded8aaf081425cfb2059659dd9023
- https://git.kernel.org/stable/c/b041e3f35e0d262d42a711094ab594634d72744a
- https://git.kernel.org/stable/c/a54fd1a44862d263df9f8bc17fca3620be31addb
- https://git.kernel.org/stable/c/ff917923f4fb9c83717ba135ee47d7e4c1567bb7