Kerberos V5 Multiple Vulnerabilities
Secunia Advisory: SA12408
Release Date: 2004-09-01
Last Update: 2004-09-03
Popularity: 14,442 views

Critical:
Highly critical
Impact: DoS
System access
Where: From remote
Solution Status: Vendor Patch

Software:Kerberos 5.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2004-0642
CVE-2004-0643
CVE-2004-0644
CVE-2004-0772


Description:
Multiple vulnerabilities have been reported in Kerberos V5, where the most serious potentially can be exploited by malicious people to compromise a vulnerable system.

1) Various double-free errors within the KDC (Key Distribution Center) cleanup code and in client libraries may allow unauthenticated people to execute arbitrary code on an affected system. The problem is that the ASN.1 decoding functions may free an allocated buffer on the heap, which may then be freed again later by either the KDC cleanup functionality or certain library functions.

This vulnerability affects version 1.3.4 and prior.

2) Some double-free errors within the "krb5_rd_cred()" function may allow authenticated users to execute arbitrary code on an affected system. The problem is that the function attempts to free an allocated buffer on the heap, which has already been freed by the ASN.1 decoding function when an error is encountered.

This can be exploited via affected services calling the vulnerable function (e.g. krshd, klogind, and telnetd).

This vulnerability affects version 1.3.1 and prior.

3) A double-free error within krb524d may allow execution of arbitrary code. The problem is that a buffer allocated on the heap is freed, when conversion of a cross-realm ticket is denied and then later freed again when calling the "krb5_free_ticket()" function.

This vulnerability affects version 1.2.8 through 1.3.4.

4) An error within the ASN.1 decoder when handling indefinite length BER encodings can be exploited by unauthenticated people to cause a vulnerable system to hang in an infinite loop via a specially crafted BER encoding.

This vulnerability affects versions 1.2.2 through 1.3.4.

Solution:
Patches are available (see patch matrix in the original advisories).

Update to version 1.3.5, when it becomes available.
http://web.mit.edu/kerberos/dist/index.html

Provided and/or discovered by:
1) Will Fiveash and Nico Williams
2) Joseph Galbraith and John Hawkinson
3) Marc Horowitz
4) Will Fiveash and Nico Williams

Changelog:
2004-09-02: Added links to US-CERT vulnerability notes.
2004-09-03: Added links to US-CERT vulnerability notes.

Original Advisory:
http://web.mit.edu/kerberos/www/advisories/MITKRB5-SA-2004-002-dblfree.txt
http://web.mit.edu/kerberos/www/advisories/MITKRB5-SA-2004-003-asn1.txt

Other References:
US-CERT VU#795632:
http://www.kb.cert.org/vuls/id/795632

US-CERT VU#866472:
http://www.kb.cert.org/vuls/id/866472

US-CERT VU#550464:
http://www.kb.cert.org/vuls/id/550464

US-CERT VU#350792:
http://www.kb.cert.org/vuls/id/350792


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. phpBB Cross Site Scripting and Unspecified Vulnerabilities // 21 views
2. PluggedOut Blog "index.php" SQL Injection Vulnerabilities // 18 views
3. Microsoft Word Malformed Object Pointer Vulnerability // 18 views
4. Subdreamer Light Global Variables SQL Injection Vulnerability // 18 views
5. phpBB BBcode Script Insertion Vulnerability // 17 views
6. Drupal Multiple Vulnerabilities // 13 views
7. Drupal Multiple Vulnerabilities // 13 views
8. Microsoft Office Two Code Execution Vulnerabilities // 12 views
9. CS-Cart "cs_cookies" SQL Injection Vulnerability // 12 views
10. Drupal Content Construction Kit Script Insertion Vulnerabilities // 12 views