The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] fbdev: Prevent null-ptr-deref in fb_videomode_to_var
@ 2025-04-28 15:34 Murad Masimov
  2025-04-28 15:34 ` [PATCH 1/2] fbdev: Fix do_register_framebuffer to prevent " Murad Masimov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Murad Masimov @ 2025-04-28 15:34 UTC (permalink / raw)
  To: Simona Vetter
  Cc: Helge Deller, Murad Masimov, Thomas Weißschuh, linux-fbdev,
	dri-devel, linux-kernel, lvc-project

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-29  8:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-28 15:34 [PATCH 0/2] fbdev: Prevent null-ptr-deref in fb_videomode_to_var Murad Masimov
2025-04-28 15:34 ` [PATCH 1/2] fbdev: Fix do_register_framebuffer to prevent " Murad Masimov
2025-04-28 15:34 ` [PATCH 2/2] fbdev: Fix fb_ser_var " Murad Masimov
2025-05-29  8:19 ` [PATCH 0/2] fbdev: Prevent " Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox