CVE-2021-4150

MEDIUM

Linux Kernel < 5.15 - Use-After-Free in add_partition

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Issue Tracking, Third Party Advisory x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=2025938
Exploit, Third Party Advisory x_refsource_misc
https://lkml.org/lkml/2021/10/18/485
Exploit, Third Party Advisory x_refsource_misc
https://lkml.org/lkml/2021/9/6/781

Scores

CVSS v3 5.5
EPSS 0.0034
EPSS Percentile 25.5%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-416
Status published
Products (2)
linux/linux_kernel 5.15 (7 CPE variants)
linux/linux_kernel < 5.15
Published Mar 23, 2022
Tracked Since Feb 18, 2026