arm64: set UXN on swapper page tables
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
arm64: set UXN on swapper page tables
[ This issue was fixed upstream by accident in c3cee924bd85 ("arm64: head: cover entire kernel image in initial ID map") as part of a large refactoring of the arm64 boot flow. This simple fix is therefore preferred for -stable backporting ]
On a system that implements FEAT_EPAN, read/write access to the idmap is denied because UXN is not set on the swapper PTEs. As a result, idmap_kpti_install_ng_mappings panics the kernel when accessing __idmap_kpti_flag. Fix it by setting UXN on these PTEs.
From the CVE record · Linux
On arm64 systems implementing FEAT_EPAN, swapper page-table entries without UXN deny read/write access to the idmap. This can cause a kernel panic when idmap_kpti_install_ng_mappings accesses __idmap_kpti_flag. The input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running the Linux kernel on arm64 systems implementing FEAT_EPAN should check their kernel versions; affected versions are not specified.