Re: [PATCH] USB: core: Add type-specific length check of BOS descriptors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 10, 2017 at 01:25:50AM +0900, Masakazu Mokuno wrote:
> 
> As most of BOS descriptors are longer in length than their header
> 'struct usb_dev_cap_header', comparing solely with it is not sufficient
> to avoid out-of-bounds access to BOS descriptors.
> 
> This patch adds descriptor type specific length check in
> usb_get_bos_descriptor() to fix the issue.
> 
> Signed-off-by: Masakazu Mokuno <masakazu.mokuno@xxxxxxxxx>

So is the current code "broken" somehow, and this patch should be
backported to the stable kernels?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux