CVE-2026-89568: kho: fix size calculation in kho_preserved_memory_reserve()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
kho: fix size calculation in kho_preserved_memory_reserve()
kho_preserved_memory_reserve() calculates the size of a preservation by doing 1 << (order + PAGE_SHIFT). Since the '1' is a 32-bit integer, it can only be shifted by 31. That is, it will only work for preservations up to 2 GiB. Larger preservations will trigger undefined behaviour.
While preservations larger than 2 GiB can't be obtained via folios currently, they can be obtained via kho_preserve_pages().
For example, memblock reserve_mem uses kho_preserve_pages(). Reservations larger than 2 GiB are valid and will trigger this bug if properly aligned.
Fix it by using 1UL for shifting.
The Linux kernel CVE team has assigned CVE-2026-89568 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit fc33e4b44b2717feba2f6f07ce7943a96499c9ec and fixed in 7.2.4 with commit 42a6f03cf352eb6e6dbeef95e75e686f4cdb9bd1 Issue introduced in 6.16 with commit fc33e4b44b2717feba2f6f07ce7943a96499c9ec and fixed in 7.3-rc1 with commit 3a0b8fa2eb36afc88b62a95f33f0c77c71fa5ded
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-89568
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:
kernel/liveupdate/kexec_handover.c
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/42a6f03cf352eb6e6dbeef95e75e686f4cdb9bd1 https://git.kernel.org/stable/c/3a0b8fa2eb36afc88b62a95f33f0c77c71fa5ded