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.
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: hns3: usando los num_tqps en el controlador vf para solicitar recursos Actualmente, hdev->htqp se asigna usando hdev->num_tqps, y kinfo->tqp se asigna usando kinfo->num_tqps. Sin embargo, kinfo->num_tqps se establece en min(new_tqps, hdev->num_tqps); Por lo tanto, kinfo->num_tqps puede ser menor que hdev->num_tqps, lo que provoca que algunos hdev->htqp[i] permanezcan sin inicializar en hclgevf_knic_setup(). AsÃ, este parche asigna hdev->htqp y kinfo->tqp usando hdev->num_tqps, asegurando que las longitudes de hdev->htqp y kinfo->tqp sean consistentes y que todos los elementos se inicialicen correctamente.
No CVSS metrics are available for this CVE.