Bug 157103 - CAN-2005-1174 krb5 buffer overflow, heap corruption in KDC (CAN-2005-1175)
CAN-2005-1174 krb5 buffer overflow, heap corruption in KDC (CAN-2005-1175)
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: krb5 (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Nalin Dahyabhai
Brian Brock
: Security
Depends On:
  Show dependency treegraph
Reported: 2005-05-06 16:56 EDT by Josh Bressers
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version: RHSA-2005-567
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-07-12 14:15:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Josh Bressers 2005-05-06 16:56:31 EDT
The MIT krb5 Key Distribution Center (KDC) implementation can corrupt
the heap by attempting to free memory at a random address when it
receives a certain unlikely (but valid) request via a TCP connection.
This attempt to free unallocated memory can result in a KDC crash and
consequent denial of service.  [CAN-2005-1174]

Additionally, the same request, when received by the KDC via either
TCP or UDP, can trigger a bug in the krb5 library which results in a
single-byte overflow of a heap buffer.  Additionally, application
servers are vulnerable to a highly improbable attack, provided that
the attacker controls a realm sharing a cross-realm key with the
target realm. [CAN-2005-1175]

An unauthenticated attacker may be able to use these vulnerabilities
to execute arbitrary code on the KDC host, potentially compromising an
entire Kerberos realm.  No exploit code is known to exist at this
time.  Exploitation of these vulnerabilities is believed to be
Comment 1 Josh Bressers 2005-05-06 17:00:26 EDT

It seems CAN-2005-1174 sin't going to affect RHEL2.1 or RHEL3, can you verify this?

CAN-2005-1175 should affect RHEL2.1, RHEL3, and RHEL4
Comment 2 Nalin Dahyabhai 2005-06-30 02:08:04 EDT
I can confirm that CAN-2005-1174 shouldn't affect RHEL 2.1 or 3.  Both releases
include krb5 1.2.x, which predates the TCP code.  (The variable in question is
there, but the code path which leads to it being mistakenly passed to free()
before it's initialized isn't.)
Comment 3 Josh Bressers 2005-07-07 08:59:41 EDT
According to MIT, in order to exploit CAN-2005-1175 the attacker must control a
realm sharing a cross-realm key with the target realm.  I'm lowering the
severity to "moderate" for that particular issue.
Comment 4 Mark J. Cox 2005-07-12 13:59:35 EDT
public, removing embargo
Comment 5 Red Hat Bugzilla 2005-07-12 14:15:49 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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