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 54A703164BB for ; Wed, 15 Oct 2025 07:58:08 +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=1760515088; cv=none; b=PW3nqJLiY0a2ySjaTzj/Sz+hgEGCjwxLvDTFNSg4oJcR8hZQ4IfvWK2WR8gCpZ9SLp7i6QYV+/T07XgLc3XJzjNlmWDdDOGcB4paCTVmdrqEZkc0NWmbmMUpaoZtD1wOuzIWgidlis89aos5+BnOpOdoXuGZNgoyzSeLR1XI6z0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760515088; c=relaxed/simple; bh=xf643YawmwmjZmrb79ToS1Lz/cg2HFCJ+mPDKv/nXB8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tbCqgU1zWofzy8lA70OY8G7CWYynRG8alyoj1JvXPJAqC9vK0q1KzPyT641/qS/ekZxgC4JMNdEbpayu6NedBgRk2K8J91GkY59VPJnlsv5+tgriB7TRNDYWUahQx93Pmk/JTF7vj+dXwsox5soTOzRfFMNDWr8RgVGonwAl6GI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PJHeXZj9; 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="PJHeXZj9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9693BC4CEF8; Wed, 15 Oct 2025 07:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760515088; bh=xf643YawmwmjZmrb79ToS1Lz/cg2HFCJ+mPDKv/nXB8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PJHeXZj9kuj9PzjgDrYwXq7pJgDYEAl1dl445W/cPf6FYMLUm4dFiK/iVkMyQAyS9 lHJO3+enEY62qJ612KodyPTFJq2qh48ZCRM7xF9JhDlIRDT/3kzzWA8mUwA7Sgwtzo CwmEBCB6GlURPkyBtkxqBaIgBtWTE+1Wgs7BkvYk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39973: i40e: add validation for ring_len param Date: Wed, 15 Oct 2025 09:57:01 +0200 Message-ID: <2025101557-CVE-2025-39973-b1a3@gregkh> X-Mailer: git-send-email 2.51.0 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=3576; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gwp71bkttkzeEcEtw1hv9UpQme9akMoR72B+Sz25kqw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnvg0+aLvv9h62KqVrf44214369Jj61DfPnc2+pjOR16 5jlNEeuI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayYDXDPB0BtivN+/+dS9/y 4PH+56XbJy/M1WWY77NZ7KWkkf2tpVzdgq5PdbU4raceAQA= 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: i40e: add validation for ring_len param The `ring_len` parameter provided by the virtual function (VF) is assigned directly to the hardware memory context (HMC) without any validation. To address this, introduce an upper boundary check for both Tx and Rx queue lengths. The maximum number of descriptors supported by the hardware is 8k-32. Additionally, enforce alignment constraints: Tx rings must be a multiple of 8, and Rx rings must be a multiple of 32. The Linux kernel CVE team has assigned CVE-2025-39973 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd and fixed in 5.4.300 with commit 0543d40d6513cdf1c7882811086e59a6455dfe97 Issue introduced in 3.12 with commit 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd and fixed in 5.10.245 with commit 7d749e38dd2b7e8a80da2ca30c93e09de95bfcf9 Issue introduced in 3.12 with commit 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd and fixed in 5.15.194 with commit 45a7527cd7da4cdcf3b06b5c0cb1cae30b5a5985 Issue introduced in 3.12 with commit 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd and fixed in 6.1.155 with commit d3b0d3f8d11fa957171fbb186e53998361a88d4e Issue introduced in 3.12 with commit 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd and fixed in 6.6.109 with commit c0c83f4cd074b75cecef107bfc349be7d516c9c4 Issue introduced in 3.12 with commit 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd and fixed in 6.12.50 with commit 05fe81fb9db20464fa532a3835dc8300d68a2f84 Issue introduced in 3.12 with commit 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd and fixed in 6.16.10 with commit afec12adab55d10708179a64d95d650741e60fe0 Issue introduced in 3.12 with commit 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd and fixed in 6.17 with commit 55d225670def06b01af2e7a5e0446fbe946289e8 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-2025-39973 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/net/ethernet/intel/i40e/i40e_virtchnl_pf.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/0543d40d6513cdf1c7882811086e59a6455dfe97 https://git.kernel.org/stable/c/7d749e38dd2b7e8a80da2ca30c93e09de95bfcf9 https://git.kernel.org/stable/c/45a7527cd7da4cdcf3b06b5c0cb1cae30b5a5985 https://git.kernel.org/stable/c/d3b0d3f8d11fa957171fbb186e53998361a88d4e https://git.kernel.org/stable/c/c0c83f4cd074b75cecef107bfc349be7d516c9c4 https://git.kernel.org/stable/c/05fe81fb9db20464fa532a3835dc8300d68a2f84 https://git.kernel.org/stable/c/afec12adab55d10708179a64d95d650741e60fe0 https://git.kernel.org/stable/c/55d225670def06b01af2e7a5e0446fbe946289e8