net: hns3: using the num_tqps in the vf driver to apply for resources
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c2a16269742e176fccdd0ef9c016a233491a49ad, Kernel 1956d47a03eb625951e9e070db39fe2590e27510, Kernel 429f946a7af3fbf08761d218746cd4afa80a7954 and 10 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e2cb1dec9779ba2d89302a653eb0abaeb8682196 <c2a16269742e176fccdd0ef9c016a233491a49ad, >=e2cb1dec9779ba2d89302a653eb0abaeb8682196 <1956d47a03eb625951e9e070db39fe2590e27510, >=e2cb1dec9779ba2d89302a653eb0abaeb8682196 <429f946a7af3fbf08761d218746cd4afa80a7954, >=e2cb1dec9779ba2d89302a653eb0abaeb8682196 <62f28d79a6186a602a9d926a2dbb5b12b6867df7, >=e2cb1dec9779ba2d89302a653eb0abaeb8682196 <6cd8a2930df850f4600fe8c57d0662b376520281, >=e2cb1dec9779ba2d89302a653eb0abaeb8682196 <bcefdb288eedac96fd2f583298927e9c6c481489, >=e2cb1dec9779ba2d89302a653eb0abaeb8682196 <c149decd8c18ae6acdd7a6041d74507835cf26e6, =4.16 | c2a16269742e176fccdd0ef9c016a233491a49ad, 1956d47a03eb625951e9e070db39fe2590e27510, 429f946a7af3fbf08761d218746cd4afa80a7954, 62f28d79a6186a602a9d926a2dbb5b12b6867df7, 6cd8a2930df850f4600fe8c57d0662b376520281, bcefdb288eedac96fd2f583298927e9c6c481489, c149decd8c18ae6acdd7a6041d74507835cf26e6 |
| linux-kernel: Kernel | >=5.11.0 <5.15.198, >=5.16.0 <6.1.160, >=6.13.0 <6.18.3, >=6.2.0 <6.6.120, >=6.7.0 <6.12.64, >=4.16.0 <5.10.248 | 5.15.198, 6.1.160, 6.18.3, 6.6.120, 6.12.64, 5.10.248 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket