# CVE-2022-50355: staging: vt6655: fix some erroneous memory clean-up loops

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-09-17T14:56:08.356Z
- **Modified:** 2026-08-05T08:58:21.802Z

## Who should check

- Anyone running Linux \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 637672a71f5016a40b0a6c0f3c8ad25eacedc8c3; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 88b9cc60f26e8a05d1ddbddf91b09ca2915f20e0; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 95ac62e8545be2b0a8cae0beef7c682e2e470e48; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< f19e5b7df54590c831f350381963f25585c8f7d5; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< a9e9806d1c315bc50dce05479a079b9a104474b8; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< ed11b73c963292e7b49c0f37025c58ed3b7921d6; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 2a2db520e3ca5aafba7c211abfd397666c9b5f9d
- Anyone running Linux 4.18

## Description

In the Linux kernel, the following vulnerability has been resolved:

staging: vt6655: fix some erroneous memory clean-up loops

In some initialization functions of this driver, memory is allocated with
'i' acting as an index variable and increasing from 0. The commit in
"Fixes" introduces some clean-up codes in case of allocation failure,
which free memory in reverse order with 'i' decreasing to 0. However,
there are some problems:
  - The case i=0 is left out. Thus memory is leaked.
  - In case memory allocation fails right from the start, the memory
    freeing loops will start with i=-1 and invalid memory locations will
    be accessed.

One of these loops has been fixed in commit c8ff91535880 ("staging:
vt6655: fix potential memory leak"). Fix the remaining erroneous loops.

## Affected and fixed versions

- Linux: \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 637672a71f5016a40b0a6c0f3c8ad25eacedc8c3; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 88b9cc60f26e8a05d1ddbddf91b09ca2915f20e0; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 95ac62e8545be2b0a8cae0beef7c682e2e470e48; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< f19e5b7df54590c831f350381963f25585c8f7d5; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< a9e9806d1c315bc50dce05479a079b9a104474b8; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< ed11b73c963292e7b49c0f37025c58ed3b7921d6; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 2a2db520e3ca5aafba7c211abfd397666c9b5f9d (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- Upgrade Linux to 2a2db520e3ca5aafba7c211abfd397666c9b5f9d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50355. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50355.md
Affected: Linux >= 5341ee0adb17d12a96dc5344e0d267cd12b52135, < 637672a71f5016a40b0a6c0f3c8ad25eacedc8c3; >= 5341ee0adb17d12a96dc5344e0d267cd12b52135, < 88b9cc60f26e8a05d1ddbddf91b09ca2915f20e0; >= 5341ee0adb17d12a96dc5344e0d267cd12b52135, < 95ac62e8545be2b0a8cae0beef7c682e2e470e48; >= 5341ee0adb17d12a96dc534…
Fixed in: Linux 637672a71f5016a40b0a6c0f3c8ad25eacedc8c3, Linux 88b9cc60f26e8a05d1ddbddf91b09ca2915f20e0, Linux 95ac62e8545be2b0a8cae0beef7c682e2e470e48, Linux 2a2db520e3ca5aafba7c211abfd397666c9b5f9d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50355 being exploited?

There is no confirmed exploitation: CVE-2022-50355 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50355?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50355?

Linux \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 637672a71f5016a40b0a6c0f3c8ad25eacedc8c3; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 88b9cc60f26e8a05d1ddbddf91b09ca2915f20e0; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 95ac62e8545be2b0a8cae0beef7c682e2e470e48; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< f19e5b7df54590c831f350381963f25585c8f7d5; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< a9e9806d1c315bc50dce05479a079b9a104474b8; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< ed11b73c963292e7b49c0f37025c58ed3b7921d6; \>= 5341ee0adb17d12a96dc5344e0d267cd12b52135, \< 2a2db520e3ca5aafba7c211abfd397666c9b5f9d; Linux 4.18.

### Is there a fix for CVE-2022-50355?

Yes. Fixed in Linux 637672a71f5016a40b0a6c0f3c8ad25eacedc8c3, Linux 88b9cc60f26e8a05d1ddbddf91b09ca2915f20e0, Linux 95ac62e8545be2b0a8cae0beef7c682e2e470e48, Linux 2a2db520e3ca5aafba7c211abfd397666c9b5f9d. Upgrade Linux to 2a2db520e3ca5aafba7c211abfd397666c9b5f9d or later.

### How do I check if I'm affected by CVE-2022-50355?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/637672a71f5016a40b0a6c0f3c8ad25eacedc8c3>
- patch: <https://git.kernel.org/stable/c/88b9cc60f26e8a05d1ddbddf91b09ca2915f20e0>
- patch: <https://git.kernel.org/stable/c/95ac62e8545be2b0a8cae0beef7c682e2e470e48>
- patch: <https://git.kernel.org/stable/c/f19e5b7df54590c831f350381963f25585c8f7d5>
- patch: <https://git.kernel.org/stable/c/a9e9806d1c315bc50dce05479a079b9a104474b8>
- patch: <https://git.kernel.org/stable/c/ed11b73c963292e7b49c0f37025c58ed3b7921d6>
- patch: <https://git.kernel.org/stable/c/2a2db520e3ca5aafba7c211abfd397666c9b5f9d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50355>

HTML: <https://flawdb.com/CVE-2022-50355> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50355>
