staging: rtl8723bs: fix OOB reads in IE loops in issue_assocreq() and join_cmd_hdl()
- 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.261, 5.15.212, 6.1.178, 6.6.145, 6.12.96, 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
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix OOB reads in IE loops in issue_assocreq() and join_cmd_hdl() Two IE parsing loops are missing the header bounds checks before they dereference pIE->length: • issue_assocreq() walks pmlmeinfo->network.ies to build the association request. If the stored IE data ends with only an element_id byte and no length byte, pIE->length is read one byte past the end of the buffer. • join_cmd_hdl() walks pnetwork->ies during station join and has the same problem under the same conditions. Both buffers are filled from AP beacon and probe-response frames, so a malicious AP that sends a truncated final IE can trigger the issue. Apply the two-guard pattern established in update_beacon_info(): 1. Break if fewer than sizeof(*pIE) bytes remain. 2. Break if the IE's declared data extends past the buffer end.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- Linux Linux
From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in bc881c9915c4468747d0ca5fd1abd7b313cfb0f4; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in 605ebd94d0f469204f3c9f2f84acc71e43e2780f; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in a830bdc82461353bf7b1f8a2ad2689bf5d2de444; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in 4c21eec80cf502d9ea18e0b946246b2376452786; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in ad2637c46ef8b8ae0894372a2d39fdfcdc420a1e; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in c38d16b1ffac385c9e4b38447cd5c46af1114b58; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in 402f13ec95945f34a210b28df1f8740d3d4a58c5; From 554c0a3abf216c991c5ebddcdb2c08689ecd290b · fixed in ef61d628dfad38fead1fd2e08979ae9126d011d5
- Linux Linux
4.12
- KernelLinux
From 4.12.0 · fixed in 5.10.261; From 5.11.0 · fixed in 5.15.212; From 5.16.0 · fixed in 6.1.178; From 6.2.0 · fixed in 6.6.145; From 6.7.0 · fixed in 6.12.96; From 6.13.0 · fixed in 6.18.39; From 6.19.0 · fixed in 7.1.4
References 8
git.kernel.org
- stable/c/bc881c9915c4468747d0ca5fd1abd7b313cfb0f4
- stable/c/605ebd94d0f469204f3c9f2f84acc71e43e2780f
- stable/c/a830bdc82461353bf7b1f8a2ad2689bf5d2de444
- stable/c/4c21eec80cf502d9ea18e0b946246b2376452786
- stable/c/ad2637c46ef8b8ae0894372a2d39fdfcdc420a1e
- stable/c/c38d16b1ffac385c9e4b38447cd5c46af1114b58
- stable/c/402f13ec95945f34a210b28df1f8740d3d4a58c5
- stable/c/ef61d628dfad38fead1fd2e08979ae9126d011d5