CVE-2022-50170 Details
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]/
A memory leak vulnerability has been identified in the Linux kernel's KUnit testing framework. This issue arises in the KUnit executor when the memory allocation for 'filtered' fails, but the allocation for 'copy' of the test suite succeeds, leading to a leak of the 'copy' allocation. The vulnerability has been addressed by ensuring that the 'copy' is properly freed if the 'filtered' allocation fails. Additionally, a similar memory leak issue may have existed in 'kunit_filter_subsuites' before it was removed in a previous update.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/7d69764fa3442c7615a75c6b5c02eaa1f274bccf | kernel.org | Patch |
| https://git.kernel.org/stable/c/94681e289bf5d10c9db9db143d1a22d8717205c5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a8a7e3ced362b88b659ab54239990196ff975982 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.17.14, < 5.18 >= 5.18.3, < 5.18.18 >= 5.19, < 5.19.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 28, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |