Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
5e059fc0f054309036d3f612bc8b0a502ca58545 to < 6b4c0149a56147b29169e07000d566162892722aaffected9f38f7b46de0747c1909e8c557aa21715dce20c5 to < 2133c422a103cf7c7768c37b9ac382e73b691892affected74347a99e73ae00b8385f1209aaea193c670f901 to < cf580d2e3884dbafd6b90269b03a24d661578624affected74347a99e73ae00b8385f1209aaea193c670f901 to < dcd6b1a624c0ffa21034d8b1e02e9d068458f596affected74347a99e73ae00b8385f1209aaea193c670f901 to < 5ea98d0f5f035c1bcf1517ccec0e024ae35a48b2affected74347a99e73ae00b8385f1209aaea193c670f901 to < 3d0078f8bddd58d9bb1ad40bbe929f8633abb276affected74347a99e73ae00b8385f1209aaea193c670f901 to < 792f232d57ff28bbd5f9c4abe0466b23d5879dc8affectedcaeeb3787167c884b955404a7e669fd77f267e44affected4.19.118 to < 4.19.238affected5.4.35 to < 5.4.189affected5.6.7 to < 5.7affected
Linux Linux
Default version status: affected
5.7affected0 to < 5.7unaffected4.19.238 to ≤ 4.19.*unaffected5.4.189 to ≤ 5.4.*unaffected5.10.111 to ≤ 5.10.*unaffected5.15.34 to ≤ 5.15.*unaffected5.16.20 to ≤ 5.16.*unaffected5.17.3 to ≤ 5.17.*unaffected5.18 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/6b4c0149a56147b29169e07000d566162892722a ↗
- https://git.kernel.org/stable/c/2133c422a103cf7c7768c37b9ac382e73b691892 ↗
- https://git.kernel.org/stable/c/cf580d2e3884dbafd6b90269b03a24d661578624 ↗
- https://git.kernel.org/stable/c/dcd6b1a624c0ffa21034d8b1e02e9d068458f596 ↗
- https://git.kernel.org/stable/c/5ea98d0f5f035c1bcf1517ccec0e024ae35a48b2 ↗
- https://git.kernel.org/stable/c/3d0078f8bddd58d9bb1ad40bbe929f8633abb276 ↗
- https://git.kernel.org/stable/c/792f232d57ff28bbd5f9c4abe0466b23d5879dc8 ↗