Description
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix potential out-of-bounds read in rtw_restruct_wmm_ie The current code checks 'i + 5 < in_len' at the end of the if statement. However, it accesses 'in_ie[i + 5]' before that check, which can lead to an out-of-bounds read. Move the length check to the beginning of the conditional to ensure the index is within bounds before accessing the array.
Product status
554c0a3abf216c991c5ebddcdb2c08689ecd290b (git) before 6ff2243d5e05a5239e39d4ba61d96b0ea3bf7259
554c0a3abf216c991c5ebddcdb2c08689ecd290b (git) before 12cc6e8f8d4245b7b5a408c6fc8ab1d098d67020
554c0a3abf216c991c5ebddcdb2c08689ecd290b (git) before 209644e25757c499e1c1f08c071ea0386d4448b6
554c0a3abf216c991c5ebddcdb2c08689ecd290b (git) before 768f25613a9fe6766d15a4a72979657adfc1c6d8
554c0a3abf216c991c5ebddcdb2c08689ecd290b (git) before e14a1148f02e8cf1ca380d57e4b95ca36c97f45d
554c0a3abf216c991c5ebddcdb2c08689ecd290b (git) before 4dd2d9cf563c54e09d5f7eacf95c5b8f538b513b
554c0a3abf216c991c5ebddcdb2c08689ecd290b (git) before d97fc1b29513010b60fde874c7f0ba816744e18c
554c0a3abf216c991c5ebddcdb2c08689ecd290b (git) before a75281626fc8fa6dc6c9cc314ee423e8bc45203b
4.12
Any version before 4.12
5.10.253 (semver)
5.15.203 (semver)
6.1.167 (semver)
6.6.130 (semver)
6.12.78 (semver)
6.18.19 (semver)
6.19.9 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/6ff2243d5e05a5239e39d4ba61d96b0ea3bf7259
git.kernel.org/...c/12cc6e8f8d4245b7b5a408c6fc8ab1d098d67020
git.kernel.org/...c/209644e25757c499e1c1f08c071ea0386d4448b6
git.kernel.org/...c/768f25613a9fe6766d15a4a72979657adfc1c6d8
git.kernel.org/...c/e14a1148f02e8cf1ca380d57e4b95ca36c97f45d
git.kernel.org/...c/4dd2d9cf563c54e09d5f7eacf95c5b8f538b513b
git.kernel.org/...c/d97fc1b29513010b60fde874c7f0ba816744e18c
git.kernel.org/...c/a75281626fc8fa6dc6c9cc314ee423e8bc45203b