In the Linux kernel, the following vulnerability has been resolved:
dm: fix a crash if blkallocdisk fails
If blkallocdisk fails, the variable md->disk is set to an error value. cleanupmappeddevice will see that md->disk is non-NULL and it will attempt to access it, causing a crash on this statement "md->disk->private_data = NULL;".
[
{
"deprecated": false,
"target": {
"file": "drivers/md/dm.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d7aec2a06730b774a97caaf48cbbc58330a85829",
"digest": {
"threshold": 0.9,
"line_hashes": [
"187217996881045735859159164773417320013",
"88364006115729115074523347940358671627",
"305284419431766363272470295091046396330",
"114965853493680423266330644902859855945",
"26744643091379008942215308796617111211"
]
},
"id": "CVE-2024-50277-14c2d50b",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"function": "alloc_dev",
"file": "drivers/md/dm.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fed13a5478680614ba97fc87e71f16e2e197912e",
"digest": {
"function_hash": "268021847694271485885176092552192749987",
"length": 2643.0
},
"id": "CVE-2024-50277-80ed6cce",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"function": "alloc_dev",
"file": "drivers/md/dm.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d7aec2a06730b774a97caaf48cbbc58330a85829",
"digest": {
"function_hash": "268021847694271485885176092552192749987",
"length": 2643.0
},
"id": "CVE-2024-50277-86d1777e",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "drivers/md/dm.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fed13a5478680614ba97fc87e71f16e2e197912e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"187217996881045735859159164773417320013",
"88364006115729115074523347940358671627",
"305284419431766363272470295091046396330",
"114965853493680423266330644902859855945",
"26744643091379008942215308796617111211"
]
},
"id": "CVE-2024-50277-b914c803",
"signature_version": "v1"
}
]