From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Cc: cve@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: CVE-2024-42082: xdp: Remove WARN() from __xdp_reg_mem_model()
Date: Tue, 6 Aug 2024 10:55:00 +0200 [thread overview]
Message-ID: <2024080634-electable-foyer-ad3c@gregkh> (raw)
In-Reply-To: <25rzouzv3bf4opsbgcbwjn3ycip5s75awl5muu5fzcibwjnv4b@4khlyuarrnl5>
On Tue, Aug 06, 2024 at 04:48:56PM +0800, Shung-Hsi Yu wrote:
> On Mon, Jul 29, 2024 at 05:53:11PM GMT, Greg Kroah-Hartman wrote:
> > Description
> > ===========
> >
> > In the Linux kernel, the following vulnerability has been resolved:
> >
> > xdp: Remove WARN() from __xdp_reg_mem_model()
> >
> > syzkaller reports a warning in __xdp_reg_mem_model().
> >
> > The warning occurs only if __mem_id_init_hash_table() returns an error. It
> > returns the error in two cases:
> >
> > 1. memory allocation fails;
> > 2. rhashtable_init() fails when some fields of rhashtable_params
> > struct are not initialized properly.
> >
> > The second case cannot happen since there is a static const rhashtable_params
> > struct with valid fields. So, warning is only triggered when there is a
> > problem with memory allocation.
> >
> > Thus, there is no sense in using WARN() to handle this error and it can be
> > safely removed.
> [...]
>
> The mention fix (below) simply removed a WARN_ON(1) call, so I believe
> there's no security implication here.
If memory allocation fails, and panic-on-warn is enabled, this will
cause the machine to reboot, hence the need for a CVE allocation.
thanks,
greg k-h
next prev parent reply other threads:[~2024-08-06 8:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2024072956-CVE-2024-42082-8411@gregkh>
2024-08-06 8:48 ` Shung-Hsi Yu
2024-08-06 8:55 ` Greg Kroah-Hartman [this message]
2024-08-06 12:50 ` Shung-Hsi Yu
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=2024080634-electable-foyer-ad3c@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=cve@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shung-hsi.yu@suse.com \
/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®