CVE-2024-46864: x86/hyperv: fix kexec crash due to VP assist page corruption
In the Linux kernel, the following vulnerability has been resolved:
x86/hyperv: fix kexec crash due to VP assist page corruption
commit 9636be85cc5b ("x86/hyperv: Fix hypervpcpuinputarg handling when CPUs go online/offline") introduces a new cpuhp state for hyperv initialization.
cpuhpsetupstate() returns the state number if state is CPUHPAPONLINEDYN or CPUHPBPPREPAREDYN and 0 for all other states. For the hyperv case, since a new cpuhp state was introduced it would return 0. However, in hvmachineshutdown(), the cpuhpremovestate() call is conditioned upon "hypervinitcpuhp > 0". This will never be true and so hvcpudie() won't be called on all CPUs. This means the VP assist page won't be reset. When the kexec kernel tries to setup the VP assist page again, the hypervisor corrupts the memory region of the old VP assist page causing a panic in case the kexec kernel is using that memory elsewhere. This was originally fixed in commit dfe94d4086e4 ("x86/hyperv: Fix kexec panic/hang issues").
Get rid of hypervinitcpuhp entirely since we are no longer using a dynamic cpuhp state and use CPUHPAPHYPERVONLINE directly with cpuhpremovestate().
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-46864?
CVE-2024-46864 has been classified as a high-severity vulnerability due to its potential impact on the Linux kernel's stability.
How do I fix CVE-2024-46864?
To fix CVE-2024-46864, you should upgrade your Linux kernel to a patched version, such as those provided in the latest kernel updates.
Which versions of the Linux kernel are affected by CVE-2024-46864?
CVE-2024-46864 affects multiple versions within the range of 6.4 to 6.10.11 and specific release candidates of version 6.11.
What is the risk of not addressing CVE-2024-46864?
Failing to address CVE-2024-46864 may lead to system crashes or unstable behavior in environments dependent on the Linux kernel.
Is there any specific software package that addresses CVE-2024-46864?
Yes, the Debian package 'linux' with versions 5.10.223-1, 5.10.226-1, 6.1.123-1, and 6.12.11-1 resolves CVE-2024-46864.