{"id":"CVE-2022-50140","aliases":["CVE-2022-50140"],"related":[],"kind":"vulnerability","state":"published","title":"memstick/ms_block: Fix a memory leak","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: memstick/ms_block: Se corrige una fuga de memoria: la variable 'erased_blocks_bitmap' nunca se libera. Dado que se asigna al mismo tiempo que 'used_blocks_bitmap', es probable que deba liberarse también simultáneamente. Agregue el bitmap_free() correspondiente en msb_data_clear().","source":"nvd"}],"published":"2025-06-18T11:03:03.027Z","modified":"2026-06-17T05:22:50.387Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"efd675246aec045507b9425c67b548cc2d782d8f","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"37958980eb4cd71ae594ace093c11b6a91e165e8","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"9260a154b3b5e387dbceec7c0ac441470646bc6f","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"961d7d12080fe70847f944d656e36cd0dd0214ba","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"16e07966638717416abf45393d6a80a5a1034429","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"39be95d1ff7b44c1e969af72ba9da7332dfcc1da","status":"affected"},{"type":"git","introduced":"0ab30494bc4f3bc1ea4659b7c5d97c5218554a63","fixed":"54eb7a55be6779c4d0c25eaf5056498a28595049","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.12","status":"unaffected"},{"type":"semver","introduced":"4.14.291","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.256","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.211","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.137","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.61","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.18.18","lastAffected":"5.18.*","status":"unaffected"},{"type":"semver","introduced":"5.19.2","lastAffected":"5.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.12","fixed":"4.14.291"},{"status":"affected","introduced":"4.15","fixed":"4.19.256"},{"status":"affected","introduced":"4.20","fixed":"5.4.211"},{"status":"affected","introduced":"5.5","fixed":"5.10.137"},{"status":"affected","introduced":"5.11","fixed":"5.15.61"},{"status":"affected","introduced":"5.16","fixed":"5.18.18"},{"status":"affected","introduced":"5.19","fixed":"5.19.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/efd675246aec045507b9425c67b548cc2d782d8f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/37958980eb4cd71ae594ace093c11b6a91e165e8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9260a154b3b5e387dbceec7c0ac441470646bc6f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/961d7d12080fe70847f944d656e36cd0dd0214ba","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/16e07966638717416abf45393d6a80a5a1034429","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39be95d1ff7b44c1e969af72ba9da7332dfcc1da","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54eb7a55be6779c4d0c25eaf5056498a28595049","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50140","url":"https://www.cve.org/CVERecord?id=CVE-2022-50140","licence":"CVE Terms of Use","modified":"2026-05-11T19:13:35.821Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50140","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50140","licence":"Public domain","modified":"2026-06-17T05:22:50.387Z"}],"updatedAt":"2026-11-25T22:58:21.072Z","epss":{"score":0.00202,"percentile":0.10761,"date":"2026-12-01T12:00:22.000Z"}}