CVE-2022-49874Published May 1, 2025 · May 1Updated Oct 28
HID: hyperv: fix possible memory leak in mousevsc_probe()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 74c4fb058083b47571a4f76dcfce95085f2d8098 · < 5ad95d71344b7ffec360d62591633b3c465dc049| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: hyperv: fix possible memory leak in mousevsc_probe()
If hid_add_device() returns error, it should call hid_destroy_device() to free hid_dev which is allocated in hid_allocate_device().
From the CVE record · Linux
The Linux kernel's Hyper-V HID mouse probe can leak memory if hid_add_device() fails, because the allocated HID device is not freed. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified.