Gentoo Logo

socat: Arbitrary code execution


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201208-01 / socat
Release Date August 14, 2012
Latest Revision August 14, 2012: 1
Impact high
Exploitable local, remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-misc/socat < >= All supported architectures

Related bugreports: #415977


A buffer overflow in socat might allow remote attackers to execute arbitrary code.

2.  Impact Information


socat is a multipurpose bidirectional relay, similar to netcat.


A vulnerability in the "xioscan_readline()" function in xio-readline.c could cause a heap-based buffer overflow.


A remote attacker could possibly execute arbitrary code with the privileges of the socat process.

3.  Resolution Information


There is no known workaround at this time.


All socat users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=net-misc/socat-"

4.  References


Page updated August 14, 2012

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.