From mboxrd@z Thu Jan 1 00:00:00 1970 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 8DA846BB5E for ; Tue, 21 May 2024 15:36:16 +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=1716305776; cv=none; b=XXrxf+lz9O0ZIn9trS0VKYous0gd3uph1cB8Ga19aT++SfwwQ2TejQa62IRJ5Co0MJDKJ/YgpIlTzU6GJJ14ZdkqmT+slnIDS6ufDzOshVZkckDKilezUgfMoqOcG2LcfcUauY826/Qe3hb4RU1ovP6r3pFQXa64qNJLCVpw3WE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305776; c=relaxed/simple; bh=sVL63X9XxMU3A0R/tVy5tsSQ1XPjR3UXbIERyXuMEY0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TTS4secVFjMqhAEJB78u6Fw4rroMiqWATy7pu7ohpNRZA0d5I7QaVnAIVjtsYV//DuKqxnukNv/e28z5dqk7dK9UjHc44KtcDmePUQet4TwIoEOTsQUZCU7Plvpx4z3gObsrnYlz2cZU/jsZzPsmyHw8xEVaTbRnCBAR7aT3K68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W1uH/MGR; 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="W1uH/MGR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B953DC2BD11; Tue, 21 May 2024 15:36:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305776; bh=sVL63X9XxMU3A0R/tVy5tsSQ1XPjR3UXbIERyXuMEY0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=W1uH/MGR0FhGsz8t2/aHR3Unfy7tv/lG643r7UxE+Zi4ld7cDGnKvqQVydEu+jhU9 8dEBFQ7S+44HoGtgv6NbJfm/DIxpM9vE3SQHB38+lZsjqjYBfuNJyC5ehWeEqfbMwW LChAjJx8sfodtfdyRl9KpjXz9layoBztYwxD2le4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52801: iommufd: Fix missing update of domains_itree after splitting iopt_area Date: Tue, 21 May 2024 17:31:37 +0200 Message-ID: <2024052159-CVE-2023-52801-b287@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=2053; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sVL63X9XxMU3A0R/tVy5tsSQ1XPjR3UXbIERyXuMEY0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++4znanz8Uv9siu7l2StY3Bf0bfuq+EpMTvr/4QVvY kQXFnLO6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJqJkxLJglrWortEXRb69E wE+LrF6PqVHqrxgWTOXRWnvj5JaKv7J8tb/urp/g7q7hDwA= 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: iommufd: Fix missing update of domains_itree after splitting iopt_area In iopt_area_split(), if the original iopt_area has filled a domain and is linked to domains_itree, pages_nodes have to be properly reinserted. Otherwise the domains_itree becomes corrupted and we will UAF. The Linux kernel CVE team has assigned CVE-2023-52801 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 51fe6141f0f6 and fixed in 6.5.13 with commit 836db2e7e456 Issue introduced in 6.2 with commit 51fe6141f0f6 and fixed in 6.6.3 with commit fcb32111f01d Issue introduced in 6.2 with commit 51fe6141f0f6 and fixed in 6.7 with commit e7250ab7ca49 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-52801 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/iommu/iommufd/io_pagetable.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/836db2e7e4565d8218923b3552304a1637e2f28d https://git.kernel.org/stable/c/fcb32111f01ddf3cbd04644cde1773428e31de6a https://git.kernel.org/stable/c/e7250ab7ca4998fe026f2149805b03e09dc32498