{"id":"CVE-2026-74651","summary":"staging: rtl8723bs: fix OOB read in rtw_get_wpa_ie()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: rtl8723bs: fix OOB read in rtw_get_wpa_ie()\n\nrtw_get_wpa_ie() reads bytes at fixed offsets into a vendor-specific\ninformation element without checking that the element is long enough,\ncausing an out-of-bounds read for a short trailing IE.\n\nThe function locates a vendor-specific IE (EID 221) with rtw_get_ie()\nand then compares a 4-byte OUI+type at pbuf + 2 and reads a 2-byte\nversion word at pbuf + 6. Those accesses require the IE body to be at\nleast 6 bytes, but rtw_get_ie() only guarantees that the element fits\nwithin the buffer; it does not enforce a minimum body length. A\nvendor-specific IE whose length byte is 0 to 5, placed at the end of\nthe buffer, therefore makes these reads run past the end of the IE and\npast the end of the buffer itself.\n\nThe buffer holds information elements taken from received management\nframes and from the IE blob passed to rtw_cfg80211_set_wpa_ie(), which\nis kmemdup'd to its exact length, so the read can run off the end of\nthe allocation.\n\nThe sibling helpers rtw_get_sec_ie(), rtw_get_wapi_ie() and\nrtw_get_wps_ie() in this file already reject too-short vendor-specific\nIEs before their OUI memcmp(); rtw_get_wpa_ie() was never brought in\nline with them, and needs a minimum of 6 rather than 4 bytes because\nof the version word. Add the missing length check.","modified":"2026-08-27T11:31:13.891218029Z","published":"2026-08-22T15:32:27.073Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74651.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/01ab275f8f3e497a13ebbe4ded44ec0623bccde3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0d19f0600fbb610c42f2a86f95c35706dc04691b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1c3e23e78862493e8cf1adad02b10ffcb8b9921c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/42c5a0d454aa5b54fec17162d9a1f8c30f8af45a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4fc459c5cd8767ca4d9bf2f7becbd562639ba4d9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b45be82387bf759931acdd21ca7dfe740f16eb97"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c9068f82a0906b29c905e8788edb62c3208c7c8a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e167a38a8a8f50f137721fef1a1fbba0f4588b5d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74651.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74651"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"554c0a3abf216c991c5ebddcdb2c08689ecd290b"},{"fixed":"4fc459c5cd8767ca4d9bf2f7becbd562639ba4d9"},{"fixed":"b45be82387bf759931acdd21ca7dfe740f16eb97"},{"fixed":"c9068f82a0906b29c905e8788edb62c3208c7c8a"},{"fixed":"0d19f0600fbb610c42f2a86f95c35706dc04691b"},{"fixed":"42c5a0d454aa5b54fec17162d9a1f8c30f8af45a"},{"fixed":"e167a38a8a8f50f137721fef1a1fbba0f4588b5d"},{"fixed":"01ab275f8f3e497a13ebbe4ded44ec0623bccde3"},{"fixed":"1c3e23e78862493e8cf1adad02b10ffcb8b9921c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74651.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.0"},{"fixed":"5.10.265"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.216"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.183"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.152"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.104"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.45"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74651.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"}]}