[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <nycvar.YFH.7.76.1710111505490.14384@jbgna.fhfr.qr>
Date: Wed, 11 Oct 2017 15:06:00 +0200 (CEST)
From: Jiri Kosina <jikos@...nel.org>
To: Jaejoong Kim <climbbb.kim@...il.com>
cc: Alan Stern <stern@...land.harvard.edu>,
Andrey Konovalov <andreyknvl@...gle.com>,
Benjamin Tissoires <benjamin.tissoires@...hat.com>,
USB list <linux-usb@...r.kernel.org>,
linux-input@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
syzkaller <syzkaller@...glegroups.com>
Subject: Re: [PATCH v2] HID: usbhid: fix out-of-bounds bug
On Thu, 28 Sep 2017, Jaejoong Kim wrote:
> The hid descriptor identifies the length and type of subordinate
> descriptors for a device. If the received hid descriptor is smaller than
> the size of the struct hid_descriptor, it is possible to cause
> out-of-bounds.
>
> In addition, if bNumDescriptors of the hid descriptor have an incorrect
> value, this can also cause out-of-bounds while approaching hdesc->desc[n].
>
> So check the size of hid descriptor and bNumDescriptors.
Applied to for-4.14/upstream-fixes. Thanks,
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists