CVE-2022-50140

Source
https://cve.org/CVERecord?id=CVE-2022-50140
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50140.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50140
Downstream
Related
Published
2025-06-18T11:03:03.027Z
Modified
2026-04-03T13:14:29.521339882Z
Summary
memstick/ms_block: Fix a memory leak
Details

In the Linux kernel, the following vulnerability has been resolved:

memstick/ms_block: Fix a memory leak

'erasedblocksbitmap' is never freed. As it is allocated at the same time as 'usedblocksbitmap', it is likely that it should be freed also at the same time.

Add the corresponding bitmapfree() in msbdata_clear().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50140.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0ab30494bc4f3bc1ea4659b7c5d97c5218554a63
Fixed
efd675246aec045507b9425c67b548cc2d782d8f
Fixed
37958980eb4cd71ae594ace093c11b6a91e165e8
Fixed
9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53
Fixed
9260a154b3b5e387dbceec7c0ac441470646bc6f
Fixed
961d7d12080fe70847f944d656e36cd0dd0214ba
Fixed
16e07966638717416abf45393d6a80a5a1034429
Fixed
39be95d1ff7b44c1e969af72ba9da7332dfcc1da
Fixed
54eb7a55be6779c4d0c25eaf5056498a28595049

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50140.json"