Stack-based buffer overflow in linux-pam - CVE-2011-3148

 

Stack-based buffer overflow in linux-pam - CVE-2011-3148

Published: July 22, 2012 / Updated: May 9, 2023


Vulnerability identifier: #VU43802
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2011-3148
CWE-ID: CWE-121
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: git.kernel.org
Affected software:
linux-pam

Detailed vulnerability description

The vulnerability allows a local user to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the _assemble_line() function in modules/pam_env/pam_env.c when processing a long string of white spaces at the beginning of the ~/.pam_environment file. A local user can trigger a stack-based buffer overflow and execute arbitrary code on the target system.


How to mitigate CVE-2011-3148

Install update from vendor's website.

Sources