From: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
To: Siddh Raman Pant <siddh.raman.pant@oracle.com>
Cc: "edumazet@google.com" <edumazet@google.com>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: CVE-2024-41041: udp: Set SOCK_RCU_FREE earlier in udp_lib_get_port().
Date: Wed, 4 Sep 2024 13:31:13 +0200 [thread overview]
Message-ID: <2024090401-underuse-resale-3eef@gregkh> (raw)
In-Reply-To: <64688590d5cf73d0fd7b536723e399457d23aa8e.camel@oracle.com>
On Wed, Sep 04, 2024 at 11:26:36AM +0000, Siddh Raman Pant wrote:
> On Tue, Sep 03 2024 at 18:28:14 +0530, gregkh@linuxfoundation.org
> wrote:
> > On Tue, Sep 03, 2024 at 02:53:57PM +0200, Eric Dumazet wrote:
> > > On Tue, Sep 3, 2024 at 2:07 PM gregkh@linuxfoundation.org
> > > <gregkh@linuxfoundation.org> wrote:
> > > >
> > > > On Tue, Sep 03, 2024 at 11:56:17AM +0000, Siddh Raman Pant wrote:
> > > > > On Mon, 29 Jul 2024 16:32:36 +0200, Greg Kroah-Hartman wrote:
> > > > > > In the Linux kernel, the following vulnerability has been resolved:
> > > > > >
> > > > > > udp: Set SOCK_RCU_FREE earlier in udp_lib_get_port().
> > > > > >
> > > > > > [...]
> > > > > >
> > > > > > We had the same bug in TCP and fixed it in commit 871019b22d1b ("net:
> > > > > > set SOCK_RCU_FREE before inserting socket into hashtable").
> > > > > >
> > > > > > Let's apply the same fix for UDP.
> > > > > >
> > > > > > [...]
> > > > > >
> > > > > > The Linux kernel CVE team has assigned CVE-2024-41041 to this issue.
> > > > > >
> > > > > >
> > > > > > Affected and fixed versions
> > > > > > ===========================
> > > > > >
> > > > > > Issue introduced in 4.20 with commit 6acc9b432e67 and fixed in 5.4.280 with commit 7a67c4e47626
> > > > > > Issue introduced in 4.20 with commit 6acc9b432e67 and fixed in 5.10.222 with commit 9f965684c57c
> > > > >
> > > > > These versions don't have the TCP fix backported. Please do so.
> > > >
> > > > What fix backported exactly to where? Please be more specific. Better
> > > > yet, please provide working, and tested, backports.
> > >
> > >
> > > commit 871019b22d1bcc9fab2d1feba1b9a564acbb6e99
> > > Author: Stanislav Fomichev <sdf@fomichev.me>
> > > Date: Wed Nov 8 13:13:25 2023 -0800
> > >
> > > net: set SOCK_RCU_FREE before inserting socket into hashtable
> > > ...
> > > Fixes: 6acc9b432e67 ("bpf: Add helper to retrieve socket in BPF")
> > >
> > > It seems 871019b22d1bcc9fab2d1feba1b9a564acbb6e99 has not been pushed
> > > to 5.10 or 5.4 lts
> > >
> > > Stanislav mentioned a WARN_ONCE() being hit, I presume we could push
> > > the patch to 5.10 and 5.4.
> > >
> > > I guess this was skipped because of a merge conflict.
> >
> > Yes, the commit does not apply, we need someone to send a working
> > backport for us to be able to take it.
> >
> > Siddh, can you please do this?
>
> Sure.
>
> I see there are Stable-dep commits too, but the seem unrelated and
> require some commits from another feature patchset. Do I need to
> backport them too?
Do what you think you need to do :)
next prev parent reply other threads:[~2024-09-04 11:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2024072924-CVE-2024-41041-ae0c@gregkh>
2024-09-03 11:56 ` CVE-2024-41041: udp: Set SOCK_RCU_FREE earlier in udp_lib_get_port() Siddh Raman Pant
2024-09-03 12:07 ` gregkh
2024-09-03 12:53 ` Eric Dumazet
2024-09-03 12:58 ` gregkh
2024-09-04 11:26 ` Siddh Raman Pant
2024-09-04 11:31 ` gregkh [this message]
2024-09-04 13:06 ` [PATCH 5.10, 5.4] net: set SOCK_RCU_FREE before inserting socket into hashtable Siddh Raman Pant
2024-09-05 7:43 ` gregkh
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=2024090401-underuse-resale-3eef@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=edumazet@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=siddh.raman.pant@oracle.com \
--cc=stable@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).