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 E27601FDD for ; Tue, 21 May 2024 15:34:18 +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=1716305659; cv=none; b=nXjUWWW+RZ/5DnhkQec1XJUsH569Uh6W0tZFEg/yXAC/Re2bsgq6fVMb3jXegdNdseJL/TOU1CPLPKyqVcrnZnROwsqvLLPJh+9kMfKrVXSTD2UnvQg9b2BmbWjNwA3oREH206FJlfU+TCUfZIYAKkLl1VG+cprrgUEDe5YCtyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305659; c=relaxed/simple; bh=hmwW11z+KLMmfsZRaxS8vmKbysyK+uCzJH7R3iEAkc4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XM5DIZxNous8tMMpM0zxLqZOelCDKRJlmbcv92rbjHKDAnUPtmkwX8RiulxWmsklOmqRYad0Vd6hjDwoKdxWFPhK6w7lfBs7mLpugfe+5K1rQnh0u8VXYortlgRh/aeHDpqOk4VID4Fxc3uJoqEON5AHe9OenuVkF8YcNT0QG5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XKKyKa+A; 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="XKKyKa+A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21555C2BD11; Tue, 21 May 2024 15:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305658; bh=hmwW11z+KLMmfsZRaxS8vmKbysyK+uCzJH7R3iEAkc4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XKKyKa+AjiTsVulzjYLEoSw9JKBbIcf/eQ5fZiw0eofwbVUnPiCVtyBEVd9GRjkyE CUKS9zNvqFzPQGGOY2FiD3bHeGUjpgAoQDtNCeWDIWm57xnjp9QbP3ls52fRE88J6X FrQv0CBI9dE25BTeriIuwTZaXWSptOEhEqsEkFoM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52762: virtio-blk: fix implicit overflow on virtio_max_dma_size Date: Tue, 21 May 2024 17:30:58 +0200 Message-ID: <2024052147-CVE-2023-52762-fe90@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=2153; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hmwW11z+KLMmfsZRaxS8vmKbysyK+uCzJH7R3iEAkc4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++zSu8LG8DboY5OUpvSDb8LiemsO+0EeG9UYKgdstz Cq+MvzpiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn4+TIs2M9fytcQsKnAUSfe vzmYradwv6Uxwzw9i4gp3Je21rAvddASLPwR9yD9hAMA 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: virtio-blk: fix implicit overflow on virtio_max_dma_size The following codes have an implicit conversion from size_t to u32: (u32)max_size = (size_t)virtio_max_dma_size(vdev); This may lead overflow, Ex (size_t)4G -> (u32)0. Once virtio_max_dma_size() has a larger size than U32_MAX, use U32_MAX instead. The Linux kernel CVE team has assigned CVE-2023-52762 to this issue. Affected and fixed versions =========================== Fixed in 5.15.140 with commit 72775cad7f57 Fixed in 6.1.64 with commit 472bd4787406 Fixed in 6.5.13 with commit 017278f14114 Fixed in 6.6.3 with commit d667fe301dcb Fixed in 6.7 with commit fafb51a67fb8 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-52762 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/block/virtio_blk.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/72775cad7f572bb2501f9ea609e1d20e68f0b38b https://git.kernel.org/stable/c/472bd4787406bef2e8b41ee4c74d960a06a49a48 https://git.kernel.org/stable/c/017278f141141367f7d14b203e930b45b6ffffb9 https://git.kernel.org/stable/c/d667fe301dcbcb12d1d6494fc4b8abee2cb75d90 https://git.kernel.org/stable/c/fafb51a67fb883eb2dde352539df939a251851be