ID CVE-2012-0056
Summary 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.
References
Vulnerable Configurations
  • cpe:2.3:o:linux:linux_kernel:3.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.1.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.1.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.2:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.2:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.2:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.2:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.2:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.2:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.2:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.2:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.2:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.2:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.2:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.2:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.2:rc7:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.2:rc7:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.2.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.2.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39:rc7:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39:rc7:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:2.6.39.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:2.6.39.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0:rc7:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0:rc7:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.0:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.0:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.13:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.13:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.14:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.14:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.15:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.15:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.16:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.16:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:3.0.17:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:3.0.17:*:*:*:*:*:*:*
CVSS
Base: 6.9 (as of 27-07-2023 - 15:21)
Impact:
Exploitability:
CWE CWE-264
CAPEC
  • Manipulating Web Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
  • Using Malicious Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
Access
VectorComplexityAuthentication
LOCAL MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:L/AC:M/Au:N/C:C/I:C/A:C
redhat via4
advisories
  • bugzilla
    id 782642
    title /mem mem_write insufficient permission checking
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 6 is installed
        oval oval:com.redhat.rhba:tst:20111656003
      • OR
        • comment kernel earlier than 0:2.6.32-220.4.1.el6 is currently running
          oval oval:com.redhat.rhsa:tst:20120052025
        • comment kernel earlier than 0:2.6.32-220.4.1.el6 is set to boot up on next boot
          oval oval:com.redhat.rhsa:tst:20120052026
      • OR
        • AND
          • comment kernel is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052001
          • comment kernel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842002
        • AND
          • comment kernel-bootwrapper is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052003
          • comment kernel-bootwrapper is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842004
        • AND
          • comment kernel-debug is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052005
          • comment kernel-debug is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842006
        • AND
          • comment kernel-debug-devel is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052007
          • comment kernel-debug-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842008
        • AND
          • comment kernel-devel is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052009
          • comment kernel-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842010
        • AND
          • comment kernel-doc is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052011
          • comment kernel-doc is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842012
        • AND
          • comment kernel-firmware is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052013
          • comment kernel-firmware is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842014
        • AND
          • comment kernel-headers is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052015
          • comment kernel-headers is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842016
        • AND
          • comment kernel-kdump is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052017
          • comment kernel-kdump is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842018
        • AND
          • comment kernel-kdump-devel is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052019
          • comment kernel-kdump-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842020
        • AND
          • comment perf is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052021
          • comment perf is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20100842022
        • AND
          • comment python-perf is earlier than 0:2.6.32-220.4.1.el6
            oval oval:com.redhat.rhsa:tst:20120052023
          • comment python-perf is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20111530024
    rhsa
    id RHSA-2012:0052
    released 2012-01-23
    severity Important
    title RHSA-2012:0052: kernel security and bug fix update (Important)
  • rhsa
    id RHSA-2012:0061
rpms
  • kernel-0:2.6.32-220.4.1.el6
  • kernel-bootwrapper-0:2.6.32-220.4.1.el6
  • kernel-debug-0:2.6.32-220.4.1.el6
  • kernel-debug-debuginfo-0:2.6.32-220.4.1.el6
  • kernel-debug-devel-0:2.6.32-220.4.1.el6
  • kernel-debuginfo-0:2.6.32-220.4.1.el6
  • kernel-debuginfo-common-i686-0:2.6.32-220.4.1.el6
  • kernel-debuginfo-common-ppc64-0:2.6.32-220.4.1.el6
  • kernel-debuginfo-common-s390x-0:2.6.32-220.4.1.el6
  • kernel-debuginfo-common-x86_64-0:2.6.32-220.4.1.el6
  • kernel-devel-0:2.6.32-220.4.1.el6
  • kernel-doc-0:2.6.32-220.4.1.el6
  • kernel-firmware-0:2.6.32-220.4.1.el6
  • kernel-headers-0:2.6.32-220.4.1.el6
  • kernel-kdump-0:2.6.32-220.4.1.el6
  • kernel-kdump-debuginfo-0:2.6.32-220.4.1.el6
  • kernel-kdump-devel-0:2.6.32-220.4.1.el6
  • perf-0:2.6.32-220.4.1.el6
  • perf-debuginfo-0:2.6.32-220.4.1.el6
  • python-perf-0:2.6.32-220.4.1.el6
  • kernel-rt-0:3.0.9-rt26.46.el6rt
  • kernel-rt-debug-0:3.0.9-rt26.46.el6rt
  • kernel-rt-debug-debuginfo-0:3.0.9-rt26.46.el6rt
  • kernel-rt-debug-devel-0:3.0.9-rt26.46.el6rt
  • kernel-rt-debuginfo-0:3.0.9-rt26.46.el6rt
  • kernel-rt-debuginfo-common-x86_64-0:3.0.9-rt26.46.el6rt
  • kernel-rt-devel-0:3.0.9-rt26.46.el6rt
  • kernel-rt-doc-0:3.0.9-rt26.46.el6rt
  • kernel-rt-firmware-0:3.0.9-rt26.46.el6rt
  • kernel-rt-trace-0:3.0.9-rt26.46.el6rt
  • kernel-rt-trace-debuginfo-0:3.0.9-rt26.46.el6rt
  • kernel-rt-trace-devel-0:3.0.9-rt26.46.el6rt
  • kernel-rt-vanilla-0:3.0.9-rt26.46.el6rt
  • kernel-rt-vanilla-debuginfo-0:3.0.9-rt26.46.el6rt
  • kernel-rt-vanilla-devel-0:3.0.9-rt26.46.el6rt
refmap via4
bid 51625
cert-vn VU#470151
confirm
misc http://blog.zx2c4.com/749
mlist
  • [oss-security] 20120117 Re: CVE request: kernel: proc: clean up and fix /proc//mem handling
  • [oss-security] 20120118 CVE request: kernel: proc: clean up and fix /proc//mem handling
  • [oss-security] 20120119 Re: CVE request: kernel: proc: clean up and fix /proc//mem handling
  • [oss-security] 20120122 Re: CVE request: kernel: proc: clean up and fix /proc//mem handling
secunia 47708
ubuntu USN-1336-1
Last major update 27-07-2023 - 15:21
Published 27-01-2012 - 15:55
Last modified 27-07-2023 - 15:21
Back to Top