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 5F6C12BD5AF for ; Tue, 13 Jan 2026 15:32:47 +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=1768318367; cv=none; b=HcGDMmVccXxgkqT8TLVjjeyUtEapjEiA6jfwlTYCgZUHw6WOtkPnGEwcwMdmvtn4OiuNSz5U05UO0E30XNUBY3tkiYRISBWdWizQRQIl5KdBzfyymFKlJgvPZzFFeVAExHTIdTAJPgjdbl6om/tpLo/kQW4aEybHwPjUGKiZB1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318367; c=relaxed/simple; bh=vpMiePkLCcwIunycZLqSuulhTM7JKUH804lKgMWkIks=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EIRwj9YY/m581bVzcdeGWhrghebLLEbEKO6drre6ybi/lARY5N+oqxgOTV8KrixtesnUusiMxoLJLIQMR/U1LzRhPU+4q4F/OEIPlryuV9oBBnf5ypgS6xAiu3iHfGjxa8lXdFoFI1lwuzUHFToaPppGQfAP3t+anuEtQ+QsD78= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hUvVEG35; 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="hUvVEG35" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E138AC116C6; Tue, 13 Jan 2026 15:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318367; bh=vpMiePkLCcwIunycZLqSuulhTM7JKUH804lKgMWkIks=; h=From:To:Cc:Subject:Date:Reply-To:From; b=hUvVEG35k+71eGG/RI2BdW0kLOlKa869LFgyRVRQ1iSSMHuoaCOwwGkBZdggBPLs9 LVkM1qlVkwE5ZL/MrMM30qo/0VxYizLaMstP4q2IT0UXLwaMUV/QAKAVycw6IaK8QP bnxlyWkwQPBocg+CbzzT691g6y+inBEPkjobn8Qo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71064: net: hns3: using the num_tqps in the vf driver to apply for resources Date: Tue, 13 Jan 2026 16:31:22 +0100 Message-ID: <2026011322-CVE-2025-71064-94ea@gregkh> X-Mailer: git-send-email 2.52.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=3021; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PpmtIeh3PilYl9IZh3CMSS0VCV6BmBXWKTYkgAmuu5I=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpqV7M7o3XtFesedH9IKdaWDbPc/3l5xKJzVeTg7MXH HTzYj7REcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNxrWaYn29wXv3FxKYXv1gv T8v7aVRhOyFoGcM8Ow+e3fbFL1Zy5IQyfQ6W2/7ozvpvAA== 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: net: hns3: using the num_tqps in the vf driver to apply for resources Currently, hdev->htqp is allocated using hdev->num_tqps, and kinfo->tqp is allocated using kinfo->num_tqps. However, kinfo->num_tqps is set to min(new_tqps, hdev->num_tqps); Therefore, kinfo->num_tqps may be smaller than hdev->num_tqps, which causes some hdev->htqp[i] to remain uninitialized in hclgevf_knic_setup(). Thus, this patch allocates hdev->htqp and kinfo->tqp using hdev->num_tqps, ensuring that the lengths of hdev->htqp and kinfo->tqp are consistent and that all elements are properly initialized. The Linux kernel CVE team has assigned CVE-2025-71064 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit e2cb1dec9779ba2d89302a653eb0abaeb8682196 and fixed in 6.1.160 with commit 6cd8a2930df850f4600fe8c57d0662b376520281 Issue introduced in 4.16 with commit e2cb1dec9779ba2d89302a653eb0abaeb8682196 and fixed in 6.6.120 with commit 1956d47a03eb625951e9e070db39fe2590e27510 Issue introduced in 4.16 with commit e2cb1dec9779ba2d89302a653eb0abaeb8682196 and fixed in 6.12.64 with commit 429f946a7af3fbf08761d218746cd4afa80a7954 Issue introduced in 4.16 with commit e2cb1dec9779ba2d89302a653eb0abaeb8682196 and fixed in 6.18.3 with commit 62f28d79a6186a602a9d926a2dbb5b12b6867df7 Issue introduced in 4.16 with commit e2cb1dec9779ba2d89302a653eb0abaeb8682196 and fixed in 6.19-rc2 with commit c2a16269742e176fccdd0ef9c016a233491a49ad 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-71064 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/hisilicon/hns3/hns3vf/hclgevf_main.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/6cd8a2930df850f4600fe8c57d0662b376520281 https://git.kernel.org/stable/c/1956d47a03eb625951e9e070db39fe2590e27510 https://git.kernel.org/stable/c/429f946a7af3fbf08761d218746cd4afa80a7954 https://git.kernel.org/stable/c/62f28d79a6186a602a9d926a2dbb5b12b6867df7 https://git.kernel.org/stable/c/c2a16269742e176fccdd0ef9c016a233491a49ad