fbdev: sbuslib: integer overflow in sbusfb_ioctl_helper()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 8 Oct 2018 10:57:36 +0000 (12:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 08:53:41 +0000 (09:53 +0100)
commit8077c98ce4c154d2f4dfcabb775daab4f8a3f421
tree19156d3936ac346827a71db1d37a3c594f15b411
parente6bb4dca56e88a78a344c4a4888992874da3d2a1
fbdev: sbuslib: integer overflow in sbusfb_ioctl_helper()

[ Upstream commit e5017716adb8aa5c01c52386c1b7470101ffe9c5 ]

The "index + count" addition can overflow.  Both come directly from the
user.  This bug leads to an information leak.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Peter Malone <peter.malone@gmail.com>
Cc: Philippe Ombredanne <pombredanne@nexb.com>
Cc: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/sbuslib.c