Back

MEDIUM

arm64/gcs: Fix error handling in arch_set_shadow_stack_status()

Published May 27, 2026

Description

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().

Affected products

Remediation

No remediation recorded yet.

References (9)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published May 27, 2026
Updated May 27, 2026
Reserved May 13, 2026
NVD
Status Analyzed
Modified Jun 25, 2026
Red Hat
Severity Low
Public date May 27, 2026
ENISA EUVD
Assigner Linux
Published May 27, 2026
Updated May 27, 2026
Exploited since n/a
EUVD-2026-32342