Red Hat Security Advisory: dnsmasq security update
🔗 CVE IDs covered (3)
📋 Description
CVE-2020-25684 — dnsmasq: loose address/port check in reply_query() makes forging replies easier for an off-path attacker CVE-2020-25685 — dnsmasq: loose query name check in reply_query() makes forging replies easier for an off-path attacker CVE-2020-25686 — dnsmasq: multiple queries forwarded for the same name makes forging replies easier for an off-path attacker
🎯 Affected products36
- Red Hat Enterprise Linux Client (v. 7)
- Red Hat Enterprise Linux Client Optional (v. 7)
- Red Hat Enterprise Linux ComputeNode Optional (v. 7)
- Red Hat Enterprise Linux Server (v. 7)
- Red Hat Enterprise Linux Server Optional (v. 7)
- Red Hat Enterprise Linux Workstation (v. 7)
- Red Hat Enterprise Linux Workstation Optional (v. 7)
- dnsmasq-0:2.76-16.el7_9.1.ppc64 as a component of Red Hat Enterprise Linux Server (v. 7)
- dnsmasq-0:2.76-16.el7_9.1.ppc64le as a component of Red Hat Enterprise Linux Server (v. 7)
- dnsmasq-0:2.76-16.el7_9.1.s390x as a component of Red Hat Enterprise Linux Server (v. 7)
- dnsmasq-0:2.76-16.el7_9.1.src as a component of Red Hat Enterprise Linux Client (v. 7)
- dnsmasq-0:2.76-16.el7_9.1.src as a component of Red Hat Enterprise Linux Server (v. 7)
- dnsmasq-0:2.76-16.el7_9.1.src as a component of Red Hat Enterprise Linux Workstation (v. 7)
- dnsmasq-0:2.76-16.el7_9.1.x86_64 as a component of Red Hat Enterprise Linux Client (v. 7)
- dnsmasq-0:2.76-16.el7_9.1.x86_64 as a component of Red Hat Enterprise Linux Server (v. 7)
- dnsmasq-0:2.76-16.el7_9.1.x86_64 as a component of Red Hat Enterprise Linux Workstation (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.ppc64 as a component of Red Hat Enterprise Linux Server (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.ppc64 as a component of Red Hat Enterprise Linux Server Optional (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.ppc64le as a component of Red Hat Enterprise Linux Server (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.ppc64le as a component of Red Hat Enterprise Linux Server Optional (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.s390x as a component of Red Hat Enterprise Linux Server (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.s390x as a component of Red Hat Enterprise Linux Server Optional (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.x86_64 as a component of Red Hat Enterprise Linux Client (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.x86_64 as a component of Red Hat Enterprise Linux Client Optional (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.x86_64 as a component of Red Hat Enterprise Linux ComputeNode Optional (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.x86_64 as a component of Red Hat Enterprise Linux Server (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.x86_64 as a component of Red Hat Enterprise Linux Server Optional (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.x86_64 as a component of Red Hat Enterprise Linux Workstation (v. 7)
- dnsmasq-debuginfo-0:2.76-16.el7_9.1.x86_64 as a component of Red Hat Enterprise Linux Workstation Optional (v. 7)
- dnsmasq-utils-0:2.76-16.el7_9.1.ppc64 as a component of Red Hat Enterprise Linux Server Optional (v. 7)
- +6 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: The impact of this flaw can be reduced by disabling the dnsmasq cache by adding `--cache-size=0` when calling dnsmasq or by adding a line with `cache-size=0` to the dnsmasq configuration file (/etc/dnsmasq.conf by default). When using Red Hat Enterprise Linux 8.3 with libvirt through a virt:rhel module, use `virsh net-edit <network-name>` and reference https://libvirt.org/formatnetwork.html#elementsNamespaces to add the suggested option `cache-size=0`. There is no way to customize the dnsmasq configuration generated by libvirt, when using versions of Red Hat Enterprise Linux prior to version 8.3. If dnsmasq is being run through NetworkManager, create a new file in /etc/NetworkManager/dnsmasq.d/ and add `cache-size=0` to it. In all cases, by disabling the cache, you may experience a performance loss in your environment due to all DNS queries being forwarded to the upstream servers. Please evaluate if the mitigation is appropriate for the system’s environment before applying. Workaround: The impact of this flaw can be reduced by disabling the dnsmasq cache by adding `--cache-size=0` when calling dnsmasq or by adding a line with `cache-size=0` to the dnsmasq configuration file (/etc/dnsmasq.conf by default). When using Red Hat Enterprise Linux 8.3 with libvirt through a virt:rhel module, use `virsh net-edit <network-name>` and reference https://libvirt.org/formatnetwork.html#elementsNamespaces to add the suggested option `cache-size=0`. There is no way to customize the dnsmasq configuration generated by libvirt, when using versions of Red Hat Enterprise Linux prior to version 8.3. If dnsmasq is being run through NetworkManager, create a new file in /etc/NetworkManager/dnsmasq.d/ and add `cache-size=0` to it. In all cases, by disabling the cache, you may experience a performance loss in your environment due to all DNS queries being forwarded to the upstream servers. Please evaluate if the mitigation is appropriate for the system’s environment before applying.
🔗 References (7)
- selfhttps://access.redhat.com/errata/RHSA-2021:0153
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- externalhttps://access.redhat.com/security/vulnerabilities/RHSB-2021-001
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1889686
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1889688
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1890125
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_0153.json