klibc: Command Injection — GLSA 201309-21

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

Affected packages

dev-libs/klibc on all architectures
Affected versions < 1.5.25
Unaffected versions >= 1.5.25

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.

Workaround

There is no known workaround at this time.

Resolution

All klibc users should upgrade to the latest version:

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

References

Release date
September 26, 2013

Latest revision
September 26, 2013: 1

Severity
normal

Exploitable
remote

Bugzilla entries