CVE-2026-31568: s390/mm: Add missing secure storage access fixups for donated memory
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
s390/mm: Add missing secure storage access fixups for donated memory
There are special cases where secure storage access exceptions happen in a kernel context for pages that don't have the PG_arch_1 bit set. That bit is set for non-exported guest secure storage (memory) but is absent on storage donated to the Ultravisor since the kernel isn't allowed to export donated pages.
Prior to this patch we would try to export the page by calling arch_make_folio_accessible() which would instantly return since the arch bit is absent signifying that the page was already exported and no further action is necessary. This leads to secure storage access exception loops which can never be resolved.
With this patch we unconditionally try to export and if that fails we fixup.
The Linux kernel CVE team has assigned CVE-2026-31568 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit 084ea4d611a3d00ee3930400b262240e10895900 and fixed in 6.18.21 with commit b36b0e804aee5f20c6798dbeaeaa7cfdb7c6cf88 Issue introduced in 5.7 with commit 084ea4d611a3d00ee3930400b262240e10895900 and fixed in 6.19.11 with commit 43ac2d18db1131df0a89993f709131ebfc29f3bd Issue introduced in 5.7 with commit 084ea4d611a3d00ee3930400b262240e10895900 and fixed in 7.0 with commit b00be77302d7ec4ad0367bb236494fce7172b730
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-31568
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/s390/mm/fault.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/b36b0e804aee5f20c6798dbeaeaa7cfdb7c6cf88 https://git.kernel.org/stable/c/43ac2d18db1131df0a89993f709131ebfc29f3bd https://git.kernel.org/stable/c/b00be77302d7ec4ad0367bb236494fce7172b730