cve.bz

CVE-2021-3448

4.0 mediumExploit referenceEPSS 2.3%Fix available

Medium (4.0). EPSS 2.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.0 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
EPSS
2.3% (unchanged from 2.3% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-12-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-358 Improperly Implemented Security Check for Standard
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3448 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3448?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3448?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3448 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
thekelleys:dnsmasqbefore 2.85
redhat:enterprise_linux8.0
fedoraproject:fedora32
fedoraproject:fedora33
fedoraproject:fedora34
oracle:communications_cloud_native_core_network_function_cloud_native_environment1.9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14dnsmasq2.85-1DEBIAN-CVE-2021-3448
Ubuntu18.04:LTSdnsmasq2.79-1ubuntu0.4UBUNTU-CVE-2021-3448 USN-4976-1
Ubuntu20.04:LTSdnsmasq2.80-1.1ubuntu1.4UBUNTU-CVE-2021-3448 USN-4976-1
UbuntuPro:14.04:LTSdnsmasqno fix listedUBUNTU-CVE-2021-3448
UbuntuPro:16.04:LTSdnsmasq2.79-1ubuntu0.16.04.1+esm1UBUNTU-CVE-2021-3448 USN-4976-2
Red Hatenterprise_linux:8::appstreamdnsmasq, dnsmasq-utils, dnsmasq-debuginfo and 2 more0:2.79-19.el8RHSA-2021:4153
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morednsmasq2.86-7.14.1SUSE-SU-2021:3530-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 10 morednsmasq2.78-18.18.1SUSE-SU-2022:1289-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morednsmasq2.78-150000.3.14.1SUSE-SU-2022:1288-1
SUSELinux Enterprise Point of Sale 11 SP3dnsmasq2.78-0.16.17.1SUSE-SU-2022:14940-1
SUSELinux Enterprise Server 11 SP4-LTSSdnsmasq2.78-0.17.18.1SUSE-SU-2022:14941-1
openSUSELeap 15.2dnsmasq2.86-lp152.7.6.1openSUSE-SU-2021:1426-1
openSUSELeap 15.3dnsmasq2.86-7.14.1openSUSE-SU-2021:3530-1
openSUSETumbleweeddnsmasq2.86-1.1openSUSE-SU-2024:10721-1
AlmaLinux8dnsmasq, dnsmasq-utils2.79-19.el8ALSA-2021:4153
Rocky Linux8dnsmasq0:2.79-19.el8RLSA-2021:4153
Alpinev3.10, v3.11, v3.12 and 12 morednsmasq2.85-r0ALPINE-CVE-2021-3448

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's 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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8dnsmasq-0:2.79-19.el8Fixed 2021-11-09RHSA-2021:4153
Red Hat Enterprise Linux 6dnsmasqOut of support scope
Red Hat Enterprise Linux 7dnsmasqOut of support scope
Red Hat Enterprise Linux 9dnsmasqNot affected
Red Hat OpenStack Platform 10 (Newton)dnsmasqNot affected
Red Hat OpenStack Platform 13 (Queens)dnsmasqNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3448.

References

Check your stackJSON