CVE-2022-50140

MEDIUM

Linux Kernel Use-After-Free in memstick/ms_block

Title source: llm
STIX 2.1

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

CVSS v3 5.5
EPSS 0.0016
EPSS Percentile 5.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-401
Status published
Products (26)
linux/Kernel 3.12.0 - 4.14.291linux
linux/Kernel 4.15.0 - 4.19.256linux
linux/Kernel 4.20.0 - 5.4.211linux
linux/Kernel 5.11.0 - 5.15.61linux
linux/Kernel 5.16.0 - 5.18.18linux
linux/Kernel 5.19.0 - 5.19.2linux
linux/Kernel 5.5.0 - 5.10.137linux
Linux/Linux < 3.12
Linux/Linux 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 - 16e07966638717416abf45393d6a80a5a1034429
Linux/Linux 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 - 37958980eb4cd71ae594ace093c11b6a91e165e8
... and 16 more
Published Jun 18, 2025
Tracked Since Feb 18, 2026