# CVE-2024-50277: dm: fix a crash if blk_alloc_disk fails

- Severity: Medium 4.7 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2024-11-19T01:30:17.994Z
- Modified: 2026-06-17T08:04:05.020Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 74fa8f9c553f7b5ccab7d103acae63cc2e080465 before d7aec2a06730b774a97caaf48cbbc58330a85829; from 74fa8f9c553f7b5ccab7d103acae63cc2e080465 before fed13a5478680614ba97fc87e71f16e2e197912e; 6.9 (not affected: before 6.9; from 6.11.8 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: before 6.11.8; 6.12

## Every score

- CISA-ADP: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/d7aec2a06730b774a97caaf48cbbc58330a85829> (patch)
- <https://git.kernel.org/stable/c/fed13a5478680614ba97fc87e71f16e2e197912e> (patch)

## Sources

- CVE List: [CVE-2024-50277](https://www.cve.org/CVERecord?id=CVE-2024-50277), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50277](https://nvd.nist.gov/vuln/detail/CVE-2024-50277), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50277 · Whole record: https://cve.day/CVE-2024-50277.json · Rebuilt by cve.day 2026-11-25T22:58:48.408Z
