Re: [PATCH v2 09/14] USB: serial: ch341: fix control-message error handling

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

 



On Fri, Jan 06, 2017 at 07:15:18PM +0100, Johan Hovold wrote:
> A short control transfer would currently fail to be detected, something
> which could lead to stale buffer data being used as valid input.
> 
> Check for short transfers, and make sure to log any transfer errors.
> 
> Fixes: 6ce76104781a ("USB: Driver for CH341 USB-serial adaptor")
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---

As this can also lead to bits of uninitialised heap buffers leaking to
user space via the modem-status interface, or to a remote device through
break control, I'll CC stable and add this one for inclusion -rc4 as
well.

Johan
--
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