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: 8.5 [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]
CVE-ID: CVE-2011-3148
CWE-ID: CWE-121
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

linux-pam
Amazon Linux AMI
Gentoo Linux
SUSE Linux

How to mitigate CVE-2011-3148

Install update from vendor's website.

linux-pam - update to 1.1.5

External References

Related Security Bulletins