Patch "cdc-acm: fix uninitialized variable" has been added to the 4.8-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
cdc-acm: fix uninitialized variable
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
cdc-acm-fix-uninitialized-variable.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
7309aa847ead3fa561663b16779a0dde8c64cc7cMon Sep 17 00:00:00 2001
From: Oliver Neukum <[email protected]>
Date: Wed, 2 Nov 2016 14:42:52 +0100
Subject: cdc-acm: fix uninitialized variable
From: Oliver Neukum <[email protected]>
commit 7309aa847ead3fa561663b16779a0dde8c64cc7c upstream.
variable struct usb_cdc_parsed_header h may be used uninitialized in acm_probe.
In kernel 4.8.
/* handle quirks deadly to normal probing*/
if (quirks == NO_UNION_NORMAL)
...
goto skip_normal_probe;
}we bypass call to
cdc_parse_cdc_header(&h, intf, buffer, buflen);
but later use h in
if (h.usb_cdc_country_functional_desc) { /* export the country data */
--- drivers/usb/class/cdc-acm.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/usb/class/cdc-acm.c +2 -0
@@ -1173,6 +1173,8 @@ static int acm_probe(struct usb_interfacif (quirks ==IGNORE_DEVICE )return -ENODEV ; +memset (&h,0x00 ,sizeof (struct usb_cdc_parsed_header )); + num_rx_buf = (quirks ==SINGLE_RX_URB ) ?1 :ACM_NR ;/* handle quirks deadly to normal probing*/
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/cdc-acm-fix-uninitialized-variable.patch queue-4.8/usb-cdc-acm-fix-tiocmiwait.patch