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-50063: bpf: Prevent tail call between progs attached to different hooks
Date: Thu, 24 Oct 2024 11:55:46 +0200 [thread overview]
Message-ID: <2024102419-deserving-veneering-6641@gregkh> (raw)
In-Reply-To: <phyhoab337c2vgpfgtrjru2so6luvmymfrugdazacz3sk4to7n@nutpfnn4ivdx>
On Thu, Oct 24, 2024 at 12:04:45PM +0800, Shung-Hsi Yu wrote:
> On Mon, Oct 21, 2024 at 09:40:04PM GMT, Greg Kroah-Hartman wrote:
> > Description
> > ===========
> >
> > In the Linux kernel, the following vulnerability has been resolved:
> >
> > bpf: Prevent tail call between progs attached to different hooks
> >
> > bpf progs can be attached to kernel functions, and the attached functions
> > can take different parameters or return different return values. If
> > prog attached to one kernel function tail calls prog attached to another
> > kernel function, the ctx access or return value verification could be
> > bypassed.
> ...
> > This patch adds restriction for tail call to prevent such bypasses.
> >
> > The Linux kernel CVE team has assigned CVE-2024-50063 to this issue.
> >
> >
> > Affected and fixed versions
> > ===========================
>
> I do not know that exact commit that introduced the issue, but given
> that the fix addresses the following BPF program types:
> - BPF_PROG_TYPE_TRACING (v5.5)
> - BPF_PROG_TYPE_EXT (v5.6)
> - BPF_PROG_TYPE_STRUCT_OPS (v5.6)
> - BPF_PROG_TYPE_LSM (v5.7)
>
> The earliest affected version possible should be v5.5.
So what commit id should we use? Can you send a patch adding the
".vulnerable" file to the vulns.git repo for us to mark this properly?
thanks,
greg k-h
next prev parent reply other threads:[~2024-10-24 9:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2024102136-CVE-2024-50063-1a59@gregkh>
2024-10-24 4:04 ` Shung-Hsi Yu
2024-10-24 9:55 ` Greg Kroah-Hartman [this message]
2024-11-08 5:21 ` 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=2024102419-deserving-veneering-6641@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®