Description
In the Linux kernel, the following vulnerability has been resolved: arm64: suspend: Save GCS state over suspend GCSCRE0_EL1 and GCSPR_EL0 are live registers for EL0 on systems with GCS but are not saved and restored by cpu_do_suspend()/cpu_do_resume(). This means that the task that initiated suspend can return to userspace with UNKNOWN or incorrect values for GCSPR_EL0 and GCSCRE0_EL1 (many fields in GCSCRE0_EL1 reset to 0). This will in turn lead to ongoing corruption, including not restoring mode until a task with a different GCS mode is run. Fix this by saving and restoring the values over suspend. This increases the size of struct cpu_suspend_ctx by 16 bytes.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
5d8b172e7005c6b42c16a0952c1d8873051d68ae to < 1d9808f3020313998e59a9ca67206a2aa1d53a2baffected5d8b172e7005c6b42c16a0952c1d8873051d68ae to < 818beee4ba566d6f28eba9889bc98385197dfc4caffected5d8b172e7005c6b42c16a0952c1d8873051d68ae to < 7ca488055c69eed71219546deb805811854aca35affected
Linux Linux
Default version status: affected
6.13affected0 to < 6.13unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected