CVE-2026-31626: staging: rtl8723bs: initialize le_tmp64 in rtw_BIP_verify()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8723bs: initialize le_tmp64 in rtw_BIP_verify()
Initialize le_tmp64 to zero in rtw_BIP_verify() to prevent using uninitialized data.
Smatch warns that only 6 bytes are copied to this 8-byte (u64) variable, leaving the last two bytes uninitialized:
drivers/staging/rtl8723bs/core/rtw_security.c:1308 rtw_BIP_verify()
warn: not copying enough bytes for '&le_tmp64' (8 vs 6 bytes)
Initializing the variable at the start of the function fixes this warning and ensures predictable behavior.
The Linux kernel CVE team has assigned CVE-2026-31626 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.83 with commit d5b8f5f8d6fc09a8af5ed139c688660f578ed732 Fixed in 6.18.24 with commit b487a7754d874230299d5a9c2710ec4df8b2ed8a Fixed in 6.19.14 with commit c2026c6b603ebec52f55015496703fe79077accf Fixed in 7.0.1 with commit ef74ce5f0bc0e53ce702d8a794f3957884a26efc
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-31626
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/staging/rtl8723bs/core/rtw_security.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d5b8f5f8d6fc09a8af5ed139c688660f578ed732 https://git.kernel.org/stable/c/b487a7754d874230299d5a9c2710ec4df8b2ed8a https://git.kernel.org/stable/c/c2026c6b603ebec52f55015496703fe79077accf https://git.kernel.org/stable/c/ef74ce5f0bc0e53ce702d8a794f3957884a26efc https://git.kernel.org/stable/c/8c964b82a4e97ec7f25e17b803ee196009b38a57