Debian Security Advisory

DSA-2090-1 socat -- incorrect user-input validation

Date Reported:
06 Aug 2010
Affected Packages:
socat
Vulnerable:
Yes
Security database references:
In the Debian bugtracking system: Bug 591443.
In Mitre's CVE dictionary: CVE-2010-2799.
More information:

A stack overflow vulnerability was found in socat that allows an attacker to execute arbitrary code with the privileges of the socat process.

This vulnerability can only be exploited when an attacker is able to inject more than 512 bytes of data into socat's argument.

A vulnerable scenario would be a CGI script that reads data from clients and uses (parts of) this data as argument for a socat invocation.

For the stable distribution (lenny), this problem has been fixed in version 1.6.0.1-1+lenny1.

For the unstable distribution (sid), this problem has been fixed in version 1.7.1.3-1.

We recommend that you upgrade your socat package.

Fixed in:

Debian GNU/Linux 5.0 (lenny)

Source:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1.orig.tar.gz
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1.dsc
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1.diff.gz
Alpha:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_alpha.deb
AMD64:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_amd64.deb
ARM:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_arm.deb
ARM EABI:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_armel.deb
HP Precision:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_hppa.deb
Intel IA-32:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_i386.deb
Intel IA-64:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_ia64.deb
Big-endian MIPS:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_mips.deb
Little-endian MIPS:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_mipsel.deb
PowerPC:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_powerpc.deb
IBM S/390:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_s390.deb
Sun Sparc:
http://security.debian.org/pool/updates/main/s/socat/socat_1.6.0.1-1+lenny1_sparc.deb

MD5 checksums of the listed files are available in the original advisory.