mbox series

[0/2] fbdev: Prevent null-ptr-deref in fb_videomode_to_var

Message ID 20250428153407.3743416-1-m.masimov@mt-integration.ru
Headers show
Series fbdev: Prevent null-ptr-deref in fb_videomode_to_var | expand

Message

Murad Masimov April 28, 2025, 3:34 p.m. UTC
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