All reports
Medium

kernel: dm: fix a crash if blk_alloc_disk fails

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-50277

Probability of exploitation in the next 30 days: 0.19%

FIRST EPSS · 2026-11-23

Description

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;".

A flaw was found in the Linux kernel's Device Mapper (DM) subsystem. When a disk allocation failure occurs during device initialization, the kernel retains an error pointer instead of properly tracking the failure. A local user can trigger this cleanup path, leading to an invalid pointer dereference and a system crash, resulting in a Denial of Service (DoS).