Red Hat Security Advisory: dnsmasq security and bug fix update
🔗 CVE IDs covered (1)
📋 Description
CVE-2021-3448 — dnsmasq: fixed outgoing port used when --server is used with an interface name
🎯 Affected products22
- Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-0:2.79-19.el8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-0:2.79-19.el8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-0:2.79-19.el8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-0:2.79-19.el8.src as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-0:2.79-19.el8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-debuginfo-0:2.79-19.el8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-debuginfo-0:2.79-19.el8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-debuginfo-0:2.79-19.el8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-debuginfo-0:2.79-19.el8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-debugsource-0:2.79-19.el8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-debugsource-0:2.79-19.el8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-debugsource-0:2.79-19.el8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-debugsource-0:2.79-19.el8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-utils-0:2.79-19.el8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-utils-0:2.79-19.el8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-utils-0:2.79-19.el8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-utils-0:2.79-19.el8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-utils-debuginfo-0:2.79-19.el8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-utils-debuginfo-0:2.79-19.el8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-utils-debuginfo-0:2.79-19.el8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- dnsmasq-utils-debuginfo-0:2.79-19.el8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
✅ 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 flaw can be prevented by removing `--server=<address>@<interface>` option or by removing the directive `server=<address>@<interface>`. If dnsmasq is being run through NetworkManager, please be aware that NetworkManager automatically configures dnsmasq to use the `server=<address>@<interface>` directive, thus in this case the only way to prevent the flaw is to remove `dns=dnsmasq` from /etc/NetworkManager/NetworkManager.conf file. If the `server=<address>@<interface>` must be kept active, 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). If dnsmasq is being run through NetworkManager, create a new file in /etc/NetworkManager/dnsmasq.d/ and add `cache-size=0` to it. 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 (8)
- selfhttps://access.redhat.com/errata/RHSA-2021:4153
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- externalhttps://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.5_release_notes/
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1921153
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1927973
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1939368
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1947039
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4153.json