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 CDE2018DF80 for ; Mon, 8 Dec 2025 00:48:37 +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=1765154917; cv=none; b=n2NKf7mjydqCoLJBc01a7Ul97yixst7c/hlGw+WZu/CY9S5KmkMe8ZJrgwgsv3R+8lAlPdREChrFGLQ910ncxAEqc+YNkqvI0EnwR+0rqJTeXt1vAKr993sz5zyFtGbY6VHdrKeRhU3O0XmHt2tSKglK26/SwEwKZIe9Dt7fdLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765154917; c=relaxed/simple; bh=Pi4lqlEhXA+0b2h1OTlYJNeXWWLEFZxUOS+FXTmOj/o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pYUZsrbOkRZ/LaDmIIuhMtIBc2gYD1YxhSTtIOc4Xg/qchwVaL4GK2JSwEaECaHdLzGddC/7y6FvMs42h+KcDYKRUbM2rRlQ+no4NltfT5mkKqPa3SoH6AdvpijLDT5uW7A91t5ZDIAelNtXShLv3thddg9xv1V/Ua/QZ9iPkR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1Hl0U4hi; 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="1Hl0U4hi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5043EC4CEFB; Mon, 8 Dec 2025 00:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765154917; bh=Pi4lqlEhXA+0b2h1OTlYJNeXWWLEFZxUOS+FXTmOj/o=; h=From:To:Cc:Subject:Date:Reply-To:From; b=1Hl0U4hiM0Trs4GUXdtnd7CX04/KMx0qtdvr2cD/JKNIzeD4HJr+afQi2Pvuj1a8U tKRtg9uK6/VEz9zccDpwOhJD0JnzNobfVLNvG4QUre3Nsj4LbatjZd7ZRqzZPCVD0o FeCnj7hmXOeDpZkBQJBIHQ7K1xWvU4RUPj4/k7ZI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40322: fbdev: bitblit: bound-check glyph index in bit_putcs* Date: Mon, 8 Dec 2025 09:47:46 +0900 Message-ID: <2025120823-CVE-2025-40322-6355@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=2829; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Gzhf+kOQbt3FF7nV/rc8uOGQR4oXzO3ko6SnCCLh7mw=; b=kA0DAAIRMUfUDdst+ykByyZiAGk2IByiyLARESKSE1oUMTTsZPH67yuHwDWwr4yYNAIJQUhtM IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmk2IBwACgkQMUfUDdst+yk3LACfRjzB egq1+tnNNL48GP4C2HVh2scAoLYd4NOh5FdvDGJ5ttbB3DLDkV04 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: fbdev: bitblit: bound-check glyph index in bit_putcs* bit_putcs_aligned()/unaligned() derived the glyph pointer from the character value masked by 0xff/0x1ff, which may exceed the actual font's glyph count and read past the end of the built-in font array. Clamp the index to the actual glyph count before computing the address. This fixes a global out-of-bounds read reported by syzbot. The Linux kernel CVE team has assigned CVE-2025-40322 to this issue. Affected and fixed versions =========================== Fixed in 5.4.302 with commit a10cede006f9614b465cf25609a8753efbfd45cc Fixed in 5.10.247 with commit 0998a6cb232674408a03e8561dc15aa266b2f53b Fixed in 5.15.197 with commit db5c9a162d2f42bcc842b76b3d935dcc050a0eec Fixed in 6.1.159 with commit c12003bf91fdff381c55ef54fef3e961a5af2545 Fixed in 6.6.117 with commit 9ba1a7802ca9a2590cef95b253e6526f4364477f Fixed in 6.12.58 with commit 901f44227072be60812fe8083e83e1533c04eed1 Fixed in 6.17.8 with commit efaf89a75a29b2d179bf4fe63ca62852e93ad620 Fixed in 6.18 with commit 18c4ef4e765a798b47980555ed665d78b71aeadf 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-40322 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/video/fbdev/core/bitblit.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/a10cede006f9614b465cf25609a8753efbfd45cc https://git.kernel.org/stable/c/0998a6cb232674408a03e8561dc15aa266b2f53b https://git.kernel.org/stable/c/db5c9a162d2f42bcc842b76b3d935dcc050a0eec https://git.kernel.org/stable/c/c12003bf91fdff381c55ef54fef3e961a5af2545 https://git.kernel.org/stable/c/9ba1a7802ca9a2590cef95b253e6526f4364477f https://git.kernel.org/stable/c/901f44227072be60812fe8083e83e1533c04eed1 https://git.kernel.org/stable/c/efaf89a75a29b2d179bf4fe63ca62852e93ad620 https://git.kernel.org/stable/c/18c4ef4e765a798b47980555ed665d78b71aeadf