[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2026011322-CVE-2025-71064-94ea@gregkh>
Date: Tue, 13 Jan 2026 16:31:22 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-71064: net: hns3: using the num_tqps in the vf driver to apply for resources
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists