diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-29 17:41:55 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2018-05-02 09:37:19 +0200 |
commit | 4842ed5bfcb9daf6660537d70503c18d38dbdbb8 (patch) | |
tree | 55a7757f15b2ced167975ae0c8306a032392d4bd /drivers/acpi/acpi_amba.c | |
parent | USB: serial: option: adding support for ublox R410M (diff) | |
download | linux-4842ed5bfcb9daf6660537d70503c18d38dbdbb8.tar.xz linux-4842ed5bfcb9daf6660537d70503c18d38dbdbb8.zip |
USB: serial: visor: handle potential invalid device configuration
If we get an invalid device configuration from a palm 3 type device, we
might incorrectly parse things, and we have the potential to crash in
"interesting" ways.
Fix this up by verifying the size of the configuration passed to us by
the device, and only if it is correct, will we handle it.
Note that this also fixes an information leak of slab data.
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[ johan: add comment about the info leak ]
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/acpi/acpi_amba.c')
0 files changed, 0 insertions, 0 deletions