CVE Database›CVE-2022-49874

CVE-2022-49874

kernel: HID: hyperv: fix possible memory leak in mousevsc_probe()

Loading…

Severity

Low

Red Hat Product Security

3.3

CVSS 3.1

Review impact separately from score.

Published · May 1, 2025

Updated · June 30, 2026

Description

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().

Statement

A potential memory leak was fixed in the Hyper-V mouse driver (mousevsc_probe). If hid_add_device() failed, the allocated HID device structure (hid_dev) was not freed, leading to a leak. The patch ensures proper cleanup by calling hid_destroy_device() on failure paths.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 3.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

CWE not specified