{"id":"CVE-2026-45876","summary":"arm64/gcs: Fix error handling in arch_set_shadow_stack_status()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64/gcs: Fix error handling in arch_set_shadow_stack_status()\n\nalloc_gcs() returns an error-encoded pointer on failure, which comes\nfrom do_mmap(), not NULL.\n\nThe current NULL check fails to detect errors, which could lead to using\nan invalid GCS address.\n\nUse IS_ERR_VALUE() to properly detect errors, consistent with the\ncheck in gcs_alloc_thread_stack().","modified":"2026-07-08T07:15:49.391475466Z","published":"2026-05-27T12:16:43.350Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45876.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/53c998527ffa60f9deda8974a11ad39790684159"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a4741114c9622346c4bbb8cc2bbd88153616ffaf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c787a235deb33be6eda40beee8f561da5fd8cb8c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45876.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45876"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b57180c75c7ebff6613886cb69ef6e283a10358b"},{"fixed":"c787a235deb33be6eda40beee8f561da5fd8cb8c"},{"fixed":"a4741114c9622346c4bbb8cc2bbd88153616ffaf"},{"fixed":"53c998527ffa60f9deda8974a11ad39790684159"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45876.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45876.json"}}],"schema_version":"1.7.5"}