]> www.infradead.org Git - users/jedix/linux-maple.git/commit
si2157: Bounds check firmware
authorLaura Abbott <labbott@fedoraproject.org>
Wed, 30 Sep 2015 00:10:10 +0000 (21:10 -0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 03:28:16 +0000 (19:28 -0800)
commite9aeeb4203215b0dd3ad046b90c57687d1764049
treee6f0f7a637ffce033c4074539190305d1591a8b7
parent70c3abed2b7baf50d74d896428c794cd43095ad2
si2157: Bounds check firmware

Orabug: 22623808

commit a828d72df216c36e9c40b6c24dc4b17b6f7b5a76 upstream.

When reading the firmware and sending commands, the length
must be bounds checked to avoid overrunning the size of the command
buffer and smashing the stack if the firmware is not in the
expected format. Add the proper check.

Signed-off-by: Laura Abbott <labbott@fedoraproject.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f7832ff91dd51ad2a43bd37846f9cef15b8c03e6)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/media/tuners/si2157.c