aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJames Patrick-Evans <james@jmp-e.com>2016-07-15 16:40:45 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2016-07-16 06:15:40 +0900
commitaa93d1fee85c890a34f2510a310e55ee76a27848 (patch)
tree9b73ec6447103649523c514c537d3c10d62974a2 /fs
parentEDAC, sb_edac: Fix Knights Landing (diff)
downloadlinux-dev-aa93d1fee85c890a34f2510a310e55ee76a27848.tar.xz
linux-dev-aa93d1fee85c890a34f2510a310e55ee76a27848.zip
media: fix airspy usb probe error path
Fix a memory leak on probe error of the airspy usb device driver. The problem is triggered when more than 64 usb devices register with v4l2 of type VFL_TYPE_SDR or VFL_TYPE_SUBDEV. The memory leak is caused by the probe function of the airspy driver mishandeling errors and not freeing the corresponding control structures when an error occours registering the device to v4l2 core. A badusb device can emulate 64 of these devices, and then through continual emulated connect/disconnect of the 65th device, cause the kernel to run out of RAM and crash the kernel, thus causing a local DOS vulnerability. Fixes CVE-2016-5400 Signed-off-by: James Patrick-Evans <james@jmp-e.com> Reviewed-by: Kees Cook <keescook@chromium.org> Cc: stable@vger.kernel.org # 3.17+ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions