CVE-2022-50140

published 18 Jun 2025 · updated 11 May 2026

memstick/ms_block: Fix a memory leak

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 16e07966638717416abf45393d6a80a5a1034429, Kernel 37958980eb4cd71ae594ace093c11b6a91e165e8, Kernel 39be95d1ff7b44c1e969af72ba9da7332dfcc1da and 5 more.

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().

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=3.12, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <16e07966638717416abf45393d6a80a5a1034429, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <37958980eb4cd71ae594ace093c11b6a91e165e8, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <39be95d1ff7b44c1e969af72ba9da7332dfcc1da, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <54eb7a55be6779c4d0c25eaf5056498a28595049, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <9260a154b3b5e387dbceec7c0ac441470646bc6f, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <961d7d12080fe70847f944d656e36cd0dd0214ba, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <efd675246aec045507b9425c67b548cc2d782d8f16e07966638717416abf45393d6a80a5a1034429, 37958980eb4cd71ae594ace093c11b6a91e165e8, 39be95d1ff7b44c1e969af72ba9da7332dfcc1da, 54eb7a55be6779c4d0c25eaf5056498a28595049, 9260a154b3b5e387dbceec7c0ac441470646bc6f, 961d7d12080fe70847f944d656e36cd0dd0214ba, 9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53, efd675246aec045507b9425c67b548cc2d782d8f

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50140 severity on Zeptric[![CVE-2022-50140](https://zeptric.io/badge/cve/CVE-2022-50140.svg)](https://zeptric.io/cve/CVE-2022-50140)