Bug 9024

Summary: CVE-2016-2217: Socat security advisory 7 & 8
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Armin Kuster <akuster>
Component: coreAssignee: Armin Kuster <akuster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher
Version: 2.1   
Target Milestone: 1.8.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Armin Kuster 2016-02-01 19:26:55 UTC
Socat security advisory 7 - Created new 2048bit DH modulus

Overview
  In the OpenSSL address implementation the hard coded 1024 bit DH p
  parameter was not prime. The effective cryptographic strength of a key
  exchange using these parameters was weaker than the one one could get by
  using a prime p. Moreover, since there is no indication of how these
  parameters were chosen, the existence of a trapdoor that makes possible
  for an eavesdropper to recover the shared secret from a key exchange that
  uses them cannot be ruled out.
  A new prime modulus p parameter has been generated by Socat developer
  using OpenSSL dhparam command.
  In addition the new parameter is 2048 bit long.

Vulnerability Ids:
  Socat security issue 7
  MSVR-1499

Severity: Unknown

Affected versions
  1.7.3.0
  2.0.0-b8

Not affected or corrected versions
  1.0.0.0 - 1.7.2.4
  1.7.3.1 and later
  2.0.0-b1 - 2.0.0-b7
  2.0.0-b9 and later

Workaround
  Disable DH ciphers

Download
  The updated sources can be downloaded from:

    http://www.dest-unreach.org/socat/download/socat-1.7.3.1.tar.gz
    http://www.dest-unreach.org/socat/download/socat-2.0.0-b9.tar gz

Acknowledgments
  Santiago Zanella-Beguelin and Microsoft Vulnerability Research (MSVR).
Comment 1 Armin Kuster 2016-02-01 19:27:15 UTC
Socat security advisory 8 - Stack overflow in parser

Overview
  A stack overflow vulnerability was found that can be triggered when
  command line arguments (complete address specifications, host names,
  file names) are longer than 512 bytes.
  Successful exploitation might allow 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 data into socat's command line.
  A vulnerable scenario would be a CGI script that reads data from
  clients and uses (parts of) this data as hostname for a Socat
  invocation.

Vulnerability Ids
    Socat security issue 8

Severity: Low

Affected versions
  1.5.0.0 - 1.7.3.0
  2.0.0-b1 - 2.0.0-b8

Not affected or corrected versions
  1.0.0.0 - 1.4.3.1
  1.7.3.1 and later
  2.0.0-b9 and later

Workaround
  Do not pass unfiltered data from untrusted sources to socat's command line

Download
  The updated sources can be downloaded from:

    http://www.dest-unreach.org/socat/download/socat-1.7.3.1.tar.gz
    http://www.dest-unreach.org/socat/download/socat-2.0.0-b9.tar gz

Acknowledgement
    Takume Akiyma found and reported this issue.
Comment 2 Armin Kuster 2016-02-01 19:27:42 UTC
Master should be upgrade.

Jethro and fido need patches
Comment 3 Armin Kuster 2016-02-01 19:30:27 UTC
just realized no CVE's assigned.
Comment 4 Ross Burton 2016-02-04 16:23:31 UTC
Upgrade patch for master submitted.  Armin, would you/Mentor be willing to backport to the stable branches?
Comment 5 Armin Kuster 2016-02-04 16:26:10 UTC
(In reply to comment #4)
> Upgrade patch for master submitted.  Armin, would you/Mentor be willing to
> backport to the stable branches?

sure
Comment 6 Armin Kuster 2016-02-04 16:41:19 UTC
One CVE was issued for these two issues:  CVE-2016-2217.
Comment 7 Armin Kuster 2016-02-05 15:04:19 UTC
jethro submitted
http://patches.openembedded.org/patch/114773/
Comment 9 Armin Kuster 2016-02-09 01:39:33 UTC
fido needs fixing.
Comment 10 Armin Kuster 2016-03-03 15:29:48 UTC
fido not affected.

Affected versions are 1.7.3.0 and 2.0.0-b8.

Fido is at version 1.7.2.4