Kerberos, developed at MIT, is one of the most widely deployed authentication protocols on the Internet, and is implemented in many commercial products; Windows 2000 uses Kerberos v5, for example. MIT's advisories on the bugs contain instructions on patching. Kerberos v5 version 1.3.5 will also fix the bugs when it is released, according to MIT.
Cisco has issued a patch for the implementation of Kerberos v5 in its VPN 3000 Series Concentrator product fixing the bugs. Linux developers Red Hat, MandrakeSoft and Debian are among the other vendors distributing patches.
Most of the vulnerabilities are double-free errors, where a component attempts to free a buffer that has already been freed; this error can be exploited to execute malicious code and take control of a system, researchers said. Double-free vulnerabilities were identified in Kerberos v5's KDC cleanup code and several client libraries, allowing unauthenticated users to compromise a system, according to an advisory from Danish security firm Secunia.
A double-free bug in krb524d may also allow the execution of malicious code, Secunia researchers said.
Other double-free errors in the "krb5_rd_cred()" function can only be exploited by authenticated users, via services calling on the function, such as krshd, klogind and telnetd, according to Secunia.
Unlike some previous Kerberos flaws, no working exploits have yet been discovered for the flaws, and MIT officials said such exploits would require a high degree of sophistication. "Exploitation of double-free bugs is believed to be difficult," MIT's researchers said in the advisory.
On the other hand, exploiting the ASN.1 bug is "trivial," MIT researchers said. The problem is in the way the decoder handles indefinite-length BER encodings. An attacker can send a corrupt encoding which will send the component into an infinite loop, hanging the system, MIT said.
The vulnerabilities are the most serious in Kerberos v5 since early 2003, when multiple issues allowed remote system access, impersonation and denial of service. In October 2002, a flaw in kadmind4 (Kerberos v4 compatibility administration daemon) allowed unauthenticated attackers to gain root privileges on Kerberos v4 and v5 machines; at that time, MIT researchers said an exploit was already circulating when the patch was released.