Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B8DD43815F1 for ; Thu, 25 Jun 2026 08:44:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377044; cv=none; b=swTiN4aYS9CJouQnRDcFgTS142F7JrmZL9EBsB7+LS2bch+ngcgKYTEkSQvEkQjcsADUHvskfJ3nRuRUvdR6zSav8k65gvhKSwFVQPClUGxxmLcONdABlbzdoRZQqqai6dwIq897zq5tltkxBo2W/RnmMhKabwZDpaY0h3lzDzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377044; c=relaxed/simple; bh=0tBLAnrcWTOjViZt62bI+cojubGLAEJZK37mAFYqq0g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CGPolp3My9n61XNZJ2oFEpN4BMIIUAnwzM0zLy7eOp5Q1y3Tg1TNQczFIC2uUDfLo4E1nqb4VkYddL3XqC+Fsf2qN8trrRldPcn0bs7AkKGwpaS4vzAEZlX89N0FLQS3kjImcYt3l+ElnOZAzGh0V3JB2cK6YsIWGOOKQswL7rA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HeO8TjJ+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HeO8TjJ+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 083041F000E9; Thu, 25 Jun 2026 08:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377043; bh=/vdeZSaVcNEgSBiVB5lmXDpAiWRYAdqdPS9OFkDPNeQ=; h=From:To:Cc:Subject:Date:Reply-To; b=HeO8TjJ+d3i8UqwZtWUVMoA+we+qi6ra0QrB0Qidml6AvC90lHkFYORYuREKUVu1L H4IjROx44JJ4gaVIFztGrg5BqSP2lECK72jUX3D7IMNiV2CK9ky07kExkWMPE3cwBm /5eUaz0gh5NcSYoT2F219l3H+n6RNkvAU+z28/4U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53164: iommu/dma: Do not try to iommu_map a 0 length region in swiotlb Date: Thu, 25 Jun 2026 09:40:12 +0100 Message-ID: <2026062550-CVE-2026-53164-88ad@gregkh> X-Mailer: git-send-email 2.54.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=2757; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sNKAy6pkfMsIoyVA4f6k5F8LQkqK2KxQLWHB1EKBPzQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L8PuiOwTNTp4eb+o/TZH/2cKbE83fTxVKZn0993y6 W3fTUtCOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAioZIMc3jKio8Gau5eHvgx cGanz5vevcWavxgW7Or5c+7e/1reXPcD1b5dzO6fNx+vAAA= 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: iommu/dma: Do not try to iommu_map a 0 length region in swiotlb iommu_dma_iova_link_swiotlb() processes a mapping that is unaligned in three parts, the head, middle and trailer. If the middle is empty because there are no aligned pages it will call down to iommu_map() with a 0 size which the iommupt implementation will fail as illegal. It then tries to do an error unwind and starts from the wrong spot corrupting the mapping so the eventual destruction triggers a WARN_ON. Check for 0 length and avoid mapping and use offset not 0 as the starting point to unlink. This is frequently triggered by using some kinds of thunderbolt NVMe drives that trigger forced SWIOTLB for unaligned memory. NVMe seems to pass in oddly aligned buffers for the passthrough commands from smartctl that hit this condition. The Linux kernel CVE team has assigned CVE-2026-53164 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 433a76207dcf5facc0183acb790f6e8398585258 and fixed in 6.18.36 with commit ab61c990a87d084f5565ee70340543e3a5394697 Issue introduced in 6.16 with commit 433a76207dcf5facc0183acb790f6e8398585258 and fixed in 7.0.13 with commit b16f8d40bac9ced838d24c9842707af9ecae92e2 Issue introduced in 6.16 with commit 433a76207dcf5facc0183acb790f6e8398585258 and fixed in 7.1 with commit 6ec91df8aff77e2e8fe3179c1f3fc15b43a40ba3 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-2026-53164 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/dma-iommu.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/ab61c990a87d084f5565ee70340543e3a5394697 https://git.kernel.org/stable/c/b16f8d40bac9ced838d24c9842707af9ecae92e2 https://git.kernel.org/stable/c/6ec91df8aff77e2e8fe3179c1f3fc15b43a40ba3