Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79DEE33B6EA for ; Tue, 16 Dec 2025 14:45:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765896331; cv=none; b=DD/N0k1jXYoMk5sRQGrG7ZHttRZ8terEJoSVLP5EF+tp5e0KK7h9foAh1xk/8r6y6D6t0T4azd9Q4bWqEKCFDLK/+a+LWrVZtZPg7Ndk6kyNO4KxApDl2X9wVy7FmluQVm+Di9P2ftcOGyAXDKT/GhaQ5fbeqhxAi47vkY7ET2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765896331; c=relaxed/simple; bh=xkFVTR2Ri/wSP0/FunyBH4BCEoJb148rb9gktzgwom4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RldCc1qJcc06WjkpVUKlBViHH/dDNDBiHIDQQ3Xr0/HW3akL67Q/rgvROtsnAw9jZDXvmMXHrIstxY9Ip7LF0sUFxPCommQFk30rtY8qw2ntjofxNIsKRCxfvRJDe2VZgaRFMS5jUxvYCUI3xi+CbAy0/Scj0/3uUTUWoLoD4ws= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y9o/ZJQ4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="y9o/ZJQ4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86149C4CEF1; Tue, 16 Dec 2025 14:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765896331; bh=xkFVTR2Ri/wSP0/FunyBH4BCEoJb148rb9gktzgwom4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=y9o/ZJQ4nKor8X2VEj4RIkJKaiLPd/F2lbtLR6Vj5NP2Cj1h+IL5RR52uO07QIFI6 72riW6QEogYd2wHSW4ktmoYGnKUl4p7z2yVpK23/a5/4QREUmtBhSkGIPyE8spypQq bkSYVmkF9OR7pkELg5A4PXxJJpidkOJuDZ1oCoTw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68256: staging: rtl8723bs: fix out-of-bounds read in rtw_get_ie() parser Date: Tue, 16 Dec 2025 15:45:13 +0100 Message-ID: <2025121612-CVE-2025-68256-5ed2@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2577; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mfZ2UGqFkIWsg8WQhSuz/yKOllRU2IdosXRrYkPc7Bk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOBZV79+9L2+7aMnG/ptFnuxsbb+b8XfQiP6NnJYfvN aNZolk5HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRA3MYFpwVi5/38fvXtDKh yZez53OcqrS49ZFhwYo+45sSNYfP1h/oi/mVlrzxeO7yKgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-68256 to this issue. Affected and fixed versions =========================== Fixed in 6.12.62 with commit a54e2b2db1b7de2e008b4f62eec35aaefcc663c5 Fixed in 6.17.12 with commit df191dd9f4c7249d98ada55634fa8ac19089b8cb Fixed in 6.18.1 with commit c0d93d69e1472ba75b78898979b90a98ba2a2501 Fixed in 6.19-rc1 with commit 154828bf9559b9c8421fc2f0d7f7f76b3683aaed 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-2025-68256 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_ieee80211.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/a54e2b2db1b7de2e008b4f62eec35aaefcc663c5 https://git.kernel.org/stable/c/df191dd9f4c7249d98ada55634fa8ac19089b8cb https://git.kernel.org/stable/c/c0d93d69e1472ba75b78898979b90a98ba2a2501 https://git.kernel.org/stable/c/154828bf9559b9c8421fc2f0d7f7f76b3683aaed