Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2024E4430 for ; Mon, 27 Jan 2025 12:51:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737982318; cv=none; b=MGda20rumBdez5WeZoa0YcxdwhhQ7jSf2RYZPqqjsmkBKN7cD8piusMqU8gp9v8I6uO2/jS5hEadasRfeyT9oHE9geYCo5HrtikKrMAlubnOcgGI8KXlFHbet2SHZ56UEDYSjfHbDng1y7RPQ0R/kGmCO145XeZbN3PIvWZO6LA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737982318; c=relaxed/simple; bh=psIa2NomOO110QM3igDaE9hjxCwbWIGS+XHFpKNFVrI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=otam0DfZY2147H5M+p2mpLw3x040xBfeslMLmGP69r0I2wixH7vYDL7tSls4KBA3f/Z2idFvsrioA52zsgm2qpueatPopKaFSGXIR1s1C+MLjBEHpmL0sYVIgLH0cnkyt8+cXeS7Z43HI7rPyHSgW0yzwNKDdrYBYCCT5+pmMXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aDGhyD7k; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aDGhyD7k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E264C4CED2; Mon, 27 Jan 2025 12:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1737982317; bh=psIa2NomOO110QM3igDaE9hjxCwbWIGS+XHFpKNFVrI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aDGhyD7kCNf/TEaONH/ogNYmlSGjEserwqFreqvE2prkWSqrSqYE3/ZhpKyuKN1jO IwjbZU7lwGqxbLas10gd3Eca9gKpbjZJb+369BkjpStUwbFlk8PLyXZ03TQm5UuqQ+ ietWBQsMJf9klciq4BMaIc/TOHEwdUpdlinTmH7Q= Date: Mon, 27 Jan 2025 13:51:54 +0100 From: Greg KH To: Zicheng Qu Cc: linux-cve-announce@vger.kernel.org, tanghui20@huawei.com, zhangqiao22@huawei.com, judy.chenhui@huawei.com Subject: Re: CVE-2021-47341: KVM: mmio: Fix use-after-free Read in kvm_vm_ioctl_unregister_coalesced_mmio Message-ID: <2025012746-rebel-clanking-3f0e@gregkh> References: <2024052137-CVE-2021-47341-f4e9@gregkh> <20250127090028.3183090-1-quzicheng@huawei.com> Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250127090028.3183090-1-quzicheng@huawei.com> On Mon, Jan 27, 2025 at 09:00:28AM +0000, Zicheng Qu wrote: > Hi, > > I am submitting a request to cancel the CVE-2021-47341 > (https://lore.kernel.org/all/2024052137-CVE-2021-47341-f4e9@gregkh/). > After reviewing the relevant code, I have identified that the described > use-after-free (UAF) issue does not exist. Below is a detailed analysis: > > Issue Description: > The CVE claims that `kvm_vm_ioctl_unregister_coalesced_mmio()` can lead to > a UAF when `kvm_io_bus_unregister_dev()` returns `-ENOMEM`, supposedly > freeing `struct kvm_coalesced_mmio_dev *dev`. A second call to > `kvm_iodevice_destructor()` would then access freed memory. The CVE also claims that you can trigger a BUG: callback, due to a KASAN use-after-free warning which will reboot or crash your machine, right? So because of that, this was issued a CVE. If that use-after-free is not correct, why is KASAN triggered by it? Is that a bug in KASAN in producing a false-positive? And what about systems that run with KASAN enabled, will the BUG trigger not hit them as well? thanks, greg k-h