klogd format string

klogd-format-string (5259) The risk level is classified as HighHigh Risk

Description:

The kernel logging daemon (klogd) in many Linux distributions is vulnerable to a local root compromise. An attacker can craft a kernel message that contains '%' characters between pairs of '[<' and '>]' symbol markers to gain root access to the system. The daemon passes the message as a format string to syslog, due to a format string flaw in the LogLine function, lines 680 and 707 in klogd.c: Syslog( LOG_INFO, line_buff ).

Platforms Affected:

  • Debian, Debian Linux
  • MandrakeSoft, Mandrake Linux
  • RedHat, Linux
  • Slackware, Slackware Linux
  • Trustix, Secure Linux 1.1

Remedy:

For Red Hat Linux 5.2:
Upgrade to the latest version of sysklogd (1.3.31-1.6 or later), as listed in RHSA-2000:061-02. See References.

For Red Hat Linux 6.2:
Upgrade to the latest version of sysklogd (1.3.31-17 or later), as listed in RHSA-2000:061-02. See References.

For Linux-Mandrake 6.0 and 6.1:
Upgrade to the latest version of sysklogd (1.3.31-14mdk or later), as listed in MandrakeSoft Security Advisory MDKSA-2000:050 : sysklogd. See References.

For Linux-Mandrake 7.0 and 7.1:
Upgrade to the latest version of sysklogd (1.3.31-15mdk or later), as listed in MandrakeSoft Security Advisory MDKSA-2000:050 : sysklogd. See References.

For Debian Linux 2.1:
Upgrade to the latest version of sysklogd (1.3-31 or later), as listed in Debian Security Advisory 20000919. See References.

For Debian Linux 2.2:
Upgrade to the latest version of sysklogd (1.3-33-1 or later), as listed in Debian Security Advisory 20000919. See References.

For Caldera OpenLinux 2.3 and 2.4:
Upgrade to the latest version of sysklogd, as listed in Caldera Systems, Inc. Security Advisory CSSA-2000-032.0. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

Consequences:

Gain Access

References:

Reported:

Sep 18, 2000

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page