CVE-2022-50140

Updated on 18 Jun 2025

Severity

5.5 Medium severity

Details

CVSS score
5.5
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Overview

About vulnerability

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

Details

Affected packages:
linux-hwe @ 4.15.0 (+9 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().

Fixes