dnsmasq: fixed outgoing port used when --server is used with an interface name
Published Apr 8, 2021
4.0
MEDIUMCVSS 3.1
EPSS 2.28%
Description
A flaw was found in dnsmasq in versions before 2.85. When configured to use a specific server for a given network interface, dnsmasq uses a fixed port while forwarding queries. An attacker on the network, able to find the outgoing port used by dnsmasq, only needs to guess the random transmission ID to forge a reply and get it accepted by dnsmasq. This flaw makes a DNS Cache Poisoning attack much easier. The highest threat from this vulnerability is to data integrity.
Affected products
- Vendor n/a Product Dnsmasq Defaultn/a
- Version dnsmasq 2.85StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Dnsmasq | n/a |
|
Configuration 1
- < 2.85
Configuration 2
- 8.0
Configuration 3
- 32
- 33
- 34
Configuration 4
- 1.9.0
No data.
Red Hat Enterprise Linux 8
dnsmasq-0:2.79-19.el8
Fixed · RHSA-2021:4153
Red Hat Enterprise Linux 6
dnsmasq
Out of support scope
Red Hat Enterprise Linux 7
dnsmasq
Out of support scope
Red Hat Enterprise Linux 9
dnsmasq
Not affected
Red Hat OpenStack Platform 10 (Newton)
dnsmasq
Not affected
Red Hat OpenStack Platform 13 (Queens)
dnsmasq
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | dnsmasq-0:2.79-19.el8 | Fixed | RHSA-2021:4153 |
| Red Hat Enterprise Linux 6 | dnsmasq | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | dnsmasq | Out of support scope | n/a |
| Red Hat Enterprise Linux 9 | dnsmasq | Not affected | n/a |
| Red Hat OpenStack Platform 10 (Newton) | dnsmasq | Not affected | n/a |
| Red Hat OpenStack Platform 13 (Queens) | dnsmasq | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
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 (10)
- https://access.redhat.com/security/cve/CVE-2021-3448 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1939368 x_refsource_MISCExploitIssue TrackingPatchThird Party Advisory
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-26773 Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CVTJUOFFFHINLKWAOC2ZSC5MOPD4SJ24/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHG7GWSQWKF7JXIMLOGJBKZWBB4VIAJ7/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GHURNEHHUBSW45KMIZ4FNBCSUPWPGV5V/ vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2021-3448
- https://security.gentoo.org/glsa/202105-20 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2021-3448
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISCPatchThird Party Advisory
Change history (0)
No recorded changes yet.