Skip to contentSkip to conversation

CVE-2026-45876: arm64/gcs: Fix error handling in arch_set_shadow_stack_status()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

arm64/gcs: Fix error handling in arch_set_shadow_stack_status()

alloc_gcs() returns an error-encoded pointer on failure, which comes from do_mmap(), not NULL.

The current NULL check fails to detect errors, which could lead to using an invalid GCS address.

Use IS_ERR_VALUE() to properly detect errors, consistent with the check in gcs_alloc_thread_stack().

The Linux kernel CVE team has assigned CVE-2026-45876 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.13 with commit b57180c75c7ebff6613886cb69ef6e283a10358b and fixed in 6.18.14 with commit c787a235deb33be6eda40beee8f561da5fd8cb8c
	Issue introduced in 6.13 with commit b57180c75c7ebff6613886cb69ef6e283a10358b and fixed in 6.19.4 with commit a4741114c9622346c4bbb8cc2bbd88153616ffaf
	Issue introduced in 6.13 with commit b57180c75c7ebff6613886cb69ef6e283a10358b and fixed in 7.0 with commit 53c998527ffa60f9deda8974a11ad39790684159

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-2026-45876

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/arm64/mm/gcs.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/c787a235deb33be6eda40beee8f561da5fd8cb8c
	https://git.kernel.org/stable/c/a4741114c9622346c4bbb8cc2bbd88153616ffaf
	https://git.kernel.org/stable/c/53c998527ffa60f9deda8974a11ad39790684159