Bug 1658874 (CVE-2018-20102)

Summary: CVE-2018-20102 haproxy: Out-of-bounds read in dns.c:dns_validate_dns_response() allows for memory disclosure
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, ahardin, bleanhar, bperkins, carl, ccoleman, dbaker, dedgar, eparis, hhorak, jeremy, jgoulding, jokerman, jorton, mchappel, pasik, rohara, sfowler, sthangav, trankin
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: haproxy 1.8.15 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-12 13:06:23 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: 1658882, 1659016, 1659017, 1660104, 1660105, 1660106, 1660107    
Bug Blocks: 1658879    

Description Sam Fowler 2018-12-13 04:58:10 UTC
An out-of-bounds read in dns_validate_dns_response in dns.c was discovered in HAProxy through 1.8.14. Due to a missing check when validating DNS responses, remote attackers might be able read the 16 bytes corresponding to an AAAA record from the non-initialized part of the buffer, possibly accessing anything that was left on the stack, or even past the end of the 8193-byte buffer, depending on the value of accepted_payload_size.


Upstream Patch:

http://git.haproxy.org/?p=haproxy.git;a=commit;h=efbbdf72

Comment 1 Sam Fowler 2018-12-13 05:15:13 UTC
Created haproxy tracking bugs for this issue:

Affects: fedora-all [bug 1658882]

Comment 2 Sam Fowler 2018-12-13 05:34:29 UTC
External Reference:

https://www.mail-archive.com/haproxy@formilux.org/msg32055.html

Comment 3 Stefan Cornelius 2018-12-13 11:00:41 UTC
Statement:

This issue did not affect the versions of haproxy as shipped with Red Hat Enterprise Linux 6 and 7.

Comment 6 errata-xmlrpc 2019-06-11 12:01:30 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2019:1436 https://access.redhat.com/errata/RHSA-2019:1436

Comment 7 Product Security DevOps Team 2019-07-12 13:06:23 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2018-20102