arm64: hibernate: pass HVC_SET_VECTORS args to the resume hvc
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 788bfdd97434982b6d575062581e8e72eea755af · < 955d86e5f3b95b731991fdb84966c50b16314629| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
arm64: hibernate: pass HVC_SET_VECTORS args to the resume hvc
swsusp_arch_suspend_exit() reinstalls the restored kernel's hyp stub vectors with an hvc, but never passes the arguments. x0 is not set to HVC_SET_VECTORS and x1 is not set to the vector address, so the stub dispatch falls through and returns without writing vbar_el2. EL2 is left pointing at the trans_pgd copy of the vectors, a page that swsusp_free() releases right after resume.
Set the arguments up the same way __hyp_set_vectors() does.
Without this fix, Vladimir was able to trigger a hang when resuming from hibernation with CONFIG_PAGE_POISONING=y and page_poison=on.
From the CVE record · Linux
The Linux kernel's arm64 hibernation resume path fails to reinstall the restored kernel's hypervisor vectors, leaving EL2 pointing to a page freed after resume. A hang was triggered when resuming from hibernation with CONFIG_PAGE_POISONING=y and page_poison=on. The input does not describe an attacker-triggered path, authentication requirement, or user interaction.
Engineers running Linux kernels on arm64 systems that use hibernation should check their kernels; affected versions are not specified.