A denial of service vulnerability was found in the WhiteHEAT USB Serial Driver (whiteheat_attach function in drivers/usb/serial/whiteheat.c). In the driver, the COMMAND_PORT variable was hard coded and set to 4 (5th element). The driver assumed that the number of ports would always be 5 and used port number 5 as the command port. However, when using a USB device in which the number of ports was set to a number less than 5 (for example, 3), the driver triggered a kernel NULL-pointer dereference. A non-privileged attacker could use this flaw to panic the host.
A vulnerability in WhiteHEAT USB Serial Driver in "whiteheat_attach" function in drivers/usb/serial/whiteheat.c was found. In the driver, the “COMMAND_PORT” variable is hard coded and is set to “4” (5th element). The driver assumes that the number of ports will always be 5 and takes the port number 5 as the command port. But using a specially made USB device in which the number of ports is set to a number less than 5 (e.g. 3), it triggers kernel NULL pointer dereference causing the system to freeze.
Disclosure post (including crash report logs):
This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 5, 6, 7 and MRG-2.
This has been rated as having Low security impact and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.
Created kernel tracking bugs for this issue:
Affects: fedora-all [bug 1265612]
kernel-4.2.2-300.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
kernel-4.1.10-200.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
kernel-4.1.10-100.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
Disclosure post: http://seclists.org/oss-sec/2015/q3/629
A kernel list message: http://marc.info/?l=linux-usb&m=144303376328355
An upstream patch: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=cbb4be652d374f64661137756b8f357a1827d6a4
This issue was originally assigned the CVE id CVE-2015-5275. However, a typo was made when handling the id and the reporter's advisory incorrectly used CVE-2015-5257 (the last two digits were swapped):
The CVE-2015-5257 was assigned to an issue in Apache Cordova Android:
However, because of wide use of CVE-2015-5257 for the USB WhiteHEAT driver, MITRE CNA decided to keep CVE-2015-5257 assigned to that issue, reject CVE-2015-5275 as its duplicate, and assign a new CVE id CVE-2015-8320 for the Apache Cordova Android issue: