Bug 821552 (CVE-2012-0219)

Summary: CVE-2012-0219 socat: heap-based buffer overflow flaw leads to arbitrary code execution
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: jrusnack, pwouters
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-28 03:51:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 821553, 821554    
Bug Blocks:    

Description Vincent Danen 2012-05-14 21:59:50 UTC
A heap-based buffer overflow flaw was found in socat with data that happens to be output on the READLINE address.  The READLINE address is usually only used interactively, without the "prompt" and "noprompt" options.  If an attacker were able to provide malicious data to the other (arbitrary) address that is then transferred to socat's READLINE address for output, they would be able to execute arbitrary code with the privileges of the socat process.

To work around this flaw, you can use the "prompt" or "noprompt" options with the READLINE address.

This has been corrected upstream [1] in versions 1.7.2.1 and 2.0.0-b5; patches are available.

[1] http://www.dest-unreach.org/socat/contrib/socat-secadv3.html

Comment 1 Vincent Danen 2012-05-14 22:01:02 UTC
Created socat tracking bugs for this issue

Affects: fedora-all [bug 821553]
Affects: epel-all [bug 821554]