CVE Vulnerabilities

CVE-2020-25685

Inadequate Encryption Strength

Published: Jan 20, 2021 | Modified: Nov 07, 2023
CVSS 3.x
3.7
LOW
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:P/A:N
RedHat/V2
RedHat/V3
4 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
Ubuntu
MEDIUM

A flaw was found in dnsmasq before version 2.83. When getting a reply from a forwarded query, dnsmasq checks in forward.c:reply_query(), which is the forwarded query that matches the reply, by only using a weak hash of the query name. Due to the weak hash (CRC32 when dnsmasq is compiled without DNSSEC, SHA-1 when it is) this flaw allows an off-path attacker to find several different domains all having the same hash, substantially reducing the number of attempts they would have to perform to forge a reply and get it accepted by dnsmasq. This is in contrast with RFC5452, which specifies that the query name is one of the attributes of a query that must be used to match a reply. This flaw could be abused to perform a DNS Cache Poisoning attack. If chained with CVE-2020-25684 the attack complexity of a successful attack is reduced. The highest threat from this vulnerability is to data integrity.

Weakness

The product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required.

Affected Software

Name Vendor Start Version End Version
Dnsmasq Thekelleys * 2.83 (excluding)
Red Hat Enterprise Linux 7 RedHat dnsmasq-0:2.76-16.el7_9.1 *
Red Hat Enterprise Linux 7.2 Advanced Update Support RedHat dnsmasq-0:2.66-14.el7_2.3 *
Red Hat Enterprise Linux 7.3 Advanced Update Support RedHat dnsmasq-0:2.66-21.el7_3.3 *
Red Hat Enterprise Linux 7.4 Advanced Update Support RedHat dnsmasq-0:2.76-2.el7_4.3 *
Red Hat Enterprise Linux 7.4 Telco Extended Update Support RedHat dnsmasq-0:2.76-2.el7_4.3 *
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions RedHat dnsmasq-0:2.76-2.el7_4.3 *
Red Hat Enterprise Linux 7.6 Extended Update Support RedHat dnsmasq-0:2.76-7.el7_6.2 *
Red Hat Enterprise Linux 7.7 Extended Update Support RedHat dnsmasq-0:2.76-10.el7_7.2 *
Red Hat Enterprise Linux 8 RedHat dnsmasq-0:2.79-13.el8_3.1 *
Red Hat Enterprise Linux 8.1 Extended Update Support RedHat dnsmasq-0:2.79-6.el8_1.1 *
Red Hat Enterprise Linux 8.2 Extended Update Support RedHat dnsmasq-0:2.79-11.el8_2.2 *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 RedHat redhat-virtualization-host-0:4.3.13-20210127.0.el7_9 *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 RedHat redhat-virtualization-host-0:4.4.4-20210201.0.el8_3 *
Dnsmasq Ubuntu bionic *
Dnsmasq Ubuntu devel *
Dnsmasq Ubuntu focal *
Dnsmasq Ubuntu groovy *
Dnsmasq Ubuntu hirsute *
Dnsmasq Ubuntu impish *
Dnsmasq Ubuntu jammy *
Dnsmasq Ubuntu kinetic *
Dnsmasq Ubuntu lunar *
Dnsmasq Ubuntu mantic *
Dnsmasq Ubuntu noble *
Dnsmasq Ubuntu oracular *
Dnsmasq Ubuntu precise/esm *
Dnsmasq Ubuntu trusty *
Dnsmasq Ubuntu trusty/esm *
Dnsmasq Ubuntu upstream *
Dnsmasq Ubuntu xenial *

Potential Mitigations

References