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 3C8FC3BD643 for ; Fri, 26 Jun 2026 19:43:23 +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=1782503004; cv=none; b=U2qjRTWkn8U6urEL/lRGvCcHdI2F5YQLWHHseVrap15/EJop/kyHNrn/SxZDXuuZnjxUmexYE+IKVaWFVJf/XiXJ++H2DV0rwYAlsiQ3LPZPq6VioAD+RG5R2G7LNVMe4emisPC9ssEppuu2fIV/E4/sE+tcaXA6o546kPKl1rc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782503004; c=relaxed/simple; bh=x2PwOebAbj9qs8haxvW/keJgBysOwDj/YKGN69Zp8zc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lligF5aO/2fqlnovrnHLfbEkQ3q3pqR9I1RG6ham5Hjeed0HCaqTYm6A0tn7ZZwyG286ny3I8LaK8pkh/cvehpFysNGq6RW9gAGeFX+CyeCmqVrRtaoMAJBgA7KrvHkXs5WMNpOD2YkGKly/uE+rWqimrAELWAQb4WmL9NXFNbk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=D0F/lhdx; 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="D0F/lhdx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8203D1F000E9; Fri, 26 Jun 2026 19:43:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782503003; bh=rpYJqKupP6RbSkxo77BZWr83LPidSsBfGQ1ee4oH+lo=; h=From:To:Cc:Subject:Date:Reply-To; b=D0F/lhdx+CBIvAg9HspoAepp2Q5/bZEXfu8NumnDKw1QGdWpzKoUzsJDtuPvFyIqF lqgqLsGlLLMXkhWlJlv33mFOcbPi3AFRuuBODWAxHegXZy7JUsgOJ8U2Zch58DTloy J/2he9e7St+rDU0vRS19ihhZRAAvXEesq48DgWv0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53312: iommu/riscv: Remove overflows on the invalidation path Date: Fri, 26 Jun 2026 20:40:45 +0100 Message-ID: <2026062621-CVE-2026-53312-9784@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=2245; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hdxLkpoHxC+se/r+sEjgPjzKcyDGxroE67wraQhIMb8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl2V5cel/98qejs3t33/j519F/D1b1zm8bM03fuHtMJ6 LY7yvpDpyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm0t3LsGDJ7POF/TUce87J nT7xdvmCU/mu0+cxzK/NOFsTOq/jctON+V/LhVbt/aESVQ8A 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/riscv: Remove overflows on the invalidation path Since RISC-V supports a sign extended page table it should support a gather->end of ULONG_MAX, but if this happens it will infinite loop because of the overflow. Also avoid overflow computing the length by moving the +1 to the other side of the < The Linux kernel CVE team has assigned CVE-2026-53312 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 488ffbf181718b9ad8c1838cb249d60973e78eda and fixed in 6.18.33 with commit 9f0632b0d4246675fa221aa1a3bffadf9c6bd9ac Issue introduced in 6.13 with commit 488ffbf181718b9ad8c1838cb249d60973e78eda and fixed in 7.0.10 with commit e4b7687784153481de45fd39fb97ba3919605c0c Issue introduced in 6.13 with commit 488ffbf181718b9ad8c1838cb249d60973e78eda and fixed in 7.1 with commit 40a13b49957937427bc23e78eb50679df4396a47 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-53312 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/riscv/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/9f0632b0d4246675fa221aa1a3bffadf9c6bd9ac https://git.kernel.org/stable/c/e4b7687784153481de45fd39fb97ba3919605c0c https://git.kernel.org/stable/c/40a13b49957937427bc23e78eb50679df4396a47