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 53B4D2147F4 for ; Thu, 27 Mar 2025 16:45:08 +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=1743093908; cv=none; b=cRe+SB6041SDXwDboqj5eneXsAcwXNCtLTcNf2D6mBuxj+zTLcHKoI7aeMVBktHlREMv+yCTAyFibfWI1slM3Kauy38AnqJ0IkUOzPC5Z8QO0wbBUqm1efZbpm6FNa0QnFcwcPbjb3KsxIijnHofZM/pmJmm+2rhDlFYiVraIhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093908; c=relaxed/simple; bh=dWnMY/GtQlBTdlC5HwvU5fyx5fBoKcVCil0MDBMtRQY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=pRbfUtKGfuFppnoRPK05+GLK1EI515CmVpCSWBh1xWyw511HdeDKTDbXDA4/2FS/t9o6e9U9OJe2DZjm7QnBY9IdYO+uSxt6EnqfS9j2iHJqmiRrTy9nv6Q745vyQlIWjo4zfZOdiNa33H7oeaXV+hEbRz6wcxd+Kfx6DaXDrSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fVQPj+vU; 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="fVQPj+vU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B677FC4CEE8; Thu, 27 Mar 2025 16:45:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093908; bh=dWnMY/GtQlBTdlC5HwvU5fyx5fBoKcVCil0MDBMtRQY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fVQPj+vUpb4GwujWnCBw9Cy4kQBtgCvk3fqr4ZcJqmy1XjxbnAADc1Y5iXR53Pqg9 lrVWtY7ob2U8ZptczkzyMMct7xHcC8Vj9oFzpRZMk3tACRg1M4ZeYkAl+TZhgRhq8P SXCnm5ZAxKeNyDWw2njfNccaM5ozmywhPUh4KLB0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52990: s390: workaround invalid gcc-11 out of bounds read warning Date: Thu, 27 Mar 2025 17:43:37 +0100 Message-ID: <2025032708-CVE-2023-52990-befd@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=2362; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dWnMY/GtQlBTdlC5HwvU5fyx5fBoKcVCil0MDBMtRQY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG2SiJct0bt8JfPmt8tC62TtFuj9FeG35VTf5sYVHj M0SqUKLjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIJieG+ZmntPbGny3Zt2LH jK3p3LM3rPr7/xjDPFX7M5LSZaWTWKU2GoY32d689/rSdwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: s390: workaround invalid gcc-11 out of bounds read warning GCC 11.1.0 and 11.2.0 generate a wrong warning when compiling the kernel e.g. with allmodconfig: arch/s390/kernel/setup.c: In function ‘setup_lowcore_dat_on’: ./include/linux/fortify-string.h:57:33: error: ‘__builtin_memcpy’ reading 128 bytes from a region of size 0 [-Werror=stringop-overread] ... arch/s390/kernel/setup.c:526:9: note: in expansion of macro ‘memcpy’ 526 | memcpy(abs_lc->cregs_save_area, S390_lowcore.cregs_save_area, | ^~~~~~ This could be addressed by using absolute_pointer() with the S390_lowcore macro, but this is not a good idea since this generates worse code for performance critical paths. Therefore simply use a for loop to copy the array in question and get rid of the warning. The Linux kernel CVE team has assigned CVE-2023-52990 to this issue. Affected and fixed versions =========================== Fixed in 6.1.10 with commit 1fc24f9da259b675c3cc74ad5aa92dac286543b3 Fixed in 6.2 with commit 41e1992665a2701fa025a8b76970c43b4148446f 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-2023-52990 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/kernel/setup.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/1fc24f9da259b675c3cc74ad5aa92dac286543b3 https://git.kernel.org/stable/c/41e1992665a2701fa025a8b76970c43b4148446f