video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write
mainline inclusion from mainline-5.19-rc4 commit a09d2d00 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I5PRMO CVE: CVE-2022-39842 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7 -------------------------------- 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: NHyunwoo Kim <imv4bel@gmail.com> Signed-off-by: NHelge Deller <deller@gmx.de> Signed-off-by: Nhuhai <huhai@kylinos.cn>
Showing
想要评论请 注册 或 登录