[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025032708-CVE-2023-52990-befd@gregkh>
Date: Thu, 27 Mar 2025 17:43:37 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2023-52990: s390: workaround invalid gcc-11 out of bounds read warning
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
Powered by blists - more mailing lists