{"vuid":"VU#350792","idnumber":"350792","name":"MIT Kerberos krb524d insecurely deallocates memory (double-free)","keywords":["MIT","Kerberos 5","double-free","error conditions krb524d"],"overview":"The MIT Kerberos krb524d daemon does not securely deallocate heap memory when handling an error condition, resulting in a double-free vulnerability. An unauthenticated, remote attacker could execute arbitrary code on a system running krb524d, which in many cases is also a Kerberos Distribution Center (KDC). The compromise of a KDC system can lead to the compromise of an entire Kerberos realm. An attacker may also be able to cause a denial of service on a system running krb524d.","clean_desc":"As described on the MIT Kerberos web site:  \"Kerberos is a network authentication protocol. It is designed to provide strong authentication for client/server applications by using secret-key cryptography.\"  MIT Kerberos code is used in network applications from a variety of different vendors and is included in many UNIX and Linux distributions. The MIT Kerberos krb524d daemon converts Kerberos 5 service tickets into Kerberos 4 service tickets. There is a double-free vulnerability in krb524d that can be triggered during the conversion of a cross-realm ticket. From MITKRB5-SA-2004-002: The patch (introduced in krb5-1.2.8 and present in all subsequent\nreleases) for disabling krb4 cross-realm authentication in krb524d\nintroduced a double-free vulnerability. If handle_classic_v4() denies\nthe conversion of a cross-realm ticket, v5tkt->enc_part2 gets freed\nbut not nulled, so do_connection() double-frees many things when it\nsubsequently calls krb5_free_ticket().","impact":"An unauthenticated, remote attacker could execute arbitrary code on a system running krb524d. In many cases, this system also operates a KDC, so this vulnerability could allow an attacker to gain the master secret for a Kerberos realm, leading to compromise of the entire realm. An attacker may also be able to crash a system running krb524d, causing a denial of service.","resolution":"Apply a patch\nApply the appropriate patch(es) referenced in MITKRB5-SA-2004-002 or specified by your vendor. Upgrade According to MITKRB5-SA-2004-002, \"The upcoming krb5-1.3.5 release will contain fixes for these problems.\"","workarounds":"Restrict access Depending on network architecture, it may be practical to restrict access to systems running krb524d (4444/udp) from untrusted networks such as the Internet. While this will help to limit the source of attacks, it will not prevent attacks from trusted hosts or networks or attackers who can successfully spoof their source addresses.","sysaffected":"","thanks":"Thanks to Tom Yu and the MIT Kerberos Development Team for reporting this vulnerability and coordinating with vendors. MITKRB5-SA-2004-002 acknowledges Marc Horowitz","author":"This document was written by Art Manion.","public":["http://web.mit.edu/kerberos/advisories/MITKRB5-SA-2004-002-dblfree.txt","http://web.mit.edu/kerberos/www/","http://www.cmf.nrl.navy.mil/CCS/people/kenh/kerberos-faq.html#krb524d","http://www.cmf.nrl.navy.mil/CCS/people/kenh/kerberos-faq.html#kerbfirewall","http://www.securitytracker.com/alerts/2004/Aug/1011106.html"],"cveids":["CVE-2004-0772"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2004-08-09T19:58:00Z","publicdate":"2004-08-31T00:00:00Z","datefirstpublished":"2004-09-02T17:12:57Z","dateupdated":"2004-09-03T20:22:19Z","revision":19,"vrda_d1_directreport":"","vrda_d1_population":"","vrda_d1_impact":"","cam_widelyknown":"15","cam_exploitation":"0","cam_internetinfrastructure":"14","cam_population":"9","cam_impact":"20","cam_easeofexploitation":"7","cam_attackeraccessrequired":"15","cam_scorecurrent":"10.276875","cam_scorecurrentwidelyknown":"12.04875","cam_scorecurrentwidelyknownexploited":"19.13625","ipprotocol":"","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":10.276875,"vulnote":null}