ID CVE-2011-3149
Summary The _expand_arg function in the pam_env module (modules/pam_env/pam_env.c) in Linux-PAM (aka pam) before 1.1.5 does not properly handle when environment variable expansion can overflow, which allows local users to cause a denial of service (CPU consumption).
References
Vulnerable Configurations
  • Linux-PAM 0.99.1.0
    cpe:2.3:a:linux-pam:linux-pam:0.99.1.0
  • Linux-PAM 0.99.2.0
    cpe:2.3:a:linux-pam:linux-pam:0.99.2.0
  • Linux-PAM 0.99.2.1
    cpe:2.3:a:linux-pam:linux-pam:0.99.2.1
  • Linux-PAM 0.99.3.0
    cpe:2.3:a:linux-pam:linux-pam:0.99.3.0
  • Linux-PAM 0.99.4.0
    cpe:2.3:a:linux-pam:linux-pam:0.99.4.0
  • Linux-PAM 0.99.5.0
    cpe:2.3:a:linux-pam:linux-pam:0.99.5.0
  • Linux-PAM 0.99.6.0
    cpe:2.3:a:linux-pam:linux-pam:0.99.6.0
  • Linux-PAM 0.99.6.1
    cpe:2.3:a:linux-pam:linux-pam:0.99.6.1
  • Linux-PAM 0.99.6.2
    cpe:2.3:a:linux-pam:linux-pam:0.99.6.2
  • Linux-PAM 0.99.6.3
    cpe:2.3:a:linux-pam:linux-pam:0.99.6.3
  • Linux-PAM 0.99.7.0
    cpe:2.3:a:linux-pam:linux-pam:0.99.7.0
  • Linux-PAM 0.99.7.1
    cpe:2.3:a:linux-pam:linux-pam:0.99.7.1
  • Linux-PAM 0.99.8.0
    cpe:2.3:a:linux-pam:linux-pam:0.99.8.0
  • Linux-PAM 0.99.8.1
    cpe:2.3:a:linux-pam:linux-pam:0.99.8.1
  • Linux-PAM 0.99.9.0
    cpe:2.3:a:linux-pam:linux-pam:0.99.9.0
  • Linux-PAM 0.99.10.0
    cpe:2.3:a:linux-pam:linux-pam:0.99.10.0
  • Linux-PAM 1.0.0
    cpe:2.3:a:linux-pam:linux-pam:1.0.0
  • Linux-PAM 1.0.1
    cpe:2.3:a:linux-pam:linux-pam:1.0.1
  • Linux-PAM 1.0.2
    cpe:2.3:a:linux-pam:linux-pam:1.0.2
  • Linux-PAM 1.0.3
    cpe:2.3:a:linux-pam:linux-pam:1.0.3
  • Linux-PAM 1.0.4
    cpe:2.3:a:linux-pam:linux-pam:1.0.4
  • Linux-PAM 1.1.0
    cpe:2.3:a:linux-pam:linux-pam:1.1.0
  • Linux-PAM 1.1.1
    cpe:2.3:a:linux-pam:linux-pam:1.1.1
  • Linux-PAM 1.1.2
    cpe:2.3:a:linux-pam:linux-pam:1.1.2
  • Linux-PAM 1.1.3
    cpe:2.3:a:linux-pam:linux-pam:1.1.3
  • Linux-PAM 1.1.4
    cpe:2.3:a:linux-pam:linux-pam:1.1.4
CVSS
Base: 2.1 (as of 23-07-2012 - 13:59)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
LOCAL LOW NONE
Impact
ConfidentialityIntegrityAvailability
NONE NONE PARTIAL
nessus via4
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2326.NASL
    description Kees Cook of the ChromeOS security team discovered a buffer overflow in pam_env, a PAM module to set environment variables through the PAM stack, which allowed the execution of arbitrary code. An additional issue in argument parsing allows denial of service. The oldstable distribution (lenny) is not affected.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 56622
    published 2011-10-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=56622
    title Debian DSA-2326-1 : pam - several vulnerabilities
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20130221_PAM_ON_SL6_X.NASL
    description A stack-based buffer overflow flaw was found in the way the pam_env module parsed users' '~/.pam_environment' files. If an application's PAM configuration contained 'user_readenv=1' (this is not the default), a local attacker could use this flaw to crash the application or, possibly, escalate their privileges. (CVE-2011-3148) A denial of service flaw was found in the way the pam_env module expanded certain environment variables. If an application's PAM configuration contained 'user_readenv=1' (this is not the default), a local attacker could use this flaw to cause the application to enter an infinite loop. (CVE-2011-3149)
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 64955
    published 2013-03-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=64955
    title Scientific Linux Security Update : pam on SL6.x i386/x86_64
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_4_PAM-111025.NASL
    description The pam_env module is vulnerable to a stack overflow (CVE-2011-3148) and a DoS condition (CVE-2011-3149) when parsing users .pam_environment files.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 75991
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=75991
    title openSUSE Security Update : pam (openSUSE-SU-2011:1204-1)
  • NASL family Amazon Linux Local Security Checks
    NASL id ALA_ALAS-2013-160.NASL
    description A stack-based buffer overflow flaw was found in the way the pam_env module parsed users' '~/.pam_environment' files. If an application's PAM configuration contained 'user_readenv=1' (this is not the default), a local attacker could use this flaw to crash the application or, possibly, escalate their privileges. (CVE-2011-3148) A denial of service flaw was found in the way the pam_env module expanded certain environment variables. If an application's PAM configuration contained 'user_readenv=1' (this is not the default), a local attacker could use this flaw to cause the application to enter an infinite loop. (CVE-2011-3149)
    last seen 2019-02-21
    modified 2018-04-18
    plugin id 69719
    published 2013-09-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=69719
    title Amazon Linux AMI : pam (ALAS-2013-160)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2011-16365.NASL
    description Low impact security update from upstream. Only minor and safe changes. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2016-05-11
    plugin id 57073
    published 2011-12-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=57073
    title Fedora 15 : pam-1.1.5-1.fc15 (2011-16365)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2013-0521.NASL
    description From Red Hat Security Advisory 2013:0521 : Updated pam packages that fix two security issues, several bugs, and add various enhancements are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. Pluggable Authentication Modules (PAM) provide a system whereby administrators can set up authentication policies without having to recompile programs to handle authentication. A stack-based buffer overflow flaw was found in the way the pam_env module parsed users' '~/.pam_environment' files. If an application's PAM configuration contained 'user_readenv=1' (this is not the default), a local attacker could use this flaw to crash the application or, possibly, escalate their privileges. (CVE-2011-3148) A denial of service flaw was found in the way the pam_env module expanded certain environment variables. If an application's PAM configuration contained 'user_readenv=1' (this is not the default), a local attacker could use this flaw to cause the application to enter an infinite loop. (CVE-2011-3149) Red Hat would like to thank Kees Cook of the Google ChromeOS Team for reporting the CVE-2011-3148 and CVE-2011-3149 issues. These updated pam packages include numerous bug fixes and enhancements. Space precludes documenting all of these changes in this advisory. Users are directed to the Red Hat Enterprise Linux 6.4 Technical Notes, linked to in the References, for information on the most significant of these changes. All pam users are advised to upgrade to these updated packages, which contain backported patches to correct these issues and add these enhancements.
    last seen 2019-02-21
    modified 2018-07-18
    plugin id 68757
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=68757
    title Oracle Linux 6 : pam (ELSA-2013-0521)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_3_PAM-111025.NASL
    description The pam_env module is vulnerable to a stack overflow (CVE-2011-3148) and a DoS condition (CVE-2011-3149) when parsing users .pam_environment files. Additionally a missing return value check inside pam_xauth has been fixed (CVE-2010-3316).
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 75704
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=75704
    title openSUSE Security Update : pam (openSUSE-SU-2011:1208-1)
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-1237-1.NASL
    description Kees Cook discovered that the PAM pam_env module incorrectly handled certain malformed environment files. A local attacker could use this flaw to cause a denial of service, or possibly gain privileges. The default compiler options for affected releases should reduce the vulnerability to a denial of service. (CVE-2011-3148) Kees Cook discovered that the PAM pam_env module incorrectly handled variable expansion. A local attacker could use this flaw to cause a denial of service. (CVE-2011-3149) Stephane Chazelas discovered that the PAM pam_motd module incorrectly cleaned the environment during execution of the motd scripts. In certain environments, a local attacker could use this to execute arbitrary code as root, and gain privileges. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-12-01
    plugin id 56629
    published 2011-10-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=56629
    title Ubuntu 8.04 LTS / 10.04 LTS / 10.10 / 11.04 / 11.10 : pam vulnerabilities (USN-1237-1)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2013-0521.NASL
    description Updated pam packages that fix two security issues, several bugs, and add various enhancements are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. Pluggable Authentication Modules (PAM) provide a system whereby administrators can set up authentication policies without having to recompile programs to handle authentication. A stack-based buffer overflow flaw was found in the way the pam_env module parsed users' '~/.pam_environment' files. If an application's PAM configuration contained 'user_readenv=1' (this is not the default), a local attacker could use this flaw to crash the application or, possibly, escalate their privileges. (CVE-2011-3148) A denial of service flaw was found in the way the pam_env module expanded certain environment variables. If an application's PAM configuration contained 'user_readenv=1' (this is not the default), a local attacker could use this flaw to cause the application to enter an infinite loop. (CVE-2011-3149) Red Hat would like to thank Kees Cook of the Google ChromeOS Team for reporting the CVE-2011-3148 and CVE-2011-3149 issues. These updated pam packages include numerous bug fixes and enhancements. Space precludes documenting all of these changes in this advisory. Users are directed to the Red Hat Enterprise Linux 6.4 Technical Notes, linked to in the References, for information on the most significant of these changes. All pam users are advised to upgrade to these updated packages, which contain backported patches to correct these issues and add these enhancements.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 65152
    published 2013-03-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=65152
    title CentOS 6 : pam (CESA-2013:0521)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2011-16390.NASL
    description Low impact security update from upstream. Only minor and safe changes. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2016-05-11
    plugin id 57002
    published 2011-12-05
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=57002
    title Fedora 16 : pam-1.1.5-1.fc16 (2011-16390)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201206-31.NASL
    description The remote host is affected by the vulnerability described in GLSA-201206-31 (Linux-PAM: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Linux-PAM. Please review the CVE identifiers referenced below for details. Impact : A local attacker could use specially crafted files to cause a buffer overflow, possibly resulting in privilege escalation or Denial of Service. Furthermore, a local attacker could execute specially crafted programs or symlink attacks, possibly resulting in data loss or disclosure of sensitive information. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-07-11
    plugin id 59704
    published 2012-06-26
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=59704
    title GLSA-201206-31 : Linux-PAM: Multiple vulnerabilities
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_PAM-111025.NASL
    description The pam_env module is vulnerable to a stack overflow (CVE-2011-3148) and a DoS condition (CVE-2011-3149) when parsing users .pam_environment files. Additionally a missing return value check inside pam_xauth has been fixed. (CVE-2010-3316)
    last seen 2019-02-21
    modified 2013-10-25
    plugin id 57126
    published 2011-12-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=57126
    title SuSE 11.1 Security Update : pam (SAT Patch Number 5342)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_PAM-7815.NASL
    description The pam_env module is vulnerable to a stack overflow (CVE-2011-3148) and a DoS condition (CVE-2011-3149) when parsing users .pam_environment files. Additionally a missing return value check inside pam_xauth has been fixed. (CVE-2010-3316)
    last seen 2019-02-21
    modified 2012-07-24
    plugin id 56701
    published 2011-11-03
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=56701
    title SuSE 10 Security Update : pam (ZYPP Patch Number 7815)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2013-0521.NASL
    description Updated pam packages that fix two security issues, several bugs, and add various enhancements are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. Pluggable Authentication Modules (PAM) provide a system whereby administrators can set up authentication policies without having to recompile programs to handle authentication. A stack-based buffer overflow flaw was found in the way the pam_env module parsed users' '~/.pam_environment' files. If an application's PAM configuration contained 'user_readenv=1' (this is not the default), a local attacker could use this flaw to crash the application or, possibly, escalate their privileges. (CVE-2011-3148) A denial of service flaw was found in the way the pam_env module expanded certain environment variables. If an application's PAM configuration contained 'user_readenv=1' (this is not the default), a local attacker could use this flaw to cause the application to enter an infinite loop. (CVE-2011-3149) Red Hat would like to thank Kees Cook of the Google ChromeOS Team for reporting the CVE-2011-3148 and CVE-2011-3149 issues. These updated pam packages include numerous bug fixes and enhancements. Space precludes documenting all of these changes in this advisory. Users are directed to the Red Hat Enterprise Linux 6.4 Technical Notes, linked to in the References, for information on the most significant of these changes. All pam users are advised to upgrade to these updated packages, which contain backported patches to correct these issues and add these enhancements.
    last seen 2019-02-21
    modified 2018-11-26
    plugin id 64768
    published 2013-02-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=64768
    title RHEL 6 : pam (RHSA-2013:0521)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_PAM-7814.NASL
    description The pam_env module is vulnerable to a stack overflow (CVE-2011-3148) and a DoS condition (CVE-2011-3149) when parsing users .pam_environment files. Additionally a missing return value check inside pam_xauth has been fixed. (CVE-2010-3316)
    last seen 2019-02-21
    modified 2012-07-24
    plugin id 57239
    published 2011-12-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=57239
    title SuSE 10 Security Update : pam (ZYPP Patch Number 7814)
redhat via4
advisories
bugzilla
id 815516
title pam remember can check wrong username if it is a substring of another username
oval
AND
  • OR
    • comment Red Hat Enterprise Linux 6 Client is installed
      oval oval:com.redhat.rhsa:tst:20100842001
    • comment Red Hat Enterprise Linux 6 Server is installed
      oval oval:com.redhat.rhsa:tst:20100842002
    • comment Red Hat Enterprise Linux 6 Workstation is installed
      oval oval:com.redhat.rhsa:tst:20100842003
    • comment Red Hat Enterprise Linux 6 ComputeNode is installed
      oval oval:com.redhat.rhsa:tst:20100842004
  • OR
    • AND
      • comment pam is earlier than 0:1.1.1-13.el6
        oval oval:com.redhat.rhsa:tst:20130521005
      • comment pam is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20100891006
    • AND
      • comment pam-devel is earlier than 0:1.1.1-13.el6
        oval oval:com.redhat.rhsa:tst:20130521007
      • comment pam-devel is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20100891008
rhsa
id RHSA-2013:0521
released 2013-02-21
severity Moderate
title RHSA-2013:0521: pam security, bug fix, and enhancement update (Moderate)
rpms
  • pam-0:1.1.1-13.el6
  • pam-devel-0:1.1.1-13.el6
refmap via4
confirm
gentoo GLSA-201206-31
secunia
  • 46583
  • 49711
ubuntu USN-1237-1
Last major update 05-03-2014 - 23:31
Published 22-07-2012 - 13:55
Last modified 03-01-2019 - 10:01
Back to Top