CVE-2011-3148 Memory corruption in n/a

Medium 4.6 Published Updated

Local attackers can trigger a stack-based buffer overflow in the pam_env module via a crafted environment file, potentially leading to code execution or system crashes.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2011-3148?

CVE-2011-3148 is a medium-severity memory corruption vulnerability in n/a, published on 22 Jul 2012. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Stack-based buffer overflow in the _assemble_line function in modules/pam_env/pam_env.c in Linux-PAM (aka pam) before 1.1.5 allows local users to cause a denial of service (crash) and possibly execute arbitrary code via a long string of white spaces at the beginning of the ~/.pam_environment file.

Weakness: CWE-119

Which versions are affected by CVE-2011-3148?

It affects 1 product.

Products include Linux-Pam Linux-Pam.

How do I fix CVE-2011-3148?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2011-3148 being exploited?

There is no known exploitation of CVE-2011-3148 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2011-3148, GHSA-gh7c-55pq-pm8c.

Is CVE-2011-3148 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free