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 A6671382F25 for ; Sat, 15 Aug 2026 06:38:58 +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=1786775939; cv=none; b=lXLc8PgjuNDvWvVGb+Flicg1zkl3Qx2WZi5NdexoBN5vI7lW/Yp7VCqV7q6SVW6wr3U2BCO/eILVuM1oeP7ZXjTD1p2veGH3NnR2mcwtKu11DiaaIIG5ZEfS2qt3evOURcCQMpLbG/GQ9w0pYdQYPQpMkjOXpuJ7g7U2XF1DXrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775939; c=relaxed/simple; bh=FabgQYHArUUe0YUEg1IZuIYtzubU/Bc8fJC8e2NW5p8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tuADa3II1DYemlNz9aY3M8GHbFWl1hHuaKdwLPYbzWrx/RbnFMutKkCWJP+QoPIv15w3gLFNUZuRZXqtu4g8eBPJx0i9To6fP0ejVdd1UNKLMXZxDIZOvc1KdnZDQZ79d6UZ2ZmfeSjG5Q05qrCFT/dK72Ol8J6hcoEWH4sHDQ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v7cFVvXM; 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="v7cFVvXM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 006841F000E9; Sat, 15 Aug 2026 06:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775938; bh=jW0LMbb1Rv/m+gZTpJjkdv129RyCRvLl2ZmTVkfoGUA=; h=From:To:Cc:Subject:Date:Reply-To; b=v7cFVvXMfNr/LrJ/hqngdfR9e+3F3QUUG7818DNR+NXeQLYo403hsrGc8EBRQsHVL m80OWjZoPoNTucXPYl57WG/v3gS88rWPyzZvwba47HccvCSxH11bISqZ/KBmPf4/Wv aVISWj6x/qs0sQnNTV0cNySyKBRcTrN1IeA9KSqc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74404: crypto: ccp - Fix snp_filter_reserved_mem_regions() off-by-one Date: Sat, 15 Aug 2026 15:12:11 +0900 Message-ID: <2026081509-CVE-2026-74404-2b54@gregkh> X-Mailer: git-send-email 2.55.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=2841; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IWdFJHDoG//JcH8MvTqHkOugVpCi0qAPtxK7Vxoe11A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjLKzVNccifkZ0iUmUM/8pXfC5kozoS+8npudTnnc0 1nEecimI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCK8ewYHtAek7V158Mv0Pj aqyqGUq3HjJTY5jvXp2Z/VQ9NOGiYMynyzHimxnTLjsBAA== 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: crypto: ccp - Fix snp_filter_reserved_mem_regions() off-by-one Sashiko notes: > regarding the bounds check in snp_filter_reserved_mem_regions() > called via walk_iomem_res_desc(): does the check > if ((range_list->num_elements * 16 + 8) > PAGE_SIZE) > allow an off-by-one heap buffer overflow? > > If range_list->num_elements is 255, 255 * 16 + 8 = 4088, which is <= 4096. > Writing range->base (8 bytes) fills 4088-4095, but writing range->page_count > (4 bytes) would write to 4096-4099, overflowing the kzalloc-allocated > PAGE_SIZE buffer. Fix this by accounting for the entry about to be written to, in addition to the entries that are already allocated. The Linux kernel CVE team has assigned CVE-2026-74404 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 and fixed in 6.12.97 with commit 830c1f3e71989448652973375ef5e39b6ede47a3 Issue introduced in 6.9 with commit 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 and fixed in 6.18.40 with commit c5c79d92da0f9a09f48be5e2aabed2d6d1a96294 Issue introduced in 6.9 with commit 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 and fixed in 7.1.5 with commit af7341616b742ad2c374a90998bd650a035f694d Issue introduced in 6.9 with commit 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 and fixed in 7.2-rc1 with commit 1b864b6cb213bbd7b406e9b2e98c962077f300df 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-74404 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/crypto/ccp/sev-dev.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/830c1f3e71989448652973375ef5e39b6ede47a3 https://git.kernel.org/stable/c/c5c79d92da0f9a09f48be5e2aabed2d6d1a96294 https://git.kernel.org/stable/c/af7341616b742ad2c374a90998bd650a035f694d https://git.kernel.org/stable/c/1b864b6cb213bbd7b406e9b2e98c962077f300df