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 72F793346A1 for ; Wed, 24 Dec 2025 12:27:37 +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=1766579257; cv=none; b=nsuN4wrATJ7gv2/05vhyksdM1DGYhQHGhWnVV9KvvlBqI798zLAMeZaJkehUtbO6Ebr5yWI7W0I8KmEY+pGrEt0Ozf0zmNjiViwjS290+29AzV7WyyOxReuuQaaCFJrQ9HqvOPKYcXFGE7NoNoik+sZRjv17wG6hvyO5YOv4OCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579257; c=relaxed/simple; bh=EDNUZ8rWxGmf9l9U/l26YKQkx48x1V1+218QuJ+z8xA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GWEGK0abOqdL7Czd8JSLIYjHXNwWrCGonPfoMS0UiEcmIi8QaRx7gNMZaUvvz6Zpdt6SO1eg2RMqlTITyhiXYdb4mgwrsIX5/9ZS7Dr+BOUdjgFzeT8s4TkfXOSE+soKtk1JAjbMm1quDfFhhC+ewIeAHu/MhBfymxhqc6k/Csk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=02HUc8cr; 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="02HUc8cr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D43CAC4CEFB; Wed, 24 Dec 2025 12:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579257; bh=EDNUZ8rWxGmf9l9U/l26YKQkx48x1V1+218QuJ+z8xA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=02HUc8crfAM+NJNFr7o8QMUa38Dbx1rhnrJ0uON0s9zg7W8PsEqepFij/h22LbP81 pRohlL9XvsTWUWSDuV9KwbGk+LH55MYZUkKPqSkn0sTisIG76vrkKrNZeS0GkQQsx6 GlZOOa6oHR77NzQC/gbpftjzIQP8wEFka7ZWa4e4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54043: iommufd: Do not add the same hwpt to the ioas->hwpt_list twice Date: Wed, 24 Dec 2025 13:26:36 +0100 Message-ID: <2025122422-CVE-2023-54043-16c8@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2184; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=59hI7qOZlKgL3N1i+IBGVn5otMf9bkCuEkrtPbgNfhI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnet9/9dDs+3W71nzN/wieFftrRePNksuxmh39RVi0ru tW0Zq9j7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJvFJkmJ+0uNlKp5tz7oT4 dNsFgXp7e2fNzGNYcG5JS1uNk3J9u0JY8cfMb5eMww+9AAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: iommufd: Do not add the same hwpt to the ioas->hwpt_list twice The hwpt is added to the hwpt_list only during its creation, it is never added again. This hunk is some missed leftover from rework. Adding it twice will corrupt the linked list in some cases. It effects HWPT specific attachment, which is something the test suite cannot cover until we can create a legitimate struct device with a non-system iommu "driver" (ie we need the bus removed from the iommu code) The Linux kernel CVE team has assigned CVE-2023-54043 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit e8d57210035b6377d424ba964961892d01127cf6 and fixed in 6.2.3 with commit c44adefdcf472f946f0632f4e0ddcbf3e00b8516 Issue introduced in 6.2 with commit e8d57210035b6377d424ba964961892d01127cf6 and fixed in 6.3 with commit b4ff830eca097df51af10a9be29e8cc817327919 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-54043 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/device.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/c44adefdcf472f946f0632f4e0ddcbf3e00b8516 https://git.kernel.org/stable/c/b4ff830eca097df51af10a9be29e8cc817327919