# CVE-2022-49874: HID: hyperv: fix possible memory leak in mousevsc\_probe()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-05-01T14:10:23.783Z
- **Modified:** 2026-06-17T05:19:23.097Z

## Who should check

- Anyone running Linux \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< ed75d1a1c31a0cae8ecc8bcea710b25c0be68da0; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 249b743801c00542e9324f87b380032e957a43e8; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< a6d2fb1874c52ace1f5cf1966ee558829c5c19b6; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< e29289d0d8193fca6d2c1f0a1de75cfc80edec00; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 8597b59e3d22b27849bd3e4f92a3d466774bfb04; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 5ad95d71344b7ffec360d62591633b3c465dc049; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 5f3aba6566b866f5b0a4916f0b2e8a6ae66a6451; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< b5bcb94b0954a026bbd671741fdb00e7141f9c91
- Anyone running Linux 3.3

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

## Affected and fixed versions

- Linux: \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< ed75d1a1c31a0cae8ecc8bcea710b25c0be68da0; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 249b743801c00542e9324f87b380032e957a43e8; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< a6d2fb1874c52ace1f5cf1966ee558829c5c19b6; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< e29289d0d8193fca6d2c1f0a1de75cfc80edec00; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 8597b59e3d22b27849bd3e4f92a3d466774bfb04; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 5ad95d71344b7ffec360d62591633b3c465dc049; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 5f3aba6566b866f5b0a4916f0b2e8a6ae66a6451; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< b5bcb94b0954a026bbd671741fdb00e7141f9c91 (cvelist)
- Linux: 3.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49874. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49874.md
Affected: Linux >= 74c4fb058083b47571a4f76dcfce95085f2d8098, < ed75d1a1c31a0cae8ecc8bcea710b25c0be68da0; >= 74c4fb058083b47571a4f76dcfce95085f2d8098, < 249b743801c00542e9324f87b380032e957a43e8; >= 74c4fb058083b47571a4f76dcfce95085f2d8098, < a6d2fb1874c52ace1f5cf1966ee558829c5c19b6; >= 74c4fb058083b47571a4f76…
Fixed in: Linux 249b743801c00542e9324f87b380032e957a43e8, Linux 8597b59e3d22b27849bd3e4f92a3d466774bfb04, Linux 5ad95d71344b7ffec360d62591633b3c465dc049, Linux 5f3aba6566b866f5b0a4916f0b2e8a6ae66a6451

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49874 being exploited?

There is no confirmed exploitation: CVE-2022-49874 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49874?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49874?

Linux \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< ed75d1a1c31a0cae8ecc8bcea710b25c0be68da0; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 249b743801c00542e9324f87b380032e957a43e8; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< a6d2fb1874c52ace1f5cf1966ee558829c5c19b6; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< e29289d0d8193fca6d2c1f0a1de75cfc80edec00; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 8597b59e3d22b27849bd3e4f92a3d466774bfb04; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 5ad95d71344b7ffec360d62591633b3c465dc049; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< 5f3aba6566b866f5b0a4916f0b2e8a6ae66a6451; \>= 74c4fb058083b47571a4f76dcfce95085f2d8098, \< b5bcb94b0954a026bbd671741fdb00e7141f9c91; Linux 3.3.

### Is there a fix for CVE-2022-49874?

Yes. Fixed in Linux 249b743801c00542e9324f87b380032e957a43e8, Linux 8597b59e3d22b27849bd3e4f92a3d466774bfb04, Linux 5ad95d71344b7ffec360d62591633b3c465dc049, Linux 5f3aba6566b866f5b0a4916f0b2e8a6ae66a6451. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49874?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49874>

HTML: <https://flawdb.com/CVE-2022-49874> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49874>
