aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/pcg-c/include
diff options
context:
space:
mode:
authorChuck Tuffli <chuck@FreeBSD.org>2026-02-19 22:27:49 +0000
committerChuck Tuffli <chuck@FreeBSD.org>2026-02-19 22:27:49 +0000
commit10d5404adb11773969a600428d1abeb4308d98aa (patch)
treebce8d77a4c9d02776392bb00070224cefc5ac051 /sys/contrib/pcg-c/include
parentc721ceeb3ef0b29d06e6c3c634579f3bc85cc28b (diff)
bhyve: fix USB mouse requestsHEADmain
USB HCI requests may not include HCI transfer block structures (i.e., xfer->data[] == NULL), but in several places, the USB mouse emulation code assumes one will exist. This can lead to a NULL pointer dereference and a SEGV in the bhyve process as observed via experiments with an Ubuntu guest and PyUSB code. Note that many of the cases processing other request types already checked for data == NULL. While in the neighborhood, fix a typo in the loop iterating over the usb_data_xfer_block array which used the wrong variable to check for valid data (idx vs. i). Reported by: danmcd@edgecast.io Obtained from: SmartOS MFC after: 1 week Relnotes: yes Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D54661
Diffstat (limited to 'sys/contrib/pcg-c/include')
0 files changed, 0 insertions, 0 deletions