# CVE-2022-49098: Drivers: hv: vmbus: Fix potential crash on module unload

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-02-26T01:54:50.073Z
- Modified: 2026-06-17T05:17:04.450Z
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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; from 4.19.118 before 4.19.238; from 5.4.35 before 5.4.189; from 5.6.7 before 5.7; 5.7 (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.*; from 5.17.3 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 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; 5.18

## References

- <https://git.kernel.org/stable/c/6b4c0149a56147b29169e07000d566162892722a> (patch)
- <https://git.kernel.org/stable/c/2133c422a103cf7c7768c37b9ac382e73b691892> (patch)
- <https://git.kernel.org/stable/c/cf580d2e3884dbafd6b90269b03a24d661578624> (patch)
- <https://git.kernel.org/stable/c/dcd6b1a624c0ffa21034d8b1e02e9d068458f596> (patch)
- <https://git.kernel.org/stable/c/5ea98d0f5f035c1bcf1517ccec0e024ae35a48b2> (patch)
- <https://git.kernel.org/stable/c/3d0078f8bddd58d9bb1ad40bbe929f8633abb276> (patch)
- <https://git.kernel.org/stable/c/792f232d57ff28bbd5f9c4abe0466b23d5879dc8> (patch)

## Sources

- CVE List: [CVE-2022-49098](https://www.cve.org/CVERecord?id=CVE-2022-49098), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2022-49098](https://nvd.nist.gov/vuln/detail/CVE-2022-49098), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49098 · Whole record: https://cve.day/CVE-2022-49098.json · Rebuilt by cve.day 2026-11-25T22:58:20.172Z
