staging: rtl8723bs: fix OOB read in rtw_action_frame_parse()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in 15081ff835b29e456da29303b32efc436df04695; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in 310aaa8058d19cc431aedac0f5bb814e84479393; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in 1410bce22351ba15d8e58287cbf09d55d7f21fc9; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in 0b7f64c7bb9664777168768c6b44affb07dcbf24; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in 136f9a3ab87ded8aaf081425cfb2059659dd9023; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in b041e3f35e0d262d42a711094ab594634d72744a; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in a54fd1a44862d263df9f8bc17fca3620be31addb; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in ff917923f4fb9c83717ba135ee47d7e4c1567bb7
- Linux Linux
4.12
- KernelLinux
From 4.12.0 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5
References 8
git.kernel.org
- stable/c/15081ff835b29e456da29303b32efc436df04695
- stable/c/310aaa8058d19cc431aedac0f5bb814e84479393
- stable/c/1410bce22351ba15d8e58287cbf09d55d7f21fc9
- stable/c/0b7f64c7bb9664777168768c6b44affb07dcbf24
- stable/c/136f9a3ab87ded8aaf081425cfb2059659dd9023
- stable/c/b041e3f35e0d262d42a711094ab594634d72744a
- stable/c/a54fd1a44862d263df9f8bc17fca3620be31addb
- stable/c/ff917923f4fb9c83717ba135ee47d7e4c1567bb7