{"id":"CVE-2022-50140","summary":"memstick/ms_block: Fix a memory leak","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmemstick/ms_block: Fix a memory leak\n\n'erased_blocks_bitmap' is never freed. As it is allocated at the same time\nas 'used_blocks_bitmap', it is likely that it should be freed also at the\nsame time.\n\nAdd the corresponding bitmap_free() in msb_data_clear().","modified":"2026-04-03T13:14:29.521339882Z","published":"2025-06-18T11:03:03.027Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02308-1","SUSE-SU-2025:02320-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50140.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/16e07966638717416abf45393d6a80a5a1034429"},{"type":"WEB","url":"https://git.kernel.org/stable/c/37958980eb4cd71ae594ace093c11b6a91e165e8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/39be95d1ff7b44c1e969af72ba9da7332dfcc1da"},{"type":"WEB","url":"https://git.kernel.org/stable/c/54eb7a55be6779c4d0c25eaf5056498a28595049"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9260a154b3b5e387dbceec7c0ac441470646bc6f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/961d7d12080fe70847f944d656e36cd0dd0214ba"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53"},{"type":"WEB","url":"https://git.kernel.org/stable/c/efd675246aec045507b9425c67b548cc2d782d8f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50140.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50140"},{"type":"PACKAGE","url":"https://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"}}],"schema_version":"1.7.5"}