Bug 2373653 (CVE-2022-50140) - CVE-2022-50140 kernel: memstick/ms_block: Fix a memory leak
Summary: CVE-2022-50140 kernel: memstick/ms_block: Fix a memory leak
Keywords:
Status: NEW
Alias: CVE-2022-50140
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:12 UTC by OSIDB Bzimport
Modified: 2025-11-25 16:00 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:12:23 UTC
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().

Comment 1 Avinash Hanwate 2025-06-18 21:27:30 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061818-CVE-2022-50140-cb08@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.