arm64: hibernate: pass HVC_SET_VECTORS args to the resume hvc
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 788bfdd97434982b6d575062581e8e72eea755af · fixed in 6646418d1032cac25110526161f60d255ed08397; From 788bfdd97434982b6d575062581e8e72eea755af · fixed in 909e92423db7299e0206232051aa21fe129f65d0; From 788bfdd97434982b6d575062581e8e72eea755af · fixed in 60a3c319f1127c4d247d4ed235c5d65376d5e745; From 788bfdd97434982b6d575062581e8e72eea755af · fixed in e80ea8118a073a30ebe7a31bd78938c2b1751acc; From 788bfdd97434982b6d575062581e8e72eea755af · fixed in d3f8f773312af69eaf4dda106d76d6d42e4362e5; From 788bfdd97434982b6d575062581e8e72eea755af · fixed in 955d86e5f3b95b731991fdb84966c50b16314629
- Linux Linux
5.16
- KernelLinux
From 5.16.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.54; From 6.19.0 · fixed in 7.2.8