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 B48561A7AF7 for ; Wed, 26 Feb 2025 01:59: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=1740535166; cv=none; b=Y1CkhyB6Vccf0zQ7tt7hSfjOyZRTSn4rdMCrKl9lX207QpeehEZOoqBKXMv0HmE8XW6+JF5WivGiBC6J79uDNH+rWPiPG69GeousB/iF9tswHVCwz/t+CgJxA+MNCoNEIksBkYT85FB7eBJyrRu+L5OgF4KgcAZQdxUJoeYUi3c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535166; c=relaxed/simple; bh=Q6GkHOLhawryvzftYuwANPE8biB0EteRTz8xRop8g1o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PE4gPDkq7PHUDywP5eop3ERi6guAhrMdF3LABQKAOx5mS4aL4DK6nPBdfhDqPzLVIlfwyoiht2tqh66OE9Uqf6GNvkMEw3HWAmlBm3/wEoZa9/V1t5ByPDfE/G6n5BNB0UwItj1pp8pK53BifY1K3sX72QYJVxD5l5i8jtGsEUs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C/Jwy7+y; 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="C/Jwy7+y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BF8CC4CEDD; Wed, 26 Feb 2025 01:59:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535166; bh=Q6GkHOLhawryvzftYuwANPE8biB0EteRTz8xRop8g1o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=C/Jwy7+yEJgz92CYvfM4J2Bdpb7MopMxJF+oNc0LGssZIke5KBXqazoX3gwCHNyoV iCTrzdAWXzmiydbyBGeKO7QaXnA9YvhHOp830SvZ4Ljy96/GdUCiHgWDA4kmSr6euX 57nthyQp3GNRoj+P9s7Iwagf5boDSjbeiy6pKJpg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49162: video: fbdev: sm712fb: Fix crash in smtcfb_write() Date: Wed, 26 Feb 2025 02:56:07 +0100 Message-ID: <2025022611-CVE-2022-49162-654f@gregkh> X-Mailer: git-send-email 2.48.1 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=3104; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Q6GkHOLhawryvzftYuwANPE8biB0EteRTz8xRop8g1o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Spxfzp8T0KnNNCvGi6XbWfx9cvL2i3r8b1Kab8kor vz649DejlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIpg6GBb2ByyJatq+vfR3e 0K7MabG2K2VZJ8OCtkr26SznTRfLqPeqeJ58JPxt1VMFAA== 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: video: fbdev: sm712fb: Fix crash in smtcfb_write() When the sm712fb driver writes three bytes to the framebuffer, the driver will crash: BUG: unable to handle page fault for address: ffffc90001ffffff RIP: 0010:smtcfb_write+0x454/0x5b0 Call Trace: vfs_write+0x291/0xd60 ? do_sys_openat2+0x27d/0x350 ? __fget_light+0x54/0x340 ksys_write+0xce/0x190 do_syscall_64+0x43/0x90 entry_SYSCALL_64_after_hwframe+0x44/0xae Fix it by removing the open-coded endianness fixup-code. The Linux kernel CVE team has assigned CVE-2022-49162 to this issue. Affected and fixed versions =========================== Fixed in 4.9.311 with commit fb791514acf9070225eed46e1ccbb0aa7aae5da5 Fixed in 4.14.276 with commit 0ec746674296c94137f074309c26d17e644c0498 Fixed in 4.19.238 with commit 1aea36a62f0a0ad67eccc945bac0bd6422ef720f Fixed in 5.4.189 with commit 3b36c05f68ba32d0dfb63abc9016d6fe9117829f Fixed in 5.10.110 with commit b1c28577529cdfad40c8242673285f1e1e4c314e Fixed in 5.15.33 with commit eae90015d10f0c9a47fc4adccba4cd79dce664e4 Fixed in 5.16.19 with commit aeb635b49530b7d19e140949753409f759ba99be Fixed in 5.17.2 with commit 809b8cde86320698661eec677222bc5c5df76176 Fixed in 5.18 with commit 4f01d09b2bbfbcb47b3eb305560a7f4857a32260 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-49162 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/sm712fb.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/fb791514acf9070225eed46e1ccbb0aa7aae5da5 https://git.kernel.org/stable/c/0ec746674296c94137f074309c26d17e644c0498 https://git.kernel.org/stable/c/1aea36a62f0a0ad67eccc945bac0bd6422ef720f https://git.kernel.org/stable/c/3b36c05f68ba32d0dfb63abc9016d6fe9117829f https://git.kernel.org/stable/c/b1c28577529cdfad40c8242673285f1e1e4c314e https://git.kernel.org/stable/c/eae90015d10f0c9a47fc4adccba4cd79dce664e4 https://git.kernel.org/stable/c/aeb635b49530b7d19e140949753409f759ba99be https://git.kernel.org/stable/c/809b8cde86320698661eec677222bc5c5df76176 https://git.kernel.org/stable/c/4f01d09b2bbfbcb47b3eb305560a7f4857a32260