These patches fix the bug that leads to a null-ptr-deref if
fb_videomode_to_var() fails to allocate memory. This bug is present in
do_register_framebuffer() and fb_ser_var().

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

Murad Masimov (2):
  fbdev: Fix do_register_framebuffer to prevent null-ptr-deref in
    fb_videomode_to_var
  fbdev: Fix fb_ser_var to prevent null-ptr-deref in fb_videomode_to_var

 drivers/video/fbdev/core/fbmem.c | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

--
2.39.2

Reply via email to