{"id":"CVE-2026-45876","state":"PUBLISHED","title":"arm64/gcs: Fix error handling in arch_set_shadow_stack_status()","description":"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().","publishedAt":"2026-05-27T12:16:43.350Z","updatedAt":"2026-05-27T12:16:43.350Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b57180c75c7ebff6613886cb69ef6e283a10358b","status":"affected","lessThan":"c787a235deb33be6eda40beee8f561da5fd8cb8c","versionType":"git"},{"version":"b57180c75c7ebff6613886cb69ef6e283a10358b","status":"affected","lessThan":"a4741114c9622346c4bbb8cc2bbd88153616ffaf","versionType":"git"},{"version":"b57180c75c7ebff6613886cb69ef6e283a10358b","status":"affected","lessThan":"53c998527ffa60f9deda8974a11ad39790684159","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/mm/gcs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.14","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/mm/gcs.c"]}],"references":["https://git.kernel.org/stable/c/c787a235deb33be6eda40beee8f561da5fd8cb8c","https://git.kernel.org/stable/c/a4741114c9622346c4bbb8cc2bbd88153616ffaf","https://git.kernel.org/stable/c/53c998527ffa60f9deda8974a11ad39790684159"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/45xxx/CVE-2026-45876.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-45876","state":"PUBLISHED","datePublished":"2026-05-27T12:16:43.350Z","dateUpdated":"2026-05-27T12:16:43.350Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-13T15:03:33.081Z"},"containers":{"cna":{"title":"arm64/gcs: Fix error handling in arch_set_shadow_stack_status()","descriptions":[{"lang":"en","value":"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()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b57180c75c7ebff6613886cb69ef6e283a10358b","status":"affected","lessThan":"c787a235deb33be6eda40beee8f561da5fd8cb8c","versionType":"git"},{"version":"b57180c75c7ebff6613886cb69ef6e283a10358b","status":"affected","lessThan":"a4741114c9622346c4bbb8cc2bbd88153616ffaf","versionType":"git"},{"version":"b57180c75c7ebff6613886cb69ef6e283a10358b","status":"affected","lessThan":"53c998527ffa60f9deda8974a11ad39790684159","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/mm/gcs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.14","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/mm/gcs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c787a235deb33be6eda40beee8f561da5fd8cb8c"},{"url":"https://git.kernel.org/stable/c/a4741114c9622346c4bbb8cc2bbd88153616ffaf"},{"url":"https://git.kernel.org/stable/c/53c998527ffa60f9deda8974a11ad39790684159"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-27T12:16:43.350Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.18.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}