KVM: arm64: nv: Fix handling of XN[0] when !FEAT_XNX
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:
KVM: arm64: nv: Fix handling of XN[0] when !FEAT_XNX
XN has already been extracted from its bitfield position so using FIELD_PREP() on the mask that clears XN[0] is completely broken, having the effect of unconditionally granting execute permissions...
Fix the obvious mistake by manipulating the right bit.
From the CVE record · Linux
The Linux kernel’s KVM arm64 nested virtualization code mishandles XN[0] when FEAT_XNX is absent, unconditionally granting execute permissions. The input does not specify how an attacker could exploit this or whether access or user interaction is required.
Engineers running Linux kernels with KVM arm64 nested virtualization should check whether their kernel includes the fix; affected versions are not specified.