[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202307110925.CBAF286C0A@keescook>
Date: Tue, 11 Jul 2023 09:26:38 -0700
From: Kees Cook <keescook@...omium.org>
To: Sean Christopherson <seanjc@...gle.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Zheng Zhang <zheng.zhang@...il.ucr.edu>,
linux-hardening@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
Matthew Wilcox <willy@...radead.org>
Subject: Re: [BUG]: bad usercopy in kvm_stats_read in mm/usercopy.c
On Tue, Jul 11, 2023 at 09:15:00AM -0700, Sean Christopherson wrote:
> On Mon, Jul 10, 2023, Andrew Morton wrote:
> > On Sun, 9 Jul 2023 14:32:09 -0700 Zheng Zhang <zheng.zhang@...il.ucr.edu> wrote:
> >
> > > Kees, Andrew, and to whom it may concern:
> > >
> > > Hello! We have found a bug in the Linux kernel version 6.2.0 by syzkaller
> > > with our own templates. It also produces a POC.
> > > Attached is the report, log, and reproducers generated by syzkaller
> > > Please let me know if there is any additional information that I can
> > > provide to help debug this issue.
> > > Thanks!
> >
> > Let's cc the kvm mailing list.
> >
> > Original email is at
> > https://lkml.kernel.org/r/CAC_GQSr3xzZaeZt85k_RCBd5kfiOve8qXo7a81Cq53LuVQ5r=Q@mail.gmail.com
>
> Yeaaaah. We failed kernel programming 101. KVM installs file descriptors to
> let userspace read VM and vCPU stats, but doesn't grab a reference to the VM to
> ensure the VM and its vCPUs are kept alive until the stats fds are closed. I'll
> send a patch.
Thanks! Another victory for hardened usercopy. :)
--
Kees Cook
Powered by blists - more mailing lists