HID: hyperv: validate initial device info bounds
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b95f5bcb811e3905b5376f87789da8d097fee682 · < 608f8fd8c0f7b6268da43509447802955f210aac| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: hyperv: validate initial device info bounds
The Hyper-V synthetic HID host supplies SYNTH_HID_INITIAL_DEVICE_INFO messages that contain a HID descriptor followed by the report descriptor bytes. mousevsc_on_receive_device_info() trusts bLength and wDescriptorLength without checking that the received packet contains both byte ranges.
A malformed host or backend message can therefore make the guest read past the received VMBus packet while copying the report descriptor. Pass the received initial-device-info size into the parser and reject descriptor lengths that exceed the packet.
Impact: A malicious Hyper-V host or backend can crash a guest by sending a short initial device-info message with an oversized HID report descriptor length.
From the CVE record · Linux
The Linux kernel Hyper-V synthetic HID parser does not check whether an initial device-info packet contains the full HID and report descriptors. A malicious Hyper-V host or backend can send a short packet with an oversized report descriptor length, causing the guest to read past the packet and crash.
Operators running Linux kernel guests with Hyper-V synthetic HID should check whether their kernel includes the bounds-validation fix; affected versions were not specified.