CVE-2024-50277Published Nov 19, 2024 · Nov 19Updated Oct 28
dm: fix a crash if blk_alloc_disk fails
Linux
Medium4.7Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dm: fix a crash if blk_alloc_disk fails
If blk_alloc_disk fails, the variable md->disk is set to an error value. cleanup_mapped_device 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;".
From the CVE record · Linux
In the Linux kernel's device mapper, a failed blk_alloc_disk call leaves md->disk set to an error value. Cleanup then accesses that value and crashes. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.