6.9
MEDIUM
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 :

Nov. 21, 2024, 1:34 a.m.

Remotely Exploitable :

No

Impact Score :

10.0

Exploitability Score :

3.4
Public PoC/Exploit Available at Github

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

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

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

OSCP Notes

Updated: 3 weeks, 5 days 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: 1 month, 2 weeks ago
1 stars 0 fork 0 watcher
Born at : Oct. 4, 2024, 4:43 p.m. This repo has been linked 75 different CVEs too.

None

C Shell Python Assembly Ruby Makefile Meson

Updated: 4 months 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: 4 months, 2 weeks 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: 3 months, 1 week ago
2 stars 1 fork 1 watcher
Born at : June 11, 2024, 9:57 p.m. This repo has been linked 85 different CVEs too.

None

Updated: 7 months, 3 weeks 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: 9 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: 11 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: 11 months, 3 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 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.

None

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : Oct. 4, 2023, 12:43 p.m. This repo has been linked 5 different CVEs too.

bounty collection

Shell Python Dockerfile Ruby JavaScript ASP.NET Classic ASP HTML PHP Jupyter Notebook

Updated: 2 months, 3 weeks ago
26 stars 4 fork 4 watcher
Born at : Sept. 11, 2023, 11:19 a.m. This repo has been linked 234 different CVEs too.

None

Updated: 1 year, 4 months ago
0 stars 0 fork 0 watcher
Born at : July 18, 2023, 4:04 a.m. This repo has been linked 6 different CVEs too.

None

C Shell Python Ruby Makefile HTML

Updated: 1 year, 5 months ago
0 stars 0 fork 0 watcher
Born at : June 14, 2023, 7:23 p.m. This repo has been linked 50 different CVEs too.

None

Updated: 1 year, 5 months ago
0 stars 0 fork 0 watcher
Born at : June 13, 2023, 6:44 p.m. This repo has been linked 4 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 [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.
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.

Exploit Prediction

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

0.12 }} 0.08%

score

0.45754

percentile

CVSS2 - Vulnerability Scoring System
Access Vector
Access Complexity
Authentication
Confidentiality
Integrity
Availability