ghsa-c7qr-fxvv-x4fh
Vulnerability from github
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.
{ "affected": [], "aliases": [ "CVE-2023-52990" ], "database_specific": { "cwe_ids": [], "github_reviewed": false, "github_reviewed_at": null, "nvd_published_at": "2025-03-27T17:15:46Z", "severity": null }, "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ns390: workaround invalid gcc-11 out of bounds read warning\n\nGCC 11.1.0 and 11.2.0 generate a wrong warning when compiling the\nkernel e.g. with allmodconfig:\n\narch/s390/kernel/setup.c: In function \u2018setup_lowcore_dat_on\u2019:\n./include/linux/fortify-string.h:57:33: error: \u2018__builtin_memcpy\u2019 reading 128 bytes from a region of size 0 [-Werror=stringop-overread]\n...\narch/s390/kernel/setup.c:526:9: note: in expansion of macro \u2018memcpy\u2019\n 526 | memcpy(abs_lc-\u003ecregs_save_area, S390_lowcore.cregs_save_area,\n | ^~~~~~\n\nThis could be addressed by using absolute_pointer() with the\nS390_lowcore macro, but this is not a good idea since this generates\nworse code for performance critical paths.\n\nTherefore simply use a for loop to copy the array in question and get\nrid of the warning.", "id": "GHSA-c7qr-fxvv-x4fh", "modified": "2025-04-01T15:31:29Z", "published": "2025-03-27T18:31:27Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-52990" }, { "type": "WEB", "url": "https://git.kernel.org/stable/c/1fc24f9da259b675c3cc74ad5aa92dac286543b3" }, { "type": "WEB", "url": "https://git.kernel.org/stable/c/41e1992665a2701fa025a8b76970c43b4148446f" } ], "schema_version": "1.4.0", "severity": [] }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.