diff options
| author | Chuck Tuffli <chuck@FreeBSD.org> | 2026-02-19 22:27:49 +0000 |
|---|---|---|
| committer | Chuck Tuffli <chuck@FreeBSD.org> | 2026-02-19 22:27:49 +0000 |
| commit | 10d5404adb11773969a600428d1abeb4308d98aa (patch) | |
| tree | bce8d77a4c9d02776392bb00070224cefc5ac051 /usr.sbin/kldxref/Makefile | |
| parent | c721ceeb3ef0b29d06e6c3c634579f3bc85cc28b (diff) | |
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 'usr.sbin/kldxref/Makefile')
0 files changed, 0 insertions, 0 deletions
