Skip to navigation

Security Advisory Critical: krb5 security and bugfix update

Advisory: RHSA-2008:0164-6
Type: Security Advisory
Severity: Critical
Issued on: 2008-03-18
Last updated on: 2008-03-18
Affected Products: RHEL Desktop Workstation (v. 5 client)
Red Hat Enterprise Linux (v. 5 server)
Red Hat Enterprise Linux Desktop (v. 5 client)
Red Hat Enterprise Linux EUS (v. 5.1.z server)
CVEs (cve.mitre.org): CVE-2007-5901
CVE-2007-5971
CVE-2008-0062
CVE-2008-0063
CVE-2008-0947

Details

Updated krb5 packages that resolve several issues and fix multiple bugs are
now available for Red Hat Enterprise Linux 5.

This update has been rated as having critical security impact by the Red
Hat Security Response Team.

Kerberos is a network authentication system which allows clients and
servers to authenticate to each other through use of symmetric encryption
and a trusted third party, the KDC.

A flaw was found in the way the MIT Kerberos Authentication Service and Key
Distribution Center server (krb5kdc) handled Kerberos v4 protocol packets.
An unauthenticated remote attacker could use this flaw to crash the
krb5kdc daemon, disclose portions of its memory, or possibly execute
arbitrary code using malformed or truncated Kerberos v4 protocol requests.
(CVE-2008-0062, CVE-2008-0063)

This issue only affected krb5kdc with Kerberos v4 protocol compatibility
enabled, which is the default setting on Red Hat Enterprise Linux 4.
Kerberos v4 protocol support can be disabled by adding "v4_mode=none"
(without the quotes) to the "[kdcdefaults]" section of
/var/kerberos/krb5kdc/kdc.conf.

Jeff Altman of Secure Endpoints discovered a flaw in the RPC library as
used by MIT Kerberos kadmind server. An unauthenticated remote attacker
could use this flaw to crash kadmind or possibly execute arbitrary code.
This issue only affected systems with certain resource limits configured
and did not affect systems using default resource limits used by Red Hat
Enterprise Linux 5. (CVE-2008-0947)

Red Hat would like to thank MIT for reporting these issues.

Multiple memory management flaws were discovered in the GSSAPI library used
by MIT Kerberos. These flaws could possibly result in use of already freed
memory or an attempt to free already freed memory blocks (double-free
flaw), possibly causing a crash or arbitrary code execution.
(CVE-2007-5901, CVE-2007-5971)

In addition to the security issues resolved above, the following bugs were
also fixed:

* delegated krb5 credentials were not properly stored when SPNEGO was the
underlying mechanism during GSSAPI authentication. Consequently,
applications attempting to copy delegated Kerberos 5 credentials into a
credential cache received an "Invalid credential was supplied" message
rather than a copy of the delegated credentials. With this update, SPNEGO
credentials can be properly searched, allowing applications to copy
delegated credentials as expected.

* applications can initiate context acceptance (via gss_accept_sec_context)
without passing a ret_flags value that would indicate that credentials were
delegated. A delegated credential handle should have been returned in such
instances. This updated package adds a temp_ret_flag that stores the
credential status in the event no other ret_flags value is passed by an
application calling gss_accept_sec_context.

* kpasswd did not fallback to TCP on receipt of certain errors, or when a
packet was too big for UDP. This update corrects this.

* when the libkrb5 password-routine generated a set-password or
change-password request, incorrect sequence numbers were generated for all
requests subsequent to the first request. This caused password change
requests to fail if the primary server was unavailable. This updated
package corrects this by saving the sequence number value after the AP-REQ
data is built and restoring this value before the request is generated.

* when a user's password expired, kinit would not prompt that user to
change the password, instead simply informing the user their password had
expired. This update corrects this behavior: kinit now prompts for a new
password to be set when a password has expired.

All krb5 users are advised to upgrade to these updated packages, which
contain backported fixes to address these vulnerabilities and fix these
bugs.


Solution

Before applying this update, make sure that all previously-released
errata relevant to your system have been applied.

This update is available via Red Hat Network. Details on how to use
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/FAQ_58_10188

Updated packages

RHEL Desktop Workstation (v. 5 client)

SRPMS:
krb5-1.6.1-17.el5_1.1.src.rpm
File outdated by:  RHSA-2013:0942
    MD5: b3395b8693a926c96799566c553daba6
 
IA-32:
krb5-devel-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 06d1a15f52b65d010b1d5df16356cf62
krb5-server-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: b25e989385676a14da9bc41f3ac5344f
 
x86_64:
krb5-devel-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 06d1a15f52b65d010b1d5df16356cf62
krb5-devel-1.6.1-17.el5_1.1.x86_64.rpm
File outdated by:  RHSA-2013:0942
    MD5: add8f21846a5d9d9fbf72dd97368c7dd
krb5-server-1.6.1-17.el5_1.1.x86_64.rpm
File outdated by:  RHSA-2013:0942
    MD5: 5670db4220297710f9ed4b6066ad180c
 
Red Hat Enterprise Linux (v. 5 server)

SRPMS:
krb5-1.6.1-17.el5_1.1.src.rpm
File outdated by:  RHSA-2013:0942
    MD5: b3395b8693a926c96799566c553daba6
 
IA-32:
krb5-devel-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 06d1a15f52b65d010b1d5df16356cf62
krb5-libs-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 846ed51a3fa616cf6dc96961e58e6896
krb5-server-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: b25e989385676a14da9bc41f3ac5344f
krb5-workstation-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 686f00c9a0a6d2403ad704e61015c38a
 
IA-64:
krb5-devel-1.6.1-17.el5_1.1.ia64.rpm
File outdated by:  RHSA-2013:0942
    MD5: d36e33210e0e7ff638ab4e98e9be5b42
krb5-libs-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 846ed51a3fa616cf6dc96961e58e6896
krb5-libs-1.6.1-17.el5_1.1.ia64.rpm
File outdated by:  RHSA-2013:0942
    MD5: 01d08c1eb88da1925892ff309880e35c
krb5-server-1.6.1-17.el5_1.1.ia64.rpm
File outdated by:  RHSA-2013:0942
    MD5: fd515faca151993fa3b0e2e41bd4313c
krb5-workstation-1.6.1-17.el5_1.1.ia64.rpm
File outdated by:  RHSA-2013:0942
    MD5: 84d33b6d43b7f9d4513d2cf9ad266d54
 
PPC:
krb5-devel-1.6.1-17.el5_1.1.ppc.rpm
File outdated by:  RHSA-2013:0942
    MD5: a5fc62a1371a51deab7ff7ae8d8b7d90
krb5-devel-1.6.1-17.el5_1.1.ppc64.rpm
File outdated by:  RHSA-2013:0942
    MD5: deff82b49fc8b53ce761dd8c204df037
krb5-libs-1.6.1-17.el5_1.1.ppc.rpm
File outdated by:  RHSA-2013:0942
    MD5: bcb466e8d262e4df87cd361c455cc2d4
krb5-libs-1.6.1-17.el5_1.1.ppc64.rpm
File outdated by:  RHSA-2013:0942
    MD5: 20c0c807fc1e930a880fd2d0ec458653
krb5-server-1.6.1-17.el5_1.1.ppc.rpm
File outdated by:  RHSA-2013:0942
    MD5: 9e338e1f55b78fe68382595454ad94c2
krb5-workstation-1.6.1-17.el5_1.1.ppc.rpm
File outdated by:  RHSA-2013:0942
    MD5: 6b88fd5615518a6c7673cddd7e5c1f59
 
s390x:
krb5-devel-1.6.1-17.el5_1.1.s390.rpm
File outdated by:  RHSA-2013:0942
    MD5: 772905b231f10388daf26b0ca18ae70b
krb5-devel-1.6.1-17.el5_1.1.s390x.rpm
File outdated by:  RHSA-2013:0942
    MD5: f7547d56873b57c7b1a731836c967786
krb5-libs-1.6.1-17.el5_1.1.s390.rpm
File outdated by:  RHSA-2013:0942
    MD5: 6949011f74e3c640345f635e73fea558
krb5-libs-1.6.1-17.el5_1.1.s390x.rpm
File outdated by:  RHSA-2013:0942
    MD5: 7b6ed830d64aae3e84674c66c69ccfdf
krb5-server-1.6.1-17.el5_1.1.s390x.rpm
File outdated by:  RHSA-2013:0942
    MD5: 0bcd1fb0eca4d92710f8012ea9628602
krb5-workstation-1.6.1-17.el5_1.1.s390x.rpm
File outdated by:  RHSA-2013:0942
    MD5: 62e8d02a357e1d11d20a44a3bf141922
 
x86_64:
krb5-devel-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 06d1a15f52b65d010b1d5df16356cf62
krb5-devel-1.6.1-17.el5_1.1.x86_64.rpm
File outdated by:  RHSA-2013:0942
    MD5: add8f21846a5d9d9fbf72dd97368c7dd
krb5-libs-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 846ed51a3fa616cf6dc96961e58e6896
krb5-libs-1.6.1-17.el5_1.1.x86_64.rpm
File outdated by:  RHSA-2013:0942
    MD5: a01f5477a76a1ccfa03e49305a50e21a
krb5-server-1.6.1-17.el5_1.1.x86_64.rpm
File outdated by:  RHSA-2013:0942
    MD5: 5670db4220297710f9ed4b6066ad180c
krb5-workstation-1.6.1-17.el5_1.1.x86_64.rpm
File outdated by:  RHSA-2013:0942
    MD5: b4308068766c540b8cf54f31802ed2b7
 
Red Hat Enterprise Linux Desktop (v. 5 client)

SRPMS:
krb5-1.6.1-17.el5_1.1.src.rpm
File outdated by:  RHSA-2013:0942
    MD5: b3395b8693a926c96799566c553daba6
 
IA-32:
krb5-libs-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 846ed51a3fa616cf6dc96961e58e6896
krb5-workstation-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 686f00c9a0a6d2403ad704e61015c38a
 
x86_64:
krb5-libs-1.6.1-17.el5_1.1.i386.rpm
File outdated by:  RHSA-2013:0942
    MD5: 846ed51a3fa616cf6dc96961e58e6896
krb5-libs-1.6.1-17.el5_1.1.x86_64.rpm
File outdated by:  RHSA-2013:0942
    MD5: a01f5477a76a1ccfa03e49305a50e21a
krb5-workstation-1.6.1-17.el5_1.1.x86_64.rpm
File outdated by:  RHSA-2013:0942
    MD5: b4308068766c540b8cf54f31802ed2b7
 
Red Hat Enterprise Linux EUS (v. 5.1.z server)

SRPMS:
krb5-1.6.1-17.el5_1.1.src.rpm
File outdated by:  RHSA-2013:0942
    MD5: b3395b8693a926c96799566c553daba6
 
IA-32:
krb5-devel-1.6.1-17.el5_1.1.i386.rpm     MD5: 06d1a15f52b65d010b1d5df16356cf62
krb5-libs-1.6.1-17.el5_1.1.i386.rpm     MD5: 846ed51a3fa616cf6dc96961e58e6896
krb5-server-1.6.1-17.el5_1.1.i386.rpm     MD5: b25e989385676a14da9bc41f3ac5344f
krb5-workstation-1.6.1-17.el5_1.1.i386.rpm     MD5: 686f00c9a0a6d2403ad704e61015c38a
 
IA-64:
krb5-devel-1.6.1-17.el5_1.1.ia64.rpm     MD5: d36e33210e0e7ff638ab4e98e9be5b42
krb5-libs-1.6.1-17.el5_1.1.i386.rpm     MD5: 846ed51a3fa616cf6dc96961e58e6896
krb5-libs-1.6.1-17.el5_1.1.ia64.rpm     MD5: 01d08c1eb88da1925892ff309880e35c
krb5-server-1.6.1-17.el5_1.1.ia64.rpm     MD5: fd515faca151993fa3b0e2e41bd4313c
krb5-workstation-1.6.1-17.el5_1.1.ia64.rpm     MD5: 84d33b6d43b7f9d4513d2cf9ad266d54
 
PPC:
krb5-devel-1.6.1-17.el5_1.1.ppc.rpm     MD5: a5fc62a1371a51deab7ff7ae8d8b7d90
krb5-devel-1.6.1-17.el5_1.1.ppc64.rpm     MD5: deff82b49fc8b53ce761dd8c204df037
krb5-libs-1.6.1-17.el5_1.1.ppc.rpm     MD5: bcb466e8d262e4df87cd361c455cc2d4
krb5-libs-1.6.1-17.el5_1.1.ppc64.rpm     MD5: 20c0c807fc1e930a880fd2d0ec458653
krb5-server-1.6.1-17.el5_1.1.ppc.rpm     MD5: 9e338e1f55b78fe68382595454ad94c2
krb5-workstation-1.6.1-17.el5_1.1.ppc.rpm     MD5: 6b88fd5615518a6c7673cddd7e5c1f59
 
s390x:
krb5-devel-1.6.1-17.el5_1.1.s390.rpm     MD5: 772905b231f10388daf26b0ca18ae70b
krb5-devel-1.6.1-17.el5_1.1.s390x.rpm     MD5: f7547d56873b57c7b1a731836c967786
krb5-libs-1.6.1-17.el5_1.1.s390.rpm     MD5: 6949011f74e3c640345f635e73fea558
krb5-libs-1.6.1-17.el5_1.1.s390x.rpm     MD5: 7b6ed830d64aae3e84674c66c69ccfdf
krb5-server-1.6.1-17.el5_1.1.s390x.rpm     MD5: 0bcd1fb0eca4d92710f8012ea9628602
krb5-workstation-1.6.1-17.el5_1.1.s390x.rpm     MD5: 62e8d02a357e1d11d20a44a3bf141922
 
x86_64:
krb5-devel-1.6.1-17.el5_1.1.i386.rpm     MD5: 06d1a15f52b65d010b1d5df16356cf62
krb5-devel-1.6.1-17.el5_1.1.x86_64.rpm     MD5: add8f21846a5d9d9fbf72dd97368c7dd
krb5-libs-1.6.1-17.el5_1.1.i386.rpm     MD5: 846ed51a3fa616cf6dc96961e58e6896
krb5-libs-1.6.1-17.el5_1.1.x86_64.rpm     MD5: a01f5477a76a1ccfa03e49305a50e21a
krb5-server-1.6.1-17.el5_1.1.x86_64.rpm     MD5: 5670db4220297710f9ed4b6066ad180c
krb5-workstation-1.6.1-17.el5_1.1.x86_64.rpm     MD5: b4308068766c540b8cf54f31802ed2b7
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

415321 - CVE-2007-5901 krb5: use-after-free in gssapi lib
415351 - CVE-2007-5971 krb5: double free in gssapi lib
432620 - CVE-2008-0062 krb5: uninitialized pointer use in krb5kdc
432621 - CVE-2008-0063 krb5: possible leak of sensitive data from krb5kdc using krb4 request
433596 - CVE-2008-0947 krb5: file descriptor array overflow in RPC library
436460 - gss_krb5_copy_ccache can't find delegated Kerberos creds when using SPNEGO
436465 - gss_init_sec_context() mechglue wrapper doesn't handle ret_flags right
436467 - kpasswd does not fallback to tcp
436468 - krb5 password changing uses incorrect sequence numbers for every server but the first
436470 - kinit does not automatically start a password change when password is expired


References



These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/