Bug 1316481 - (CVE-2016-2563) CVE-2016-2563 putty: old-style scp downloads may allow remote code execution
CVE-2016-2563 putty: old-style scp downloads may allow remote code execution
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20160305,repo...
: Security
Depends On: 1316482 1316485 1316486
Blocks:
  Show dependency treegraph
 
Reported: 2016-03-10 06:01 EST by Andrej Nemec
Modified: 2016-03-29 14:23 EDT (History)
3 users (show)

See Also:
Fixed In Version: putty 0.67
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andrej Nemec 2016-03-10 06:01:40 EST
Prior to any download in the SCP sink protocol, the server sends a line of text consisting of an octal number encoding Unix file permissions, a decimal number encoding the file size, and the file name. Since the file size can exceed 232 bytes, and in some compilation configurations of PuTTY the host platform's largest integer type is only 32 bits wide, PuTTY extracts the decimal file size into a temporary string variable to send to its own 64-bit decimal decoding function. Unfortunately, that extraction was done carelessly, using a sscanf with no length limit, permitting a buffer overrun.

External references:

http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/vuln-pscp-sink-sscanf.html
http://seclists.org/fulldisclosure/2016/Mar/22

Upstream fix:

http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commit;h=bc6c15ab5f636e05b7e91883f0031a7e06117947
Comment 1 Andrej Nemec 2016-03-10 06:02:22 EST
Created putty tracking bugs for this issue:

Affects: fedora-all [bug 1316482]
Affects: epel-6 [bug 1316485]
Affects: epel-5 [bug 1316486]
Comment 2 Fedora Update System 2016-03-29 13:21:50 EDT
putty-0.63-6.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
Comment 3 Fedora Update System 2016-03-29 14:23:15 EDT
putty-0.63-6.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.