Bluetooth: hidp: buffer overflow in hidp_process_report
CVE-2018-9363 The buffer length is unsigned at all layers, but gets cast to int and checked in hidp_process_report and can lead to a buffer overflow. Switch len parameter to unsigned int to resolve issue. This affects 3.18 and newer kernels. Signed-off-by:Mark Salyzyn <salyzyn@android.com> Fixes: a4b1b587 ("HID: Bluetooth: hidp: make sure input buffers are big enough") Cc: Marcel Holtmann <marcel@holtmann.org> Cc: Johan Hedberg <johan.hedberg@gmail.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Kees Cook <keescook@chromium.org> Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com> Cc: linux-bluetooth@vger.kernel.org Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: security@kernel.org Cc: kernel-team@android.com Acked-by:
Kees Cook <keescook@chromium.org> Signed-off-by:
Marcel Holtmann <marcel@holtmann.org>
Loading
-
mentioned in commit 7827df0f
-
mentioned in commit adba817f
-
mentioned in commit 9a92bda6
-
mentioned in commit 6171c703
-
mentioned in commit 5626aa2b
-
mentioned in commit 0734e935
-
mentioned in commit cb08cc23
-
mentioned in commit 58bfceb0
-
mentioned in commit 1241e6c7
-
mentioned in commit 3154b3f0
-
mentioned in commit 8a67b428
Please sign in to comment