CVE-2012-5536: Input Validation

Published Jun 22, 2012
·
Updated

A certain Red Hat build of the pamsshagentauth module on Red Hat Enterprise Linux (RHEL) 6 and Fedora Rawhide calls the glibc error function instead of the error function in the OpenSSH codebase, which allows local users to obtain sensitive information from process memory or possibly gain privileges via crafted use of an application that relies on this module, as demonstrated by su and sudo.

Other sources

A symbol clash issue was found in the pamsshagentauth PAM module as shipped with Red Hat Enterprise Linux 6 and Fedora. In case of certain errors, pamsshagentauth calls error() function to report problems. Due to the way pamsshagentauth was built in Red Hat Enterprise Linux and Fedora packages, this led to glibc's error() function being called instead of the error() function from OpenSSH sources that was meant to be used. As the two error functions expect different arguments, this could cause an application configured to use the pamsshagentauth module (typically su or sudo) to crash, disclose portion of its memory, or, possibly, execute arbitrary code.

This issue did not affect upstream versions of pamsshagentauth and was specific to Red Hat Enterprise Linux / Fedora packages, where pamsshagentauth is part of the openssh source RPM. This bundling is used to avoid duplicating OpenSSH source code. pamsshagentauth embeds a copy of the OpenSSH code. It is not used in Red Hat Enterprise Linux / Fedora packages, instead OpenSSH code from the OpenSSH build is used. This flaw was consequence of this way the PAM module is built.

Red Hat

Affected Software

2 affected components
Fedora Project Fedora Release Rawhide
redhat Enterprise Linux=6.0

Event History

Jun 22, 2012
Data Sourced
03:18 PM
DescriptionSeverityAffected Software
Feb 22, 2013
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-5536?

CVE-2012-5536 has a moderate severity rating due to potential local information leakage and privilege escalation.

2

How do I fix CVE-2012-5536?

To mitigate CVE-2012-5536, update the pam_ssh_agent_auth module to the latest version provided by Red Hat or Fedora.

3

What systems are affected by CVE-2012-5536?

CVE-2012-5536 affects Red Hat Enterprise Linux 6.0 and Fedora Rawhide installations.

4

What are the risks associated with CVE-2012-5536?

The risks include local users gaining access to sensitive information in process memory, which could lead to privilege escalation.

5

Is CVE-2012-5536 related to OpenSSH?

Yes, CVE-2012-5536 is related to a flaw in how the pam_ssh_agent_auth module interacts with the OpenSSH codebase.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203