CVE-2020-25681 Memory corruption in dnsmasq

High 8.1 Published Updated

A heap-based buffer overflow in dnsmasq allows remote attackers to execute arbitrary code or cause denial of service via forged DNS replies.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-25681?

CVE-2020-25681 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 20 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A flaw was found in dnsmasq before version 2.83. A heap-based buffer overflow was discovered in the way RRSets are sorted before validating with DNSSEC data. An attacker on the network, who can forge DNS replies such as that they are accepted as valid, could use this flaw to cause a buffer overflow with arbitrary data in a heap memory segment, possibly executing code on the machine. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Weakness: CWE-122

Which versions are affected by CVE-2020-25681?

It affects 3 products.

Products include Debian Debian Linux, Fedoraproject Fedora, Thekelleys Dnsmasq.

How do I fix CVE-2020-25681?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2020-25681 being exploited?

There is no known exploitation of CVE-2020-25681 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2020-25681, CLEANSTART-2026-DX67539, DEBIAN-CVE-2020-25681, GHSA-34v3-rp23-947c, UBUNTU-CVE-2020-25681.

Is CVE-2020-25681 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free