CVE-2022-49098
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.26% (higher than 18% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 5e059fc0f054309036d3f612bc8b0a502ca58545 before 6b4c0149a56147b29169e07000d566162892722a, from 9f38f7b46de0747c1909e8c557aa21715dce20c5 before 2133c422a103cf7c7768c37b9ac382e73b691892, from 74347a99e73ae00b8385f1209aaea193c670f901 before cf580d2e3884dbafd6b90269b03a24d661578624, from 74347a99e73ae00b8385f1209aaea193c670f901 before dcd6b1a624c0ffa21034d8b1e02e9d068458f596, from 74347a99e73ae00b8385f1209aaea193c670f901 before 5ea98d0f5f035c1bcf1517ccec0e024ae35a48b2, from 74347a99e73ae00b8385f1209aaea193c670f901 before 3d0078f8bddd58d9bb1ad40bbe929f8633abb276, from 74347a99e73ae00b8385f1209aaea193c670f901 before 792f232d57ff28bbd5f9c4abe0466b23d5879dc8, caeeb3787167c884b955404a7e669fd77f267e44 and 4 more
Not affected: before 5.7, from 4.19.238 up to 4.19.*, from 5.4.189 up to 5.4.*, from 5.10.111 up to 5.10.*, from 5.15.34 up to 5.15.*, from 5.16.20 up to 5.16.*
CVE List
linux linux_kernelfrom 4.19.118 before 4.19.238, from 5.4.35 before 5.4.189, from 5.6.7 before 5.7, from 5.7.1 before 5.10.111, from 5.11 before 5.15.34, from 5.16 before 5.16.20, from 5.17 before 5.17.3, 5.7 and 1 moreNVD

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: Controladores: hv: vmbus: corrige un posible fallo al descargar un módulo El controlador vmbus depende de la infraestructura del notificador de pánico para realizar algunas operaciones cuando se detecta un evento de pánico. Dado que vmbus se puede crear como un módulo, se requiere que el controlador controle tanto el registro como la anulación del registro de dicha devolución de llamada del notificador de pánico. Sin embargo, después de el commit 74347a99e73a ("x86/Hyper-V: Descargar canal vmbus en la devolución de llamada de pánico hv"), el registro del notificador de pánico se realiza de forma incondicional en la rutina de inicialización del módulo, mientras que el procedimiento de anulación del registro se protege de forma condicional y se ejecuta solo si se establece la capacidad HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE. Este parche corrige eso anulando incondicionalmente el registro del notificador de pánico también en la rutina de salida del módulo.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49098 changed 2026-05-23CVE Terms of Use
NVDCVE-2022-49098 changed 2026-06-17Public domain