What’s Vulnerable › Vulnerabilities
CVE-2021-4150
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-03-23 · updated 2026-06-17
- Weakness: CWE-416
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.
Affected products
- Linux kernel: before 5.15; 5.15, 5.15-rc1, 5.15-rc2, 5.15-rc3, 5.15-rc4, 5.15-rc5 (+1) — fixed in 5.15
How to fix
Upgrade to a fixed version: Linux kernel 5.15. Check the vendor advisory for mitigations.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2025938
- https://lkml.org/lkml/2021/10/18/485
- https://lkml.org/lkml/2021/9/6/781
- https://bugzilla.redhat.com/show_bug.cgi?id=2025938
- https://lkml.org/lkml/2021/10/18/485
- https://lkml.org/lkml/2021/9/6/781
Get alerted when CVE-2021-4150 or the next vulnerability affects your stack