Skip to main content
← All vulnerabilities
CVE-2022-49098

Drivers: hv: vmbus: Fix potential crash on module unload

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.19.238, 5.4.189, 5.7
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: Drivers: hv: vmbus: Fix potential crash on module unload The vmbus driver relies on the panic notifier infrastructure to perform some operations when a panic event is detected. Since vmbus can be built as module, it is required that the driver handles both registering and unregistering such panic notifier callback. After commit 74347a99e73a ("x86/Hyper-V: Unload vmbus channel in hv panic callback") though, the panic notifier registration is done unconditionally in the module initialization routine whereas the unregistering procedure is conditionally guarded and executes only if HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE capability is set. This patch fixes that by unconditionally unregistering the panic notifier in the module's exit routine as well.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 4.19.118 · fixed in 4.19.238; From 5.4.35 · fixed in 5.4.189; From 5.6.7 · fixed in 5.7

  • Linux Linux

    5.7

References 7

git.kernel.org