Gentoo Logo

klibc: Command Injection


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201309-21 / klibc
Release Date September 26, 2013
Latest Revision September 26, 2013: 1
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-libs/klibc < 1.5.25 >= 1.5.25 All supported architectures

Related bugreports: #369075


A vulnerability in klibc could allow remote attackers to execute arbitrary shell code.

2.  Impact Information


klibc is a minimalistic libc used for making an initramfs.


The ipconfig utility in klibc writes DHCP options to /tmp/net-$DEVICE.conf, and this file is later sourced by other scripts to get defined variables. The options written to this file are not properly escaped.


A remote attacker could send a specially crafted DHCP reply, which could execute arbitrary shell code with the privileges of any process which sources DHCP options.

3.  Resolution Information


There is no known workaround at this time.


All klibc users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=dev-libs/klibc-1.5.25"

4.  References


Page updated September 26, 2013

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.