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 B896A1459EC for ; Tue, 21 May 2024 15:35:41 +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=1716305741; cv=none; b=b33gVmGEKBHv2gykscd+IDtfGleD/enDLI3Sw4RA7QVvcZZYOtYCUBquV4fO/RDoM7pQLXZ5Jcob0m0EKkwESUHM3oZmc2CHTwKBbGl7LxlMVfStWNAt0IZPyiIAhj3fuMpqdV9Ae5WdZx0g6aR31jIkUqvu7In56gBWoHJR6ts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305741; c=relaxed/simple; bh=zRuJkiprp2Arbj91fAW+cQmely2K5DxMauZlejLFwno=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dmpefrtO1c5Io1pfSOd/WpnUEqliQhA3t6TdFpqJsiooVlusc64A7W4YhM/tG59fVzzNy4dACfTovrq/M933sXWgqLG0BkZPK0bx3GGyA22y3sohE175EZkr8bOq3Ul/PfMhEp2Dvfn4tR5BKzST3x87hkXhffhEGV5bdw+LyhA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OpbDlZb3; 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="OpbDlZb3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 455D2C2BD11; Tue, 21 May 2024 15:35:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305741; bh=zRuJkiprp2Arbj91fAW+cQmely2K5DxMauZlejLFwno=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OpbDlZb3lh6JpduO6Jr+at5cMQXnPCHfqTOqapjQ4oqsu0DGzAs1GNkg9nEFYEAJ1 TEdwGgI4mnLcgMZtKMqjbEXZNtBaj9BryCB0rs/TBtQd8Prdw+ijCnbWDJXyPq/Crr t30Io18kFbS7vJtJbTiXf3GtXt4CeZ7+qf9JzNJ8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52790: swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC Date: Tue, 21 May 2024 17:31:26 +0200 Message-ID: <2024052156-CVE-2023-52790-2a4f@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=1984; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zRuJkiprp2Arbj91fAW+cQmely2K5DxMauZlejLFwno=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++wzcr63+s/PSIqPnx5Z7X5HqKAg/u6OsTn/GjT1OT hKCXG/fdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBELO0ZFtyYaby5X+DS3pb/ vV1vbulPMDgdo80wz0h57sc5agZ59net7u/YF/fndNKrWgA= 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: swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC Limit the free list length to the size of the IO TLB. Transient pool can be smaller than IO_TLB_SEGSIZE, but the free list is initialized with the assumption that the total number of slots is a multiple of IO_TLB_SEGSIZE. As a result, swiotlb_area_find_slots() may allocate slots past the end of a transient IO TLB buffer. The Linux kernel CVE team has assigned CVE-2023-52790 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 79636caad361 and fixed in 6.6.3 with commit ce7612496a4b Issue introduced in 6.6 with commit 79636caad361 and fixed in 6.7 with commit 53c87e846e33 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-52790 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: kernel/dma/swiotlb.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/ce7612496a4ba6068bc68aa1fa9d947dadb4ad9b https://git.kernel.org/stable/c/53c87e846e335e3c18044c397cc35178163d7827