# CVE-2024-56545: HID: hyperv: streamline driver probe to avoid devres issues

> 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, NVD) `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.30% (percentile 15, 2026-11-26)
- **Published:** 2024-12-27T14:11:26.722Z
- **Modified:** 2026-11-05T21:17:35.437Z

## Who should check

- Anyone running Linux \>= e6ea3de7abef998aaab9f04a7a11a7c5f56bbe57, \< b7c074d21fe8a8ee3b4f866a12c72cad6a5826eb; \>= ac0d8318082f549419104cfe9cb6a9deb2df9853, \< 4c419126cf71ca1f358ec0b8ccc448928719d502; \>= 4d1617e40713a6202b6165ca137b09aaf35637f5, \< a216f6dc0444c3bd900bca66b9f21467d08e3ed3; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< b03e713a400aeb5f969bab4daf47a7402d0df814; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< 19a9457e5e210e408c1f8865b5d93c5a2c90409d; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< 3d48d0fbaaa74a04fb9092780a3f83dc4f3f8160; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< 66ef47faa90d838cda131fe1f7776456cc3b59f2; \>= 5.10.270, \< 5.10.271; \>= 5.15.221, \< 5.15.222; \>= 6.1.188, \< 6.1.189
- Anyone running Linux 6.5

## Description

In the Linux kernel, the following vulnerability has been resolved:

HID: hyperv: streamline driver probe to avoid devres issues

It was found that unloading 'hid\_hyperv' module results in a devres
complaint:

 ...
 hv\_vmbus: unregistering driver hid\_hyperv
 ------------\[ cut here \]------------
 WARNING: CPU: 2 PID: 3983 at drivers/base/devres.c:691 devres\_release\_group+0x1f2/0x2c0
 ...
 Call Trace:
  \<TASK\>
  ? devres\_release\_group+0x1f2/0x2c0
  ? \_\_warn+0xd1/0x1c0
  ? devres\_release\_group+0x1f2/0x2c0
  ? report\_bug+0x32a/0x3c0
  ? handle\_bug+0x53/0xa0
  ? exc\_invalid\_op+0x18/0x50
  ? asm\_exc\_invalid\_op+0x1a/0x20
  ? devres\_release\_group+0x1f2/0x2c0
  ? devres\_release\_group+0x90/0x2c0
  ? rcu\_is\_watching+0x15/0xb0
  ? \_\_pfx\_devres\_release\_group+0x10/0x10
  hid\_device\_remove+0xf5/0x220
  device\_release\_driver\_internal+0x371/0x540
  ? klist\_put+0xf3/0x170
  bus\_remove\_device+0x1f1/0x3f0
  device\_del+0x33f/0x8c0
  ? \_\_pfx\_device\_del+0x10/0x10
  ? cleanup\_srcu\_struct+0x337/0x500
  hid\_destroy\_device+0xc8/0x130
  mousevsc\_remove+0xd2/0x1d0 \[hid\_hyperv\]
  device\_release\_driver\_internal+0x371/0x540
  driver\_detach+0xc5/0x180
  bus\_remove\_driver+0x11e/0x2a0
  ? \_\_mutex\_unlock\_slowpath+0x160/0x5e0
  vmbus\_driver\_unregister+0x62/0x2b0 \[hv\_vmbus\]
  ...

And the issue seems to be that the corresponding devres group is not
allocated. Normally, devres\_open\_group() is called from
\_\_hid\_device\_probe() but Hyper-V HID driver overrides 'hid\_dev-\>driver'
with 'mousevsc\_hid\_driver' stub and basically re-implements
\_\_hid\_device\_probe() by calling hid\_parse() and hid\_hw\_start() but not
devres\_open\_group(). hid\_device\_probe() does not call \_\_hid\_device\_probe()
for it. Later, when the driver is removed, hid\_device\_remove() calls
devres\_release\_group() as it doesn't check whether hdev-\>driver was
initially overridden or not.

The issue seems to be related to the commit 62c68e7cee33 ("HID: ensure
timely release of driver-allocated resources") but the commit itself seems
to be correct.

Fix the issue by dropping the 'hid\_dev-\>driver' override and using
hid\_register\_driver()/hid\_unregister\_driver() instead. Alternatively, it
would have been possible to rely on the default handling but
HID\_CONNECT\_DEFAULT implies HID\_CONNECT\_HIDRAW and it doesn't seem to work
for mousevsc as-is.

## Affected and fixed versions

- Linux: \>= e6ea3de7abef998aaab9f04a7a11a7c5f56bbe57, \< b7c074d21fe8a8ee3b4f866a12c72cad6a5826eb; \>= ac0d8318082f549419104cfe9cb6a9deb2df9853, \< 4c419126cf71ca1f358ec0b8ccc448928719d502; \>= 4d1617e40713a6202b6165ca137b09aaf35637f5, \< a216f6dc0444c3bd900bca66b9f21467d08e3ed3; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< b03e713a400aeb5f969bab4daf47a7402d0df814; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< 19a9457e5e210e408c1f8865b5d93c5a2c90409d; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< 3d48d0fbaaa74a04fb9092780a3f83dc4f3f8160; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< 66ef47faa90d838cda131fe1f7776456cc3b59f2; \>= 5.10.270, \< 5.10.271; \>= 5.15.221, \< 5.15.222; \>= 6.1.188, \< 6.1.189 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 6.1.189 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-56545.md
Affected: Linux >= e6ea3de7abef998aaab9f04a7a11a7c5f56bbe57, < b7c074d21fe8a8ee3b4f866a12c72cad6a5826eb; >= ac0d8318082f549419104cfe9cb6a9deb2df9853, < 4c419126cf71ca1f358ec0b8ccc448928719d502; >= 4d1617e40713a6202b6165ca137b09aaf35637f5, < a216f6dc0444c3bd900bca66b9f21467d08e3ed3; >= 62c68e7cee332e08e625af3…
Fixed in: Linux 4c419126cf71ca1f358ec0b8ccc448928719d502, Linux 19a9457e5e210e408c1f8865b5d93c5a2c90409d, Linux 3d48d0fbaaa74a04fb9092780a3f83dc4f3f8160, Linux 66ef47faa90d838cda131fe1f7776456cc3b59f2, Linux 5.10.271, Linux 5.15.222, Linux 6.1.189

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-2024-56545 being exploited?

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

### How serious is CVE-2024-56545?

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

### Which versions are affected by CVE-2024-56545?

Linux \>= e6ea3de7abef998aaab9f04a7a11a7c5f56bbe57, \< b7c074d21fe8a8ee3b4f866a12c72cad6a5826eb; \>= ac0d8318082f549419104cfe9cb6a9deb2df9853, \< 4c419126cf71ca1f358ec0b8ccc448928719d502; \>= 4d1617e40713a6202b6165ca137b09aaf35637f5, \< a216f6dc0444c3bd900bca66b9f21467d08e3ed3; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< b03e713a400aeb5f969bab4daf47a7402d0df814; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< 19a9457e5e210e408c1f8865b5d93c5a2c90409d; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< 3d48d0fbaaa74a04fb9092780a3f83dc4f3f8160; \>= 62c68e7cee332e08e625af3bca3318814086490d, \< 66ef47faa90d838cda131fe1f7776456cc3b59f2; \>= 5.10.270, \< 5.10.271; \>= 5.15.221, \< 5.15.222; \>= 6.1.188, \< 6.1.189; Linux 6.5.

### Is there a fix for CVE-2024-56545?

Yes. Fixed in Linux 4c419126cf71ca1f358ec0b8ccc448928719d502, Linux 19a9457e5e210e408c1f8865b5d93c5a2c90409d, Linux 3d48d0fbaaa74a04fb9092780a3f83dc4f3f8160, Linux 66ef47faa90d838cda131fe1f7776456cc3b59f2, Linux 5.10.271, Linux 5.15.222, Linux 6.1.189. Upgrade Linux to 6.1.189 or later.

### How do I check if I'm affected by CVE-2024-56545?

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/b03e713a400aeb5f969bab4daf47a7402d0df814>
- patch: <https://git.kernel.org/stable/c/19a9457e5e210e408c1f8865b5d93c5a2c90409d>
- patch: <https://git.kernel.org/stable/c/3d48d0fbaaa74a04fb9092780a3f83dc4f3f8160>
- patch: <https://git.kernel.org/stable/c/66ef47faa90d838cda131fe1f7776456cc3b59f2>
- other: <https://git.kernel.org/stable/c/b7c074d21fe8a8ee3b4f866a12c72cad6a5826eb>
- other: <https://git.kernel.org/stable/c/4c419126cf71ca1f358ec0b8ccc448928719d502>
- other: <https://git.kernel.org/stable/c/a216f6dc0444c3bd900bca66b9f21467d08e3ed3>

## 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-2024-56545>

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