# CVE-2022-50758: staging: vt6655: fix potential memory leak

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-02)
- Published: 2025-12-24T13:05:51.159Z
- Modified: 2026-08-05T08:59:44.493Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 5341ee0adb17d12a96dc5344e0d267cd12b52135 before e741e38aa98704fbb959650ecd270b71b2670680; from 5341ee0adb17d12a96dc5344e0d267cd12b52135 before 16a45e78a687eb6c69acc4e62b94b6508b0bfbda; from 5341ee0adb17d12a96dc5344e0d267cd12b52135 before 1b3cebeca99e8e0aa4fa57faac8dbf41e967317a; from 5341ee0adb17d12a96dc5344e0d267cd12b52135 before ff8551d411f12b5abc5ca929ab87643afa8a9588; from 5341ee0adb17d12a96dc5344e0d267cd12b52135 before fb5f569bcda8f87bd47d8030bfae343d757fa3ea; from 5341ee0adb17d12a96dc5344e0d267cd12b52135 before cfdf139258614ef65b0f68b857ada5328fb7c0e5; from 5341ee0adb17d12a96dc5344e0d267cd12b52135 before c8ff91535880d41b49699b3829fb6151942de29e; 4.18 (not affected: before 4.18; from 4.19.262 up to 4.19.*; from 5.4.220 up to 5.4.*; from 5.10.150 up to 5.10.*; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/e741e38aa98704fbb959650ecd270b71b2670680>
- <https://git.kernel.org/stable/c/16a45e78a687eb6c69acc4e62b94b6508b0bfbda>
- <https://git.kernel.org/stable/c/1b3cebeca99e8e0aa4fa57faac8dbf41e967317a>
- <https://git.kernel.org/stable/c/ff8551d411f12b5abc5ca929ab87643afa8a9588>
- <https://git.kernel.org/stable/c/fb5f569bcda8f87bd47d8030bfae343d757fa3ea>
- <https://git.kernel.org/stable/c/cfdf139258614ef65b0f68b857ada5328fb7c0e5>
- <https://git.kernel.org/stable/c/c8ff91535880d41b49699b3829fb6151942de29e>

## Sources

- CVE List: [CVE-2022-50758](https://www.cve.org/CVERecord?id=CVE-2022-50758), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-50758](https://nvd.nist.gov/vuln/detail/CVE-2022-50758), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-50758 · Whole record: https://cve.day/CVE-2022-50758.json · Rebuilt by cve.day 2026-11-25T22:58:21.350Z
