staging: vt6655: fix potential memory leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5341ee0adb17d12a96dc5344e0d267cd12b52135 · < cfdf139258614ef65b0f68b857ada5328fb7c0e5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
staging: vt6655: fix potential memory leak
In function device_init_td0_ring, memory is allocated for member td_info 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.
From the CVE record · Linux
The Linux kernel’s vt6655 staging driver can leak memory if allocation fails while initializing a transmit ring. The input does not describe an attacker path or specify network access, authentication, or user interaction requirements.
Engineers running Linux kernels that include the vt6655 staging driver should check their versions; affected versions were not provided.