CVE-2026-98249: arm64: hibernate: pass HVC_SET_VECTORS args to the resume hvc
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98249 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.16 with commit 788bfdd97434982b6d575062581e8e72eea755af and fixed in 6.1.189 with commit 6646418d1032cac25110526161f60d255ed08397 Issue introduced in 5.16 with commit 788bfdd97434982b6d575062581e8e72eea755af and fixed in 6.6.158 with commit 909e92423db7299e0206232051aa21fe129f65d0 Issue introduced in 5.16 with commit 788bfdd97434982b6d575062581e8e72eea755af and fixed in 6.12.112 with commit 60a3c319f1127c4d247d4ed235c5d65376d5e745 Issue introduced in 5.16 with commit 788bfdd97434982b6d575062581e8e72eea755af and fixed in 6.18.54 with commit e80ea8118a073a30ebe7a31bd78938c2b1751acc Issue introduced in 5.16 with commit 788bfdd97434982b6d575062581e8e72eea755af and fixed in 7.2.8 with commit d3f8f773312af69eaf4dda106d76d6d42e4362e5 Issue introduced in 5.16 with commit 788bfdd97434982b6d575062581e8e72eea755af and fixed in 7.3-rc4 with commit 955d86e5f3b95b731991fdb84966c50b16314629
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-98249
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/arm64/kernel/hibernate-asm.S
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/6646418d1032cac25110526161f60d255ed08397 https://git.kernel.org/stable/c/909e92423db7299e0206232051aa21fe129f65d0 https://git.kernel.org/stable/c/60a3c319f1127c4d247d4ed235c5d65376d5e745 https://git.kernel.org/stable/c/e80ea8118a073a30ebe7a31bd78938c2b1751acc https://git.kernel.org/stable/c/d3f8f773312af69eaf4dda106d76d6d42e4362e5 https://git.kernel.org/stable/c/955d86e5f3b95b731991fdb84966c50b16314629