[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACycT3vaeULPQ8qcz+-uOYxLcKN5zXJA7hs95CjBL6OjDCS7tA@mail.gmail.com>
Date: Mon, 29 Aug 2022 18:50:08 +0800
From: Yongji Xie <xieyongji@...edance.com>
To: Maxime Coquelin <maxime.coquelin@...hat.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
virtualization <virtualization@...ts.linux-foundation.org>,
Eli Cohen <elic@...dia.com>, guanjun@...ux.alibaba.com,
Parav Pandit <parav@...dia.com>, gautam.dawar@...inx.com,
Dan Carpenter <dan.carpenter@...cle.com>,
Jason Wang <jasowang@...hat.com>,
"Michael S. Tsirkin" <mst@...hat.com>, stable@...r.kernel.org
Subject: Re: [PATCH v2] vduse: prevent uninitialized memory accesses
On Mon, Aug 29, 2022 at 3:34 PM Maxime Coquelin
<maxime.coquelin@...hat.com> wrote:
>
> If the VDUSE application provides a smaller config space
> than the driver expects, the driver may use uninitialized
> memory from the stack.
>
> This patch prevents it by initializing the buffer passed by
> the driver to store the config value.
>
> This fix addresses CVE-2022-2308.
>
> Cc: xieyongji@...edance.com
> Cc: stable@...r.kernel.org # v5.15+
> Fixes: c8a6153b6c59 ("vduse: Introduce VDUSE - vDPA Device in Userspace")
>
> Acked-by: Jason Wang <jasowang@...hat.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin@...hat.com>
Reviewed-by: Xie Yongji <xieyongji@...edance.com>
Thanks,
Yongji
Powered by blists - more mailing lists