From: Murad Masimov <m.masimov@mt-integration.ru>
To: Simona Vetter <simona@ffwll.ch>
Cc: "Helge Deller" <deller@gmx.de>,
"Murad Masimov" <m.masimov@mt-integration.ru>,
"Thomas Weißschuh" <linux@weissschuh.net>,
linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org
Subject: [PATCH 0/2] fbdev: Prevent null-ptr-deref in fb_videomode_to_var
Date: Mon, 28 Apr 2025 18:34:05 +0300 [thread overview]
Message-ID: <20250428153407.3743416-1-m.masimov@mt-integration.ru> (raw)
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
next reply other threads:[~2025-04-28 15:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-28 15:34 Murad Masimov [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250428153407.3743416-1-m.masimov@mt-integration.ru \
--to=m.masimov@mt-integration.ru \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=lvc-project@linuxtesting.org \
--cc=simona@ffwll.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®