CVE-2024-50277 dm: fix a crash if blk_alloc_disk fails
A null pointer dereference in the Linux kernel device mapper can cause a system crash if disk allocation fails.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-50277?
CVE-2024-50277 is a medium-severity vulnerability in Linux kernel, published on 19 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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;".
Weakness: CWE-476
Which versions are affected by CVE-2024-50277?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50277?
Apply the vendor's patch.
Is CVE-2024-50277 being exploited?
There is no known exploitation of CVE-2024-50277 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-53603, AZL-53751, BELL-CVE-2024-50277, DEBIAN-CVE-2024-50277, GHSA-h7q2-h7p3-jwmj, ROOT-OS-DEBIAN-11-CVE-2024-50277 and 3 more.