6.9
MEDIUM CVSS 2.0
CVE-2012-0056
Linux Kernel Mem_write Privilege Escalation Vulnerability
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.

INFO

Published Date :

Jan. 27, 2012, 3:55 p.m.

Last Modified :

April 11, 2025, 12:51 a.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2012-0056 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
Solution
Update the Linux kernel to patched versions to fix privilege escalation.
  • Update the Linux kernel packages.
  • Consult vendor advisories for specific updates.
Public PoC/Exploit Available at Github

CVE-2012-0056 has a 118 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2012-0056.

URL Resource
http://blog.zx2c4.com/749 Third Party Advisory
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commitdiff%3Bh=e268337dfe26dfc7efd422a804dbb27977a3cccc Vendor Advisory
http://secunia.com/advisories/47708 Broken Link
http://ubuntu.com/usn/usn-1336-1 Third Party Advisory
http://www.kb.cert.org/vuls/id/470151 Third Party Advisory US Government Resource
http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.2.2 Vendor Advisory
http://www.openwall.com/lists/oss-security/2012/01/18/1 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2012/01/18/2 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2012/01/19/4 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2012/01/22/4 Mailing List Third Party Advisory
http://www.redhat.com/support/errata/RHSA-2012-0052.html Third Party Advisory
http://www.redhat.com/support/errata/RHSA-2012-0061.html Third Party Advisory
http://www.securityfocus.com/bid/51625 Third Party Advisory VDB Entry
https://bugzilla.redhat.com/show_bug.cgi?id=782642 Issue Tracking Third Party Advisory
http://blog.zx2c4.com/749 Third Party Advisory
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commitdiff%3Bh=e268337dfe26dfc7efd422a804dbb27977a3cccc Vendor Advisory
http://secunia.com/advisories/47708 Broken Link
http://ubuntu.com/usn/usn-1336-1 Third Party Advisory
http://www.kb.cert.org/vuls/id/470151 Third Party Advisory US Government Resource
http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.2.2 Vendor Advisory
http://www.openwall.com/lists/oss-security/2012/01/18/1 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2012/01/18/2 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2012/01/19/4 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2012/01/22/4 Mailing List Third Party Advisory
http://www.redhat.com/support/errata/RHSA-2012-0052.html Third Party Advisory
http://www.redhat.com/support/errata/RHSA-2012-0061.html Third Party Advisory
http://www.securityfocus.com/bid/51625 Third Party Advisory VDB Entry
https://bugzilla.redhat.com/show_bug.cgi?id=782642 Issue Tracking Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2012-0056 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2012-0056 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

C Shell Python Ruby Makefile HTML Linker Script Batchfile Perl

Updated: 1 week, 1 day ago
5 stars 0 fork 0 watcher
Born at : Aug. 19, 2025, 3:53 a.m. This repo has been linked 93 different CVEs too.

None

Updated: 6 days, 3 hours ago
0 stars 0 fork 0 watcher
Born at : June 30, 2025, 2:51 a.m. This repo has been linked 13 different CVEs too.

OSCP Cheatsheet

Updated: 5 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : March 10, 2025, 11 a.m. This repo has been linked 13 different CVEs too.

None

Updated: 8 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Dec. 12, 2024, 10:41 a.m. This repo has been linked 5 different CVEs too.

OSCP Notes

Updated: 9 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : Oct. 27, 2024, 9:33 a.m. This repo has been linked 5 different CVEs too.

This repository is designed to provide a comprehensive collection of study materials, notes, and resources for the Offensive Security Certified Professional (OSCP) exam. It covers all key topics from basic to advanced, helping aspiring penetration testers to prepare efficiently for the exam.

cybersecurity hacking oscp oscp-guide oscp-journey oscp-prep

Updated: 3 months, 3 weeks ago
8 stars 1 fork 1 watcher
Born at : Oct. 4, 2024, 4:43 p.m. This repo has been linked 75 different CVEs too.

Auto Linux Kernel Local Privilege Escalation Exploit

Shell

Updated: 5 months ago
1 stars 0 fork 0 watcher
Born at : Aug. 23, 2024, 4:06 p.m. This repo has been linked 85 different CVEs too.

None

C Shell Python Assembly Ruby Makefile Meson

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : July 20, 2024, 8:34 p.m. This repo has been linked 91 different CVEs too.

None

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : July 10, 2024, 9:19 a.m. This repo has been linked 5 different CVEs too.

Auto Root / Privilege Escalation Exploit

autoroot privilege privilege-escalation root

Shell

Updated: 6 months, 1 week ago
4 stars 2 fork 2 watcher
Born at : June 11, 2024, 9:57 p.m. This repo has been linked 85 different CVEs too.

None

Updated: 1 year, 4 months ago
0 stars 0 fork 0 watcher
Born at : April 1, 2024, 2:14 p.m. This repo has been linked 4 different CVEs too.

:cactus: golang (linux) root exploitation framework

Go

Updated: 11 months ago
1 stars 0 fork 0 watcher
Born at : Feb. 23, 2024, 5:12 p.m. This repo has been linked 7 different CVEs too.

None

Updated: 1 year, 8 months ago
0 stars 0 fork 0 watcher
Born at : Dec. 20, 2023, 4:40 p.m. This repo has been linked 3 different CVEs too.

None

Updated: 9 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Nov. 28, 2023, 6:58 a.m. This repo has been linked 13 different CVEs too.

None

Updated: 1 year, 9 months ago
0 stars 0 fork 0 watcher
Born at : Nov. 10, 2023, 9:12 a.m. This repo has been linked 13 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2012-0056 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2012-0056 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://blog.zx2c4.com/749
    Added Reference http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commitdiff%3Bh=e268337dfe26dfc7efd422a804dbb27977a3cccc
    Added Reference http://secunia.com/advisories/47708
    Added Reference http://ubuntu.com/usn/usn-1336-1
    Added Reference http://www.kb.cert.org/vuls/id/470151
    Added Reference http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.2.2
    Added Reference http://www.openwall.com/lists/oss-security/2012/01/18/1
    Added Reference http://www.openwall.com/lists/oss-security/2012/01/18/2
    Added Reference http://www.openwall.com/lists/oss-security/2012/01/19/4
    Added Reference http://www.openwall.com/lists/oss-security/2012/01/22/4
    Added Reference http://www.redhat.com/support/errata/RHSA-2012-0052.html
    Added Reference http://www.redhat.com/support/errata/RHSA-2012-0061.html
    Added Reference http://www.securityfocus.com/bid/51625
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=782642
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Jul. 27, 2023

    Action Type Old Value New Value
    Changed Reference Type http://blog.zx2c4.com/749 No Types Assigned http://blog.zx2c4.com/749 Third Party Advisory
    Changed Reference Type http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commitdiff%3Bh=e268337dfe26dfc7efd422a804dbb27977a3cccc No Types Assigned http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commitdiff%3Bh=e268337dfe26dfc7efd422a804dbb27977a3cccc Vendor Advisory
    Changed Reference Type http://secunia.com/advisories/47708 Vendor Advisory http://secunia.com/advisories/47708 Broken Link
    Changed Reference Type http://ubuntu.com/usn/usn-1336-1 No Types Assigned http://ubuntu.com/usn/usn-1336-1 Third Party Advisory
    Changed Reference Type http://www.kb.cert.org/vuls/id/470151 No Types Assigned http://www.kb.cert.org/vuls/id/470151 Third Party Advisory, US Government Resource
    Changed Reference Type http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.2.2 No Types Assigned http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.2.2 Vendor Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2012/01/18/1 No Types Assigned http://www.openwall.com/lists/oss-security/2012/01/18/1 Mailing List, Third Party Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2012/01/18/2 No Types Assigned http://www.openwall.com/lists/oss-security/2012/01/18/2 Mailing List, Third Party Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2012/01/19/4 No Types Assigned http://www.openwall.com/lists/oss-security/2012/01/19/4 Mailing List, Third Party Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2012/01/22/4 No Types Assigned http://www.openwall.com/lists/oss-security/2012/01/22/4 Mailing List, Third Party Advisory
    Changed Reference Type http://www.redhat.com/support/errata/RHSA-2012-0052.html No Types Assigned http://www.redhat.com/support/errata/RHSA-2012-0052.html Third Party Advisory
    Changed Reference Type http://www.redhat.com/support/errata/RHSA-2012-0061.html No Types Assigned http://www.redhat.com/support/errata/RHSA-2012-0061.html Third Party Advisory
    Changed Reference Type http://www.securityfocus.com/bid/51625 No Types Assigned http://www.securityfocus.com/bid/51625 Third Party Advisory, VDB Entry
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=782642 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=782642 Issue Tracking, Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:2.6.39:*:*:*:*:*:*:* OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 2.6.39 up to (excluding) 3.0.18 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.1 up to (excluding) 3.2.2
  • CVE Modified by [email protected]

    Feb. 13, 2023

    Action Type Old Value New Value
    Changed Description CVE-2012-0056 kernel: proc: /proc/<pid>/mem mem_write insufficient permission checking 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.
    Removed CVSS V2 Red Hat, Inc. (AV:L/AC:L/Au:N/C:C/I:C/A:C)
    Removed Reference https://access.redhat.com/errata/RHSA-2012:0052 [No Types Assigned]
    Removed Reference https://access.redhat.com/errata/RHSA-2012:0061 [No Types Assigned]
    Removed Reference https://access.redhat.com/security/cve/CVE-2012-0056 [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 02, 2023

    Action Type Old Value New Value
    Changed 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. CVE-2012-0056 kernel: proc: /proc/<pid>/mem mem_write insufficient permission checking
    Added CVSS V2 Red Hat, Inc. (AV:L/AC:L/Au:N/C:C/I:C/A:C)
    Removed Reference http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=e268337dfe26dfc7efd422a804dbb27977a3cccc [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2012:0052 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2012:0061 [No Types Assigned]
    Added Reference https://access.redhat.com/security/cve/CVE-2012-0056 [No Types Assigned]
    Added Reference http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commitdiff%3Bh=e268337dfe26dfc7efd422a804dbb27977a3cccc [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 18, 2018

    Action Type Old Value New Value
    Added Reference http://www.kb.cert.org/vuls/id/470151 [No Types Assigned]
  • Initial Analysis by [email protected]

    Jan. 30, 2012

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 6.9
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

81.56 }} -1.27%

score

0.99134

percentile