CVE-2021-4150 Use after free in kernel
A local attacker can cause a denial of service via a use-after-free flaw in the Linux kernel partition handling code.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-4150?
CVE-2021-4150 is a medium-severity use after free vulnerability in Linux kernel, published on 23 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A use-after-free flaw was found in the add_partition in block/partitions/core.c in the Linux kernel. A local attacker with user privileges could cause a denial of service on the system. The issue results from the lack of code cleanup when device_add call fails when adding a partition to the disk.
Weakness: CWE-416
Which versions are affected by CVE-2021-4150?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-4150?
No fix has been published for CVE-2021-4150 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2021-4150 being exploited?
There is no known exploitation of CVE-2021-4150 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as GHSA-wf58-5834-37vc, UBUNTU-CVE-2021-4150.