Gentoo Logo

klibc: Command Injection

Content:

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

Synopsis

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

2.  Impact Information

Background

klibc is a minimalistic libc used for making an initramfs.

Description

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.

Impact

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

Workaround

There is no known workaround at this time.

Resolution

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



Print

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-2014 Gentoo Foundation, Inc. Questions, Comments? Contact us.