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 8BE032882B7 for ; Tue, 30 Dec 2025 12:10: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=1767096637; cv=none; b=f3yaPk72dCpClUzNSFi4xls3i3miEFkH1FisN1aIPNl6e5dhr8YNt8W9LcnI29RKH+AQLz+y3DqEYo/lB5VZ6qhdnZjA+Qmq6Eb0YibC+mvTX92EFJS+8QllijAlpy5nBerk5kzRsg33uat2zT8NiHVgL59ngaScfIwBH3Muqis= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096637; c=relaxed/simple; bh=6D7Kru1UhgFMKKDvI9OGYAsUd+oss7eEamuA6p5iC84=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iUPda47FGAlgdc97sGEk7KTn5Cd/nAe6N8Eayr21bEcgOQFGLjDtbVvEM3KRDFmBjjFjyf6qj7/MYeklqAOmWf5GAHffbws3DhGg/giaXwC/1EnZIK5uHB2UEwq2UsIDh304cDoxM7ojLqOur7B64j+ZeMv0QX1G8A4J4vKlOdo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r+vpPmOO; 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="r+vpPmOO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16D9DC4CEFB; Tue, 30 Dec 2025 12:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096637; bh=6D7Kru1UhgFMKKDvI9OGYAsUd+oss7eEamuA6p5iC84=; h=From:To:Cc:Subject:Date:Reply-To:From; b=r+vpPmOOVdyMGjgO3BZJRnT5erdoUu3OSOjMYKF1QVd8qplayMYa3949Khpoub1hT x6gqjZMK34cTQuoPylUNIrgoFRWSE3QWRpZIAKNKi9GoYOhqySL6bhZnFtHGLxrH+y bpGC++YGgO+QhfDLKbLtkEUzA7kL8jD/84cj6BGQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50812: security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6 Date: Tue, 30 Dec 2025 13:09:16 +0100 Message-ID: <2025123013-CVE-2022-50812-5eac@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=2277; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0VBXwDqiQ1iRz3zHKByyuFswlgheBzqXeQpoDWxTYbk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB152rDO9nGS7SZjj7Mni+eGLlvnvrIrufSl8xXiOR lvruVCzjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIzIsMC07LiPxsuuHHaqu+ UfhW45IZx4qkZRjm55+bIsGr/Upln912+S6zP8vtOA5NAwA= 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: security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6 A bad bug in clang's implementation of -fzero-call-used-regs can result in NULL pointer dereferences (see the links above the check for more information). Restrict CONFIG_CC_HAS_ZERO_CALL_USED_REGS to either a supported GCC version or a clang newer than 15.0.6, which will catch both a theoretical 15.0.7 and the upcoming 16.0.0, which will both have the bug fixed. The Linux kernel CVE team has assigned CVE-2022-50812 to this issue. Affected and fixed versions =========================== Fixed in 5.15.86 with commit 8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c Fixed in 6.0.16 with commit 0b202dfedb5aa2e7d07d849be33fa3a48c026926 Fixed in 6.1.2 with commit 21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e Fixed in 6.2 with commit d6a9fb87e9d18f3394a9845546bbe868efdccfd2 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-50812 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: security/Kconfig.hardening 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/8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c https://git.kernel.org/stable/c/0b202dfedb5aa2e7d07d849be33fa3a48c026926 https://git.kernel.org/stable/c/21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e https://git.kernel.org/stable/c/d6a9fb87e9d18f3394a9845546bbe868efdccfd2