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 14DF8144D02 for ; Tue, 21 May 2024 15:35:56 +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=1716305756; cv=none; b=JhDhd/qy6VGeHFO6QB8I1YVA5VFENv7i9nHOYokno+hJEGSAsOd0yeb2CHWABYD983irVhOZCxkaXib/aLNEgzziurJW6wr1nhCQ3GqI6sy/60z96TTJXCEnNpyjfWTMiqNYuyArnj6R93bVikacOEkxR/7gvDNHuOHDvFed390= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305756; c=relaxed/simple; bh=QsBStWQG6gGa+gpIG72vIb3GS95wKJ0cX++yQi9an0E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YL6odjl1keWQhfjgu+sW6D6esB56ohFs1hq7UcN+iFLuySOk9iI2F7a27iA838krPCtysX8GgrNKXRPxndkKe2Oq+3M4nb4b69TWugMv1TTAJXPgJwckgRRW8IoYS/F/dFFVjcpDhQZ7fO+l3926DDNXgaxo0YtfvLN1rBPDerI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j1kmBkCv; 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="j1kmBkCv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B8AAC2BD11; Tue, 21 May 2024 15:35:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305755; bh=QsBStWQG6gGa+gpIG72vIb3GS95wKJ0cX++yQi9an0E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=j1kmBkCvAMb8reuQw+BWMZ12Am/YjKZyVlZg+V5zhYDfB0BFU4Uztt5MgGeJ123ld fvzNZ2ocp0qmzIze0k5TUXk/QZwP3IXjIeZx90NZcpZ+jLh94sMnn0UJNFMBjW8A36 cciMbxHFsx7E+7q51OAXQlEWiAAtBKPr6OJQy40g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52795: vhost-vdpa: fix use after free in vhost_vdpa_probe() Date: Tue, 21 May 2024 17:31:31 +0200 Message-ID: <2024052157-CVE-2023-52795-4811@gregkh> X-Mailer: git-send-email 2.45.1 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=2154; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QsBStWQG6gGa+gpIG72vIb3GS95wKJ0cX++yQi9an0E=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++wzf/mThKWQIsnh7VimspKC34IjS41nLxFrC274ki XWYv1fsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlceMcwz3aR+8aEaTNucX6O ZJ1VyTst4b+kAMOCucuYxQKvB9tEzNrrZPlJlveLscZaAA== 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: vhost-vdpa: fix use after free in vhost_vdpa_probe() The put_device() calls vhost_vdpa_release_dev() which calls ida_simple_remove() and frees "v". So this call to ida_simple_remove() is a use after free and a double free. The Linux kernel CVE team has assigned CVE-2023-52795 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit ebe6a354fa7e and fixed in 6.1.64 with commit c0f8b8fb7df9 Issue introduced in 6.0 with commit ebe6a354fa7e and fixed in 6.5.13 with commit ae8ea4e20067 Issue introduced in 6.0 with commit ebe6a354fa7e and fixed in 6.6.3 with commit bf04132cd64c Issue introduced in 6.0 with commit ebe6a354fa7e and fixed in 6.7 with commit e07754e0a1ea Please see https://www.kernel.org for 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-2023-52795 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: drivers/vhost/vdpa.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/c0f8b8fb7df9d1a38652eb5aa817afccd3c56111 https://git.kernel.org/stable/c/ae8ea4e200675a940c365b496ef8e3fb4123601c https://git.kernel.org/stable/c/bf04132cd64ccde4e9e9765d489c83fe83c09b7f https://git.kernel.org/stable/c/e07754e0a1ea2d63fb29574253d1fd7405607343