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().
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@37958980eb4cd71ae594ace093c11b6a91e165e8",
"id": "CVE-2022-50140-157eab18",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "msb_data_clear",
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Function",
"digest": {
"length": 214.0,
"function_hash": "10886042127138317222886538102659007554"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@961d7d12080fe70847f944d656e36cd0dd0214ba",
"id": "CVE-2022-50140-278cacdf",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"27617532575402931644286002487126668295",
"325544601646714187972812544530045726716",
"76846184740497421390409776140083985326",
"294381066801261774029593385296935799100"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53",
"id": "CVE-2022-50140-3acde322",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "msb_data_clear",
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Function",
"digest": {
"length": 214.0,
"function_hash": "10886042127138317222886538102659007554"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53",
"id": "CVE-2022-50140-3f25c4c3",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"27617532575402931644286002487126668295",
"325544601646714187972812544530045726716",
"76846184740497421390409776140083985326",
"294381066801261774029593385296935799100"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@54eb7a55be6779c4d0c25eaf5056498a28595049",
"id": "CVE-2022-50140-44d91266",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"27617532575402931644286002487126668295",
"325544601646714187972812544530045726716",
"76846184740497421390409776140083985326",
"294381066801261774029593385296935799100"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16e07966638717416abf45393d6a80a5a1034429",
"id": "CVE-2022-50140-5382281f",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"27617532575402931644286002487126668295",
"325544601646714187972812544530045726716",
"76846184740497421390409776140083985326",
"294381066801261774029593385296935799100"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efd675246aec045507b9425c67b548cc2d782d8f",
"id": "CVE-2022-50140-5b4fe995",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "msb_data_clear",
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Function",
"digest": {
"length": 214.0,
"function_hash": "10886042127138317222886538102659007554"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@37958980eb4cd71ae594ace093c11b6a91e165e8",
"id": "CVE-2022-50140-6f31beb3",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"27617532575402931644286002487126668295",
"325544601646714187972812544530045726716",
"76846184740497421390409776140083985326",
"294381066801261774029593385296935799100"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@961d7d12080fe70847f944d656e36cd0dd0214ba",
"id": "CVE-2022-50140-7a2548aa",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "msb_data_clear",
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Function",
"digest": {
"length": 214.0,
"function_hash": "10886042127138317222886538102659007554"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efd675246aec045507b9425c67b548cc2d782d8f",
"id": "CVE-2022-50140-ab48703c",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"27617532575402931644286002487126668295",
"325544601646714187972812544530045726716",
"76846184740497421390409776140083985326",
"294381066801261774029593385296935799100"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9260a154b3b5e387dbceec7c0ac441470646bc6f",
"id": "CVE-2022-50140-b01f2bb1",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "msb_data_clear",
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Function",
"digest": {
"length": 214.0,
"function_hash": "10886042127138317222886538102659007554"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@39be95d1ff7b44c1e969af72ba9da7332dfcc1da",
"id": "CVE-2022-50140-b1798a6d",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "msb_data_clear",
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Function",
"digest": {
"length": 214.0,
"function_hash": "10886042127138317222886538102659007554"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@54eb7a55be6779c4d0c25eaf5056498a28595049",
"id": "CVE-2022-50140-d602eaad",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "msb_data_clear",
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Function",
"digest": {
"length": 214.0,
"function_hash": "10886042127138317222886538102659007554"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16e07966638717416abf45393d6a80a5a1034429",
"id": "CVE-2022-50140-da54c6b0",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "msb_data_clear",
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Function",
"digest": {
"length": 214.0,
"function_hash": "10886042127138317222886538102659007554"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@39be95d1ff7b44c1e969af72ba9da7332dfcc1da",
"id": "CVE-2022-50140-eac78cfb",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"27617532575402931644286002487126668295",
"325544601646714187972812544530045726716",
"76846184740497421390409776140083985326",
"294381066801261774029593385296935799100"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9260a154b3b5e387dbceec7c0ac441470646bc6f",
"id": "CVE-2022-50140-feab1513",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/memstick/core/ms_block.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"27617532575402931644286002487126668295",
"325544601646714187972812544530045726716",
"76846184740497421390409776140083985326",
"294381066801261774029593385296935799100"
]
}
}
]