{"vuid":"VU#419344","idnumber":"419344","name":"MIT Kerberos 5 GSS-API library double-free vulnerability","keywords":["MIT","Kerberos 5","arbitrary code execution","RPC","GSS-API","apple_2007-004"],"overview":"The GSS-API library provided with MIT krb5 contains a vulnerability that may allow a remote, authenticated attacker to execute arbitrary code or cause a denial of service.","clean_desc":"A vulnerability in the way the GSS-API library provided with MIT krb5 handles messages with an invalid direction encoding may result in a double free. According to MIT krb5 Security Advisory MITKRB5-SA-2007-003: The kg_unseal_v1() function in src/lib/gssapi/krb5/k5unseal.c frees memory allocated for the \"message_buffer\" gss_buffer_t when it detects an invalid direction encoding on the message. It does not set the pointer to NULL, nor does it set the length to zero. An application subsequently calling gss_release_buffer() on this gss_buffer_t will cause memory to be freed twice. Much code provided with MIT krb5 does not attempt to call gss_release_buffer() when gss_unseal() or gss_unwrap() fails, even though the GSS-API C-bindings specification permits it to do so. The RPCSEC_GSS authentication flavor for the RPC library, introduced in krb5-1.4, does call gss_release_buffer() when gss_unwrap() fails. This allows an authenticated attacker to trigger a double-free situation. Note that this issue affects all releases of MIT krb5 up to and including krb5-1.6. Other server applications that utilize the RPC library or the MIT GSS-API library provided with MIT krb5 may also be affected. This vulnerability can be triggered by sending a specially crafted Kerberos message to a vulnerable system.","impact":"A remote, authenticated user may be able to execute arbitrary code on an affected system or cause the affected program to crash, resulting in a denial of service. Secondary impacts of code execution include complete compromise of the Kerberos key database.","resolution":"Apply Patch\nA patch can be obtained from MIT krb5 Security Advisory MITKRB5-SA-2007-003. MIT also states that this will be addressed in the upcoming krb5-1.6.1 release.","workarounds":"","sysaffected":"","thanks":"This issue is addressed in MIT krb5 Security Advisory MITKRB5-SA-2007-003","author":"This document was written by Chris Taschner.","public":["http://web.mit.edu/Kerberos/advisories/MITKRB5-SA-2007-003.txt","http://secunia.com/advisories/24757/","http://secunia.com/advisories/24735/","http://secunia.com/advisories/24750/","http://secunia.com/advisories/24740/","http://securitytracker.com/alerts/2007/Apr/1017852.html","http://docs.info.apple.com/article.html?artnum=305391","http://secunia.com/advisories/24966/"],"cveids":["CVE-2007-1216"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2007-03-21T11:52:47Z","publicdate":"2007-04-03T00:00:00Z","datefirstpublished":"2007-04-03T19:46:31Z","dateupdated":"2007-04-23T19:26:34Z","revision":44,"vrda_d1_directreport":"1","vrda_d1_population":"3","vrda_d1_impact":"4","cam_widelyknown":"0","cam_exploitation":"0","cam_internetinfrastructure":"17","cam_population":"10","cam_impact":"20","cam_easeofexploitation":"14","cam_attackeraccessrequired":"20","cam_scorecurrent":"17.85","cam_scorecurrentwidelyknown":"38.85","cam_scorecurrentwidelyknownexploited":"59.85","ipprotocol":"","cvss_accessvector":"--","cvss_accesscomplexity":"--","cvss_authentication":null,"cvss_confidentialityimpact":"--","cvss_integrityimpact":"--","cvss_availabilityimpact":"--","cvss_exploitablity":null,"cvss_remediationlevel":"ND","cvss_reportconfidence":"ND","cvss_collateraldamagepotential":"ND","cvss_targetdistribution":"ND","cvss_securityrequirementscr":"ND","cvss_securityrequirementsir":"ND","cvss_securityrequirementsar":"ND","cvss_basescore":"0","cvss_basevector":"AV:--/AC:--/Au:--/C:--/I:--/A:--","cvss_temporalscore":"0","cvss_environmentalscore":"0","cvss_environmentalvector":"CDP:ND/TD:ND/CR:ND/IR:ND/AR:ND","metric":17.85,"vulnote":null}