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 1CB46199247 for ; Tue, 16 Jul 2024 11:46:26 +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=1721130386; cv=none; b=dGYQDjVqfFYg83vKqVlneQARB9E66sKmkAZJLMXYv2PqIN89wQhRLpojIVs+/1ksddpcPfZhqctct4fiNh9RQgtF+4Cix0zl++Yt3MYnjurY29J7rczoDqH7ep4uDwRS7me5Y7QQB+o8LDWyizXFqJRk3RNHkh9+FUJgXyqeztM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721130386; c=relaxed/simple; bh=ksBPni9lfcHqjrdc9AtKfLScUQkMp5iL9n8+S9QFOQA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nG3jLRBrQDpezLA/0U3bOatGfFIPwamENUxsH+HwWobc9z089AjnTNlThtSKjrtBeOzKpYEmKDRTt6yXxs7xg2iGf+i2VH7+TNxIl9rAaK8bqQWQDquC5KmfQFMQHiM2RqcBblhsVX6N7z40H9Ky7gV7QW7ZIbbbZMeYauxstLM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EPXpAVUE; 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="EPXpAVUE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9556EC116B1; Tue, 16 Jul 2024 11:46:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721130386; bh=ksBPni9lfcHqjrdc9AtKfLScUQkMp5iL9n8+S9QFOQA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EPXpAVUE2c5Rp58glHwIgf5Bl2GVLK5OK8uFAcKcAajoFQyO3lhj7YTd34QdpfMc6 Q4ylkyoEbkTvml2m7QO1r8HH6Ae2CKz1HOOjyRWQKDGTYnturX/sDlYBTJXutxrvud bFjr4sKfLYewg7c8t9puYNJajXjjGSgbUJqBdrDM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48804: vt_ioctl: fix array_index_nospec in vt_setactivate Date: Tue, 16 Jul 2024 13:45:56 +0200 Message-ID: <2024071645-CVE-2022-48804-f191@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2662; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ksBPni9lfcHqjrdc9AtKfLScUQkMp5iL9n8+S9QFOQA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTYjN15LYzSU3g2n8m+eJ0My/DipJHwdKP2b8kTPD5I Bl39e7ujlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIhx7D/IQjJvs8s67saPvi Wsqbu5h757GmaIb50Qcepb7d/OhM54LYNfsn+nFy/A5ZBgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: vt_ioctl: fix array_index_nospec in vt_setactivate array_index_nospec ensures that an out-of-bounds value is set to zero on the transient path. Decreasing the value by one afterwards causes a transient integer underflow. vsa.console should be decreased first and then sanitized with array_index_nospec. Kasper Acknowledgements: Jakob Koschel, Brian Johannesmeyer, Kaveh Razavi, Herbert Bos, Cristiano Giuffrida from the VUSec group at VU Amsterdam. The Linux kernel CVE team has assigned CVE-2022-48804 to this issue. Affected and fixed versions =========================== Fixed in 4.9.302 with commit 830c5aa302ec Fixed in 4.14.267 with commit 2a45a6bd1e6d Fixed in 4.19.230 with commit 170325aba460 Fixed in 5.4.180 with commit ae3d57411562 Fixed in 5.10.101 with commit 778302ca0949 Fixed in 5.15.24 with commit ffe54289b02e Fixed in 5.16.10 with commit 6550bdf52846 Fixed in 5.17 with commit 61cc70d9e8ef 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-2022-48804 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/tty/vt/vt_ioctl.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/830c5aa302ec16b4ee641aec769462c37f802c90 https://git.kernel.org/stable/c/2a45a6bd1e6d651770aafff57ab3e1d3bb0b42e0 https://git.kernel.org/stable/c/170325aba4608bde3e7d21c9c19b7bc266ac0885 https://git.kernel.org/stable/c/ae3d57411562260ee3f4fd5e875f410002341104 https://git.kernel.org/stable/c/778302ca09498b448620edd372dc908bebf80bdf https://git.kernel.org/stable/c/ffe54289b02e9c732d6f04c8ebbe3b2d90d32118 https://git.kernel.org/stable/c/6550bdf52846f85a2a3726a5aa0c7c4399f2fc02 https://git.kernel.org/stable/c/61cc70d9e8ef5b042d4ed87994d20100ec8896d9