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 75CB016FF51 for ; Thu, 29 Feb 2024 22:38:42 +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=1709246322; cv=none; b=NiuHb4kwqf3DBJzko/+NsBk+bVsHGdIlhBLZTrgufe2+Mu+y/Lq4w0g99iwKmwUXnb8cpX8OWclQoRVjDrIIEjhGXEYnk1c5kCEx932AnmvqSQvZJbhUzeds9x0+bWaIZR5wh570GzKWwm3NMH40+++o4g7DeRdrFF6xgXh2GdU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709246322; c=relaxed/simple; bh=CEdVu1sigzQ+fGXxGsu8YU7WS9IGpOn4YwImNUINuaQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k2TPUWNZvuhttysMjbBieZcAAZgbgv/r9LGHtxAuqzrS8edhRGsI1feQ1HCIpf2asevZ2S3vyQ0glRzh7ZSpnWz6mzbiV2HKkfwP27BtfROtOhCRPw5LttNUDIY0bFx12hHhihCoAx20w9ScxpxYqnCiUAQUfuGEwoDbQjmaqos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SvQODgF5; 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="SvQODgF5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EE4AC433C7; Thu, 29 Feb 2024 22:38:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709246322; bh=CEdVu1sigzQ+fGXxGsu8YU7WS9IGpOn4YwImNUINuaQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SvQODgF5hxjzrPAiudmY7TpWGN3mTd4zoKc6W3kWslceC9E5peIieO6Zht236IChK dcGlVSLeT1UAf9KVlk8ujGxdoncOJDA1JtIweHBZV/srwdHMk1o1EY9mp2ZaWS0xK+ R6Cs1FJ9N8j7Ma/xXu9H8wBoqAQ2XX5cTjP1hZrY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47061: KVM: Destroy I/O bus devices on unregister failure _after_ sync'ing SRCU Date: Thu, 29 Feb 2024 23:37:58 +0100 Message-ID: <2024022952-CVE-2021-47061-6fea@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2333; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CEdVu1sigzQ+fGXxGsu8YU7WS9IGpOn4YwImNUINuaQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDKkP2R2tz+marJ/5uU3t1+8Nm8Vz739UqFRi0xCceuCOs cvWHelHOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAirr8Y5hdKbhEw+6F7/Vlb WOrTCTpifnY70hkW9DR8vrr7vPvRco3XZQf33XqoNFlGFAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: KVM: Destroy I/O bus devices on unregister failure _after_ sync'ing SRCU If allocating a new instance of an I/O bus fails when unregistering a device, wait to destroy the device until after all readers are guaranteed to see the new null bus. Destroying devices before the bus is nullified could lead to use-after-free since readers expect the devices on their reference of the bus to remain valid. The Linux kernel CVE team has assigned CVE-2021-47061 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit f65886606c2d and fixed in 5.10.37 with commit 03c6cccedd39 Issue introduced in 5.9 with commit f65886606c2d and fixed in 5.11.21 with commit 4e899ca84863 Issue introduced in 5.9 with commit f65886606c2d and fixed in 5.12.4 with commit 30f46c699373 Issue introduced in 5.9 with commit f65886606c2d and fixed in 5.13 with commit 2ee3757424be Please see https://www.kernel.org or a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2021-47061 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: virt/kvm/kvm_main.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/03c6cccedd3913006744faa252a4da5145299343 https://git.kernel.org/stable/c/4e899ca848636b37e9ac124bc1723862a7d7d927 https://git.kernel.org/stable/c/30f46c6993731efb2a690c9197c0fd9ed425da2d https://git.kernel.org/stable/c/2ee3757424be7c1cd1d0bbfa6db29a7edd82a250