Files
linux-stable-mirror/drivers
Michael Bommarito 334271d381 HID: hyperv: validate initial device info bounds
commit 934b7778aa upstream.

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.

Fixes: b95f5bcb81 ("HID: Move the hid-hyperv driver out of staging")
Cc: stable@vger.kernel.org
Assisted-by: Codex:gpt-5-5-xhigh
Signed-off-by: Michael Bommarito <michael.bommarito@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-08-27 14:29:48 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-08-03 11:15:38 +02:00
2026-07-24 16:03:34 +02:00
…
…
…
…
…
…
…
2026-08-19 18:13:13 +02:00
…
2026-08-27 14:29:45 +02:00
…
…
…
…
…
…
…
…
…
…
…