From: Johan Hovold Date: Wed, 27 Aug 2014 09:55:19 +0000 (+0200) Subject: USB: serial: fix potential heap buffer overflow X-Git-Tag: omap-fixes-against-v3.17-rc3~24^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5654699fb38512bdbfc0f892ce54fce75bdc2bab;p=pandora-kernel.git USB: serial: fix potential heap buffer overflow Make sure to verify the number of ports requested by subdriver to avoid writing beyond the end of fixed-size array in interface data. The current usb-serial implementation is limited to eight ports per interface but failed to verify that the number of ports requested by a subdriver (which could have been determined from device descriptors) did not exceed this limit. Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed