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 222741E3769 for ; Thu, 1 May 2025 14:13:07 +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=1746108787; cv=none; b=hDsLiWDRtYn6EI9gMZi2YRv1lKcGKgvRRz5O97BmprT9JAtQJPJIcnWKwnknu2490F2u5gjGrJK+m+OBFq5xNw543jiof98wBAaOiQ2c1BQkQXOn0oBK+EbGD33um6ImdJh1rWG3hRBuTnARwCmvBSxhPdKvn9NoRj6TDSuVySQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108787; c=relaxed/simple; bh=BqET0D+mHuWMU6EGoaLSp6868liAOYSqUK2fTbodJug=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Sc7uu2KKFCu28aWs4tdiXJw0KdSr0ITf1P/42oielE82O6yeGr6bsu4+aB3evEfT6NOexQWNIg+R+c9ME2XAe+11q+ykR6PhDIEwFCr9+YwO4p6AyL4mpFtsV569JUO/08HS6Ub93zLqxb6XrPhr4svOL6+94qXkXQtwd566tII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wuF+TCpq; 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="wuF+TCpq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BC96C4CEE3; Thu, 1 May 2025 14:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108787; bh=BqET0D+mHuWMU6EGoaLSp6868liAOYSqUK2fTbodJug=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wuF+TCpqRK3Vp5VlURFQTUpksppmWfk8eCXm+GRrAH73VpN4iM5OB1JndptVN1i5o xlvTPkAvecKTpZabVoaAUQKKoz3hOJASzq/4MJ0LTcJ3Mar3sHntLUobr3wffyi//v Sy8AgpmVU6Qkc5E6IhcX/aw32Ijk9Og5JXnqpH2M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49804: s390: avoid using global register for current_stack_pointer Date: Thu, 1 May 2025 16:09:54 +0200 Message-ID: <2025050127-CVE-2022-49804-0866@gregkh> X-Mailer: git-send-email 2.49.0 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=2484; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=upons1X6oCyvbC3qKWNE1htnrpKRmIVhw6tywHVcMkE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDdNV/3frCl/MOeVyPoj14eLHy587sG+LaZ17/u6TS 6ctjpWUdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE2k0ZFsw62s6W0xDnqyoh 32tefU9hrpqKGMP8RKu9Hs8YZcoWrHmp11lt3OzelXEZAA== 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: s390: avoid using global register for current_stack_pointer Commit 30de14b1884b ("s390: current_stack_pointer shouldn't be a function") made current_stack_pointer a global register variable like on many other architectures. Unfortunately on s390 it uncovers old gcc bug which is fixed only since gcc-9.1 [gcc commit 3ad7fed1cc87 ("S/390: Fix PR89775. Stackpointer save/restore instructions removed")] and backported to gcc-8.4 and later. Due to this bug gcc versions prior to 8.4 generate broken code which leads to stack corruptions. Current minimal gcc version required to build the kernel is declared as 5.1. It is not possible to fix all old gcc versions, so work around this problem by avoiding using global register variable for current_stack_pointer. The Linux kernel CVE team has assigned CVE-2022-49804 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 30de14b1884ba609fc1acfba5b40309e3a6ccefe and fixed in 6.0.10 with commit a478952a8ac44e32316dc046a063a7dc34825aa6 Issue introduced in 5.18 with commit 30de14b1884ba609fc1acfba5b40309e3a6ccefe and fixed in 6.1 with commit e3c11025bcd2142a61abe5806b2f86a0e78118df 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-49804 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: arch/s390/include/asm/processor.h 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/a478952a8ac44e32316dc046a063a7dc34825aa6 https://git.kernel.org/stable/c/e3c11025bcd2142a61abe5806b2f86a0e78118df