Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
554c0a3abf216c991c5ebddcdb2c08689ecd290b to < 15081ff835b29e456da29303b32efc436df04695affected554c0a3abf216c991c5ebddcdb2c08689ecd290b to < 310aaa8058d19cc431aedac0f5bb814e84479393affected554c0a3abf216c991c5ebddcdb2c08689ecd290b to < 1410bce22351ba15d8e58287cbf09d55d7f21fc9affected554c0a3abf216c991c5ebddcdb2c08689ecd290b to < 0b7f64c7bb9664777168768c6b44affb07dcbf24affected554c0a3abf216c991c5ebddcdb2c08689ecd290b to < 136f9a3ab87ded8aaf081425cfb2059659dd9023affected554c0a3abf216c991c5ebddcdb2c08689ecd290b to < b041e3f35e0d262d42a711094ab594634d72744aaffected554c0a3abf216c991c5ebddcdb2c08689ecd290b to < a54fd1a44862d263df9f8bc17fca3620be31addbaffected554c0a3abf216c991c5ebddcdb2c08689ecd290b to < ff917923f4fb9c83717ba135ee47d7e4c1567bb7affected
Linux Linux
Default version status: affected
4.12affected0 to < 4.12unaffected5.10.270 to ≤ 5.10.*unaffected5.15.221 to ≤ 5.15.*unaffected6.1.188 to ≤ 6.1.*unaffected6.6.157 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.51 to ≤ 6.18.*unaffected7.2.5 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
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 ↗