From: Greg Kroah-Hartman Date: Tue, 23 May 2017 19:34:16 +0000 (+0200) Subject: 3.18-stable patches X-Git-Tag: v3.18.55~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6482dc717b836190f6aa317bf292d5310a851491;p=thirdparty%2Fkernel%2Fstable-queue.git 3.18-stable patches added patches: usb-misc-legousbtower-fix-memory-leak.patch --- diff --git a/queue-3.18/series b/queue-3.18/series index 0d7edce63d4..968c8b02701 100644 --- a/queue-3.18/series +++ b/queue-3.18/series @@ -57,3 +57,4 @@ pci-fix-pci_mmap_fits-for-have_pci_resource_to_user-platforms.patch pci-freeze-pme-scan-before-suspending-devices.patch nfsd-check-for-oversized-nfsv2-v3-arguments.patch drivers-char-mem-check-for-address-space-wraparound-with-mmap.patch +usb-misc-legousbtower-fix-memory-leak.patch diff --git a/queue-3.18/usb-misc-legousbtower-fix-memory-leak.patch b/queue-3.18/usb-misc-legousbtower-fix-memory-leak.patch new file mode 100644 index 00000000000..ea895ae532c --- /dev/null +++ b/queue-3.18/usb-misc-legousbtower-fix-memory-leak.patch @@ -0,0 +1,30 @@ +From 0bd193d62b4270a2a7a09da43ad1034c7ca5b3d3 Mon Sep 17 00:00:00 2001 +From: Maksim Salau +Date: Sat, 13 May 2017 23:49:26 +0300 +Subject: usb: misc: legousbtower: Fix memory leak + +From: Maksim Salau + +commit 0bd193d62b4270a2a7a09da43ad1034c7ca5b3d3 upstream. + +get_version_reply is not freed if function returns with success. + +Fixes: 942a48730faf ("usb: misc: legousbtower: Fix buffers on stack") +Reported-by: Heikki Krogerus +Signed-off-by: Maksim Salau +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/usb/misc/legousbtower.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/usb/misc/legousbtower.c ++++ b/drivers/usb/misc/legousbtower.c +@@ -954,6 +954,7 @@ static int tower_probe (struct usb_inter + + + exit: ++ kfree(get_version_reply); + return retval; + + error: