CVE-2022-50170
publishedkunit: executor: Fix a memory leak on failure in kunit_filter_tests
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxbd8b222a0002872bb229f6c755672a093ef93ea4 to < a8a7e3ced362b88b659ab54239990196ff975982 · a02353f491622e49c7ddedc6a6dc4f1d6ed2150a to < 7d69764fa3442c7615a75c6b5c02eaa1f274bccf · a02353f491622e49c7ddedc6a6dc4f1d6ed2150a to < 94681e289bf5d10c9db9db143d1a22d8717205c5 · 80cf4932c2545bc231e933d869511008c36af1e0 · 5.18.3 to < 5.18.18 · 5.17.14 to < 5.18 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.19 (affected) · 0 to < 5.19 (unaffected · semver) · 5.18.18 through 5.18.* (unaffected · semver) · 5.19.2 through 5.19.* (unaffected · semver) · 6.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: kunit: executor: Fix a memory leak on failure in kunit_filter_tests It's possible that memory allocation for 'filtered' will fail, but for the copy of the suite to succeed. In this case, the copy could be leaked. Properly free 'copy' in the error case for the allocation of 'filtered' failing. Note that there may also have been a similar issue in kunit_filter_subsuites, before it was removed in "kunit: flatten kunit_suite*** to kunit_suite** in .kunit_test_suites". This was reported by clang-analyzer via the kernel test robot, here: https://lore.kernel.org/all/[email protected]/ And by smatch via Dan Carpenter and the kernel test robot: https://lore.kernel.org/all/[email protected]/
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | bd8b222a0002872bb229f6c755672a093ef93ea4 to < a8a7e3ced362b88b659ab54239990196ff975982 (affected · git)a02353f491622e49c7ddedc6a6dc4f1d6ed2150a to < 7d69764fa3442c7615a75c6b5c02eaa1f274bccf (affected · git)a02353f491622e49c7ddedc6a6dc4f1d6ed2150a to < 94681e289bf5d10c9db9db143d1a22d8717205c5 (affected · git)80cf4932c2545bc231e933d869511008c36af1e0 (affected · git)5.18.3 to < 5.18.18 (affected · semver)5.17.14 to < 5.18 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 5.19 (affected)0 to < 5.19 (unaffected · semver)5.18.18 through 5.18.* (unaffected · semver)5.19.2 through 5.19.* (unaffected · semver)6.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
kunit: executor: Fix a memory leak on failure in kunit_filter_tests
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ccbe8b4640be4646bd5b89a958caed99ff73207ec8e18f87222fa13906c998a9
- Ingested
- 23 Sep 2026, 08:04:39 UTC
- Source record
- Official CVE record