[Bug 246964] bhyve usb_mouse SIGSEGV on null pointer dereference
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jun 3 18:56:02 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246964
Bug ID: 246964
Summary: bhyve usb_mouse SIGSEGV on null pointer dereference
Product: Base System
Version: 12.1-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bhyve
Assignee: virtualization at FreeBSD.org
Reporter: ali.abdallah at suse.com
Created attachment 215206
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=215206&action=edit
Fix null pointer dereference in usb_mouse
By chance when I was running 'supportconfig' on a openSUSE 15.1 guest under
bhyve, it crashes with SIGSEGV. Debugging and checking the code revealed the
problem.
usb_mouse.c:538 eshort = data->blen > 0;
the data pointer above is accessed while being null. Attached is a trivial
patch that fixes the issue for me.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-virtualization
mailing list