Date: Wed, 03 Jun 2020 18:56:02 +0000 From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 246964] bhyve usb_mouse SIGSEGV on null pointer dereference Message-ID: <bug-246964-27103@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246964 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@FreeBSD.org Reporter: ali.abdallah@suse.com Created attachment 215206 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D215206&action= =3Dedit 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.=20 usb_mouse.c:538 eshort =3D data->blen > 0; the data pointer above is accessed while being null. Attached is a trivial patch that fixes the issue for me. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246964-27103>