CVE-2022-50140

memstick/ms_block: Fix a memory leak

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

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

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 to before efd675246aec045507b9425c67b548cc2d782d8fAffected
  • 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 to before 37958980eb4cd71ae594ace093c11b6a91e165e8Affected
  • 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 to before 9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53Affected
  • 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 to before 9260a154b3b5e387dbceec7c0ac441470646bc6fAffected
  • 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 to before 961d7d12080fe70847f944d656e36cd0dd0214baAffected
  • 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 to before 16e07966638717416abf45393d6a80a5a1034429Affected
  • 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 to before 39be95d1ff7b44c1e969af72ba9da7332dfcc1daAffected
  • 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 to before 54eb7a55be6779c4d0c25eaf5056498a28595049Affected
LinuxLinux
  • 3.12Affected
  • before 3.12Not affected
  • 4.14.291 through 4.14.*Not affected
  • 4.19.256 through 4.19.*Not affected
  • 5.4.211 through 5.4.*Not affected
  • 5.10.137 through 5.10.*Not affected
  • 5.15.61 through 5.15.*Not affected
  • 5.18.18 through 5.18.*Not affected
  • 5.19.2 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.