Description
In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix out-of-bounds read in rtw_get_ie() parser The Information Element (IE) parser rtw_get_ie() trusted the length byte of each IE without validating that the IE body (len bytes after the 2-byte header) fits inside the remaining frame buffer. A malformed frame can advertise an IE length larger than the available data, causing the parser to increment its pointer beyond the buffer end. This results in out-of-bounds reads or, depending on the pattern, an infinite loop. Fix by validating that (offset + 2 + len) does not exceed the limit before accepting the IE or advancing to the next element. This prevents OOB reads and ensures the parser terminates safely on malformed frames.
Product status
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before a54e2b2db1b7de2e008b4f62eec35aaefcc663c5
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before df191dd9f4c7249d98ada55634fa8ac19089b8cb
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before c0d93d69e1472ba75b78898979b90a98ba2a2501
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 154828bf9559b9c8421fc2f0d7f7f76b3683aaed
6.12.62 (semver)
6.17.12 (semver)
6.18.1 (semver)
6.19-rc1 (original_commit_for_fix)
References
git.kernel.org/...c/a54e2b2db1b7de2e008b4f62eec35aaefcc663c5
git.kernel.org/...c/df191dd9f4c7249d98ada55634fa8ac19089b8cb
git.kernel.org/...c/c0d93d69e1472ba75b78898979b90a98ba2a2501
git.kernel.org/...c/154828bf9559b9c8421fc2f0d7f7f76b3683aaed
Data based on CVE®. Copyright © 1999-2025, The MITRE Corporation. All rights reserved.