CVE-2022-50140 Details
Description
In the Linux kernel, the following vulnerability has been resolved: memstick/ms_block: Fix a memory leak 'erased_blocks_bitmap' is never freed. As it is allocated at the same time as 'used_blocks_bitmap', it is likely that it should be freed also at the same time. Add the corresponding bitmap_free() in msb_data_clear().
A memory leak vulnerability has been identified in the Linux kernel's memstick/ms_block component. The issue arises because the 'erased_blocks_bitmap' is allocated simultaneously with the 'used_blocks_bitmap' but is never freed. This oversight creates a memory leak, as the allocated memory for 'erased_blocks_bitmap' is not released, potentially leading to increased memory usage over time.
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/16e07966638717416abf45393d6a80a5a1034429 | kernel.org | Patch |
| https://git.kernel.org/stable/c/37958980eb4cd71ae594ace093c11b6a91e165e8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/39be95d1ff7b44c1e969af72ba9da7332dfcc1da | kernel.org | Patch |
| https://git.kernel.org/stable/c/54eb7a55be6779c4d0c25eaf5056498a28595049 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9260a154b3b5e387dbceec7c0ac441470646bc6f | kernel.org | Patch |
| https://git.kernel.org/stable/c/961d7d12080fe70847f944d656e36cd0dd0214ba | kernel.org | Patch |
| https://git.kernel.org/stable/c/9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53 | kernel.org | Patch |
| https://git.kernel.org/stable/c/efd675246aec045507b9425c67b548cc2d782d8f | 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 | >= 3.12, < 4.14.291 >= 4.15, < 4.19.256 >= 4.20, < 5.4.211 >= 5.5, < 5.10.137 >= 5.11, < 5.15.61 >= 5.16, < 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 18, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |