← Database

CVE-2021-4150

MEDIUM CVSS: 5.5 Published: 2022-03-23 Modified: 2026-06-17

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 Platforms

Linux Linux Kernel

Weakness Type

CWE-416, CWE-416

References