Bug 1988342 (CVE-2021-3672)

Summary: CVE-2021-3672 c-ares: Missing input validation of host names may lead to domain hijacking
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aboscatt, atikhono, casper, gkamathe, hhorak, jhrozek, jorton, jstanek, msiddiqu, nagy.martin, nodejs-maint, security-response-team, sgoveas, spotrh, valtri, zsvetlik
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: c-ares 1.17.2 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in c-ares library, where a missing input validation check of host names returned by DNS (Domain Name Servers) can lead to output of wrong hostnames which might potentially lead to Domain Hijacking. The highest threat from this vulnerability is to confidentiality and integrity as well as system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-26 15:34:55 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: 1989425, 1989426, 1989427, 1989429, 1992221, 1992222, 1994398, 1994399, 1994400, 1994401, 1994942, 1994943, 1994963, 1995019, 1995020, 2014523    
Bug Blocks: 1988343, 1988352    

Description Marian Rehak 2021-07-30 10:36:18 UTC
Missing input validation of host names returned by Domain Name Servers in the c-ares library can lead to output of wrong hostnames (leading to Domain Hijacking).

Comment 15 Guilherme de Almeida Suckevicz 2021-08-10 18:20:48 UTC
Created c-ares tracking bugs for this issue:

Affects: fedora-all [bug 1992221]


Created mingw-c-ares tracking bugs for this issue:

Affects: fedora-all [bug 1992222]

Comment 16 Tomas Hoger 2021-08-12 08:36:41 UTC
c-ares upstream advisory:

https://c-ares.haxx.se/adv_20210810.html

Patch linked form the above upstream advisory:

https://github.com/c-ares/c-ares/compare/809d5e8..44c009b.patch

Comment 20 errata-xmlrpc 2021-08-26 10:15:21 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.7 EUS

Via RHSA-2021:3281 https://access.redhat.com/errata/RHSA-2021:3281

Comment 21 errata-xmlrpc 2021-08-26 10:18:49 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.7 EUS

Via RHSA-2021:3280 https://access.redhat.com/errata/RHSA-2021:3280

Comment 22 Product Security DevOps Team 2021-08-26 15:34:55 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-2021-3672

Comment 23 errata-xmlrpc 2021-09-21 13:12:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:3623 https://access.redhat.com/errata/RHSA-2021:3623

Comment 24 errata-xmlrpc 2021-09-22 08:51:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Extended Update Support

Via RHSA-2021:3639 https://access.redhat.com/errata/RHSA-2021:3639

Comment 25 errata-xmlrpc 2021-09-22 09:00:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Extended Update Support

Via RHSA-2021:3638 https://access.redhat.com/errata/RHSA-2021:3638

Comment 26 errata-xmlrpc 2021-09-27 07:28:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:3666 https://access.redhat.com/errata/RHSA-2021:3666

Comment 27 gkamathe 2021-12-14 13:43:23 UTC
Attack Complexity has been rated as high because an attacker would either need to have a legitimate DNS server under his control which have the malicious records with zero-bytes or trick the user into querying another rogue DNS server

Comment 28 errata-xmlrpc 2022-05-10 15:07:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:2043 https://access.redhat.com/errata/RHSA-2022:2043