# CVE-2022-49874: HID: hyperv: fix possible memory leak in mousevsc_probe()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-05-01T14:10:23.783Z
- Modified: 2026-06-17T05:19:23.097Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 74c4fb058083b47571a4f76dcfce95085f2d8098 before ed75d1a1c31a0cae8ecc8bcea710b25c0be68da0; from 74c4fb058083b47571a4f76dcfce95085f2d8098 before 249b743801c00542e9324f87b380032e957a43e8; from 74c4fb058083b47571a4f76dcfce95085f2d8098 before a6d2fb1874c52ace1f5cf1966ee558829c5c19b6; from 74c4fb058083b47571a4f76dcfce95085f2d8098 before e29289d0d8193fca6d2c1f0a1de75cfc80edec00; from 74c4fb058083b47571a4f76dcfce95085f2d8098 before 8597b59e3d22b27849bd3e4f92a3d466774bfb04; from 74c4fb058083b47571a4f76dcfce95085f2d8098 before 5ad95d71344b7ffec360d62591633b3c465dc049; from 74c4fb058083b47571a4f76dcfce95085f2d8098 before 5f3aba6566b866f5b0a4916f0b2e8a6ae66a6451; from 74c4fb058083b47571a4f76dcfce95085f2d8098 before b5bcb94b0954a026bbd671741fdb00e7141f9c91; 3.3 (not affected: before 3.3; from 4.9.334 up to 4.9.*; from 4.14.300 up to 4.14.*; from 4.19.267 up to 4.19.*; from 5.4.225 up to 5.4.*; from 5.10.155 up to 5.10.*; from 5.15.79 up to 5.15.*; from 6.0.9 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 3.3 before 4.9.334; from 4.10 before 4.14.300; from 4.15 before 4.19.267; from 4.20 before 5.4.225; from 5.5 before 5.10.155; from 5.11 before 5.15.79; from 5.16 before 6.0.9; 6.1

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/ed75d1a1c31a0cae8ecc8bcea710b25c0be68da0> (patch)
- <https://git.kernel.org/stable/c/249b743801c00542e9324f87b380032e957a43e8> (patch)
- <https://git.kernel.org/stable/c/a6d2fb1874c52ace1f5cf1966ee558829c5c19b6> (patch)
- <https://git.kernel.org/stable/c/e29289d0d8193fca6d2c1f0a1de75cfc80edec00> (patch)
- <https://git.kernel.org/stable/c/8597b59e3d22b27849bd3e4f92a3d466774bfb04> (patch)
- <https://git.kernel.org/stable/c/5ad95d71344b7ffec360d62591633b3c465dc049> (patch)
- <https://git.kernel.org/stable/c/5f3aba6566b866f5b0a4916f0b2e8a6ae66a6451> (patch)
- <https://git.kernel.org/stable/c/b5bcb94b0954a026bbd671741fdb00e7141f9c91> (patch)

## Sources

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

---

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