Bug 834618 - (CVE-2012-5536) CVE-2012-5536 pam_ssh_agent_auth: symbol crash leading to glibc error() called incorrectly
CVE-2012-5536 pam_ssh_agent_auth: symbol crash leading to glibc error() calle...
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 834404
Blocks: 834620 855229
  Show dependency treegraph
Reported: 2012-06-22 11:18 EDT by Jan Lieskovsky
Modified: 2013-02-21 23:40 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-02-21 23:40:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0519 normal SHIPPED_LIVE Moderate: openssh security, bug fix and enhancement update 2013-02-20 16:28:57 EST

  None (edit)
Description Jan Lieskovsky 2012-06-22 11:18:07 EDT
A symbol clash issue was found in the pam_ssh_agent_auth PAM module as shipped with Red Hat Enterprise Linux 6 and Fedora.  In case of certain errors, pam_ssh_agent_auth calls error() function to report problems.  Due to the way pam_ssh_agent_auth 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 pam_ssh_agent_auth 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 pam_ssh_agent_auth and was specific to Red Hat Enterprise Linux / Fedora packages, where pam_ssh_agent_auth is part of the openssh source RPM.  This bundling is used to avoid duplicating OpenSSH source code.  pam_ssh_agent_auth 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.
Comment 6 errata-xmlrpc 2013-02-21 05:27:59 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2013:0519 https://rhn.redhat.com/errata/RHSA-2013-0519.html
Comment 8 Huzaifa S. Sidhpurwala 2013-02-21 23:40:28 EST

This issue does not affect the version of openssh as shipped with Red Hat Enterprise Linux 5. This issue was addressed in Red Hat Enterprise Linux 6 via RHSA-2013:0519.

Note You need to log in before you can comment on or make changes to this bug.