VDB

CVE-2024-46864

CVE-2024-46864 PUBLISHED

x86/hyperv: fix kexec crash due to VP assist page corruption

Reported by linux · Published September 27, 2024

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 hyperv_pcpu_input_arg handling when CPUs go online/offline") introduces a new cpuhp state for hyperv initialization. cpuhp_setup_state() returns the state number if state is CPUHP_AP_ONLINE_DYN or CPUHP_BP_PREPARE_DYN and 0 for all other states. For the hyperv case, since a new cpuhp state was introduced it would return 0. However, in hv_machine_shutdown(), the cpuhp_remove_state() call is conditioned upon "hyperv_init_cpuhp > 0". This will never be true and so hv_cpu_die() 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 hyperv_init_cpuhp entirely since we are no longer using a dynamic cpuhp state and use CPUHP_AP_HYPERV_ONLINE directly with cpuhp_remove_state().

Affected products

VendorProductVersions
LinuxLinux9636be85cc5bdd8b7a7f6a53405cbcc52161c93c, 9636be85cc5bdd8b7a7f6a53405cbcc52161c93c, 9636be85cc5bdd8b7a7f6a53405cbcc52161c93c
LinuxLinux6.4, 0, 6.6.52
linuxlinux_kernel6.4, 6.4, 6.4
LinuxLinux9636be85cc5bdd8b7a7f6a53405cbcc52161c93c, 9636be85cc5bdd8b7a7f6a53405cbcc52161c93c, 0

Timeline

  • Sep 27, 2024 CVE Published
  • Sep 28, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jan 4, 2026 Security Advisory (143 in total, the first dated here)
  • May 28, 2026 Distribution Patch (123 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-46864
vulnetix vdb fixes CVE-2024-46864

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-46864/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›