Back
CVE-2022-50140
memstick/ms_block: Fix a memory leak
Medium5.5EPSS 0.19%
- Published
- Updated
- Reserved
- Assigned by
- Linux
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().
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.19% · top 91% of all CVEs (6 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Weakness
Affected products
- affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 – < efd675246aec045507b9425c67b548cc2d782d8f
- affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 – < 37958980eb4cd71ae594ace093c11b6a91e165e8
- affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 – < 9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53
- affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 – < 9260a154b3b5e387dbceec7c0ac441470646bc6f
- affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 – < 961d7d12080fe70847f944d656e36cd0dd0214ba
- affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 – < 16e07966638717416abf45393d6a80a5a1034429
- affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 – < 39be95d1ff7b44c1e969af72ba9da7332dfcc1da
- affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 – < 54eb7a55be6779c4d0c25eaf5056498a28595049
- affected 3.12
- unaffected < 3.12
- unaffected 4.14.291 – ≤ 4.14.*
- unaffected 4.19.256 – ≤ 4.19.*
- unaffected 5.4.211 – ≤ 5.4.*
- unaffected 5.10.137 – ≤ 5.10.*
- unaffected 5.15.61 – ≤ 5.15.*
- unaffected 5.18.18 – ≤ 5.18.*
- unaffected 5.19.2 – ≤ 5.19.*
- unaffected 6.0 – ≤ *
References (8)
- https://git.kernel.org/stable/c/efd675246aec045507b9425c67b548cc2d782d8f (opens in a new tab)
- https://git.kernel.org/stable/c/37958980eb4cd71ae594ace093c11b6a91e165e8 (opens in a new tab)
- https://git.kernel.org/stable/c/9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53 (opens in a new tab)
- https://git.kernel.org/stable/c/9260a154b3b5e387dbceec7c0ac441470646bc6f (opens in a new tab)
- https://git.kernel.org/stable/c/961d7d12080fe70847f944d656e36cd0dd0214ba (opens in a new tab)
- https://git.kernel.org/stable/c/16e07966638717416abf45393d6a80a5a1034429 (opens in a new tab)
- https://git.kernel.org/stable/c/39be95d1ff7b44c1e969af72ba9da7332dfcc1da (opens in a new tab)
- https://git.kernel.org/stable/c/54eb7a55be6779c4d0c25eaf5056498a28595049 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-50140)Record last updated .