Bug 576011 (CVE-2010-0629)

Summary: CVE-2010-0629 krb5: kadmind use-after-free remote crash (MITKRB5-SA-2010-003)
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: batkisso, jlieskov, lsmid, mjc, nalin, rryder, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://web.mit.edu/kerberos/www/advisories/MITKRB5-SA-2010-003.txt
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-09 06:16:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 578185, 578186    
Bug Blocks:    

Description Vincent Danen 2010-03-23 01:21:18 UTC
Brian Atkisson reported that the kadmind server on a master KDC was crashing due to certain requests from kadmin clients from krb5 1.8.  This is due to check_handle() in server_stubs.c returning a failure if the clients tries to start with API version 3.  The server frees the handle, and then attempts to dereference the handle when calling krb5_get_error_message(), at which point kadmind will usually segfault and crash.

This has already been fixed upstream in changeset 20485:

http://src.mit.edu/fisheye/changelog/krb5/?cs=20485

Comment 2 Vincent Danen 2010-03-23 02:08:28 UTC
This was previously reported to Debian:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=567052

and upstream:

http://krbdev.mit.edu/rt/Ticket/Display.html?user=guest&pass=guest&id=5998

By the looks of the upstream reports, this is just a denial of service, nothing more.  It was also assigned CVE-2010-0629.

Comment 10 Vincent Danen 2010-03-23 19:50:48 UTC
Looking at the commit, this would have been fixed in 1.6.4, which means Fedora 11 is vulnerable.

This issue also does not affect Red Hat Enterprise Linux 4 or earlier as the variable in question (handle) isn't referenced after it is freed.

This issue does affect Red Hat Enterprise Linux 5.

Comment 13 Jan Lieskovsky 2010-04-06 21:01:56 UTC
Public via:
  [1] http://web.mit.edu/Kerberos/advisories/MITKRB5-SA-2010-003.txt

Comment 14 errata-xmlrpc 2010-04-06 23:07:58 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2010:0343 https://rhn.redhat.com/errata/RHSA-2010-0343.html

Comment 15 Fedora Update System 2010-04-07 06:47:45 UTC
krb5-1.6.3-29.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/krb5-1.6.3-29.fc11

Comment 16 Fedora Update System 2010-04-09 01:42:00 UTC
krb5-1.6.3-29.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.