In the Linux kernel, the following vulnerability has been resolved:
staging: vt6655: fix potential memory leak
In function deviceinittd0ring, memory is allocated for member tdinfo of priv->apTD0Rings[i], with i increasing from 0. In case of allocation failure, the memory is freed in reversed order, with i decreasing to 0. However, the case i=0 is left out and thus memory is leaked.
Modify the memory freeing loop to include the case i=0.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50758.json"
}