Bug 1028418 (CVE-2013-4548)
Summary: | CVE-2013-4548 openssh: post-auth memory corruption when using AES-GCM cipher | ||
---|---|---|---|
Product: | [Other] Security Response | Reporter: | Tomas Hoger <thoger> |
Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | h.reindl, jkurik, mattias.ellert, mgrepl, pfrields, plautrba, tmraz |
Target Milestone: | --- | Keywords: | Security |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | openssh 6.4 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-08 13:59:02 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: | 1028363, 1028686, 1028920, 1029004 | ||
Bug Blocks: |
Description
Tomas Hoger
2013-11-08 11:52:22 UTC
Fedora openssh packages based on vulnerable upstream versions 6.2 and 6.3 are not affected, as they already contain the same change as part of the openssh-*-audit.patch: http://pkgs.fedoraproject.org/cgit/openssh.git/tree/openssh-6.3p1-audit.patch?id=84822b5#n1483 The fix was introduced as part of this commit: http://pkgs.fedoraproject.org/cgit/openssh.git/commit/?h=f19&id=014fe81 Prior openssh-6.2p1, one of the implemented MACs algorithms was always used together with an used cipher so newkeys->mac was always initialized using choose_mac(). Since openssh-6.2p1, a new AES-GCM encryptions are implemented and given that GCM mode provides data integrity itself, no MAC is used: - choose_mac (&newkeys->mac, cprop[nmac], sprop[nmac]); + authlen = cipher_authlen(newkeys->enc.cipher); + if (authlen == 0) + choose_mac(&newkeys->mac, cprop[nmac], sprop[nmac]); A new functionality in openssh-6.2p1-audit.patch added used MAC to audit messages and as a side effect fixed also this issue. (In reply to Petr Lautrbach from comment #3) > - choose_mac (&newkeys->mac, cprop[nmac], sprop[nmac]); > + authlen = cipher_authlen(newkeys->enc.cipher); > + if (authlen == 0) > + choose_mac(&newkeys->mac, cprop[nmac], sprop[nmac]); The above is part of this upstream commit: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/kex.c#rev1.88 Statement: Not vulnerable. This issue did not affect the versions of openssh as shipped with Red Hat Enterprise Linux 5 and 6 as they did not include support for AES-GCM cipher suites. *** Bug 1029004 has been marked as a duplicate of this bug. *** HackerOne report: https://hackerone.com/reports/500 |