]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write
authorHyunwoo Kim <imv4bel@gmail.com>
Mon, 20 Jun 2022 14:17:46 +0000 (07:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:03:59 +0000 (11:03 +0200)
commit28673e64df7ec929c08656c46c20a850df2d9f88
treed4c70e6c6fd41cca3f917ecca836a6a3c7da9d51
parent2c7cfc2051f72a38850ff512c8fb892008613b21
video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write

[ Upstream commit 47f2f78992e546017ee3de9c8508992d7c95a6ca ]

In pxa3xx_gcu_write, a count parameter of type size_t is passed to words of
type int.  Then, copy_from_user() may cause a heap overflow because it is used
as the third argument of copy_from_user().

Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/pxa3xx-gcu.c