CVE catalog

CVE-2020-25682

dnsmasq: CVE-2020-25682

[CVE catalog]

Severity
High · CVSS 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
75.07% · Oct 25, 2026

A flaw was found in dnsmasq before 2.83. A buffer overflow vulnerability was discovered in the way dnsmasq extract names from DNS packets before validating them with DNSSEC data. An attacker on the network, who can create valid DNS replies, could use this flaw to cause an overflow with arbitrary data in a heap-allocated memory, possibly executing code on the machine. The flaw is in the rfc1035.c:extract_name() function, which writes data to the memory pointed by name assuming MAXDNAME*2 bytes are available in the buffer. However, in some code execution paths, it is possible extract_name() gets passed an offset from the base buffer, thus reducing, in practice, the number of available bytes that can be written in the buffer. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiandnsmasqsid2.93-3fixed
Debiandnsmasqforky2.93-3fixed
Debiandnsmasqtrixie2.91-1+deb13u2fixed
Debiandnsmasqtrixie-security2.91-1+deb13u1fixed
Debiandnsmasqbookworm2.90-4~deb12u2fixed
Debiandnsmasqbookworm-security2.90-4~deb12u2fixed
Alpinednsmasq3.102.83-r0fixed
Alpinednsmasq3.112.83-r0fixed
Alpinednsmasq3.122.83-r0fixed
Alpinednsmasq3.132.83-r0fixed
Alpinednsmasq3.142.83-r0fixed
Alpinednsmasq3.152.83-r0fixed
Alpinednsmasq3.162.83-r0fixed
Alpinednsmasq3.172.83-r0fixed
Alpinednsmasq3.182.83-r0fixed
Alpinednsmasq3.192.83-r0fixed
Alpinednsmasq3.202.83-r0fixed
Alpinednsmasq3.212.83-r0fixed
Alpinednsmasq3.222.83-r0fixed
Alpinednsmasq3.232.83-r0fixed
Alpinednsmasq3.242.83-r0fixed
Ubuntudnsmasq16.042.75-1vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.1vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.2vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.3vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.4vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.5vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.7fixed
Ubuntudnsmasq18.042.78-1vulnerable
Ubuntudnsmasq18.042.78-3vulnerable
Ubuntudnsmasq18.042.79-1vulnerable
Ubuntudnsmasq18.042.79-1ubuntu0.2fixed
Ubuntudnsmasq20.042.80-1ubuntu2vulnerable
Ubuntudnsmasq20.042.80-1ubuntu4vulnerable
Ubuntudnsmasq20.042.80-1.1ubuntu1vulnerable
Ubuntudnsmasq20.042.80-1.1ubuntu1.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiandnsmasqsourcesid2.83-1not yet assignedNot reportedNot reported
Debiandnsmasqsourceforky2.83-1not yet assignedNot reportedNot reported
Debiandnsmasqsourcetrixie2.83-1not yet assignedNot reportedNot reported
Debiandnsmasqsourcebookworm2.83-1not yet assignedNot reportedNot reported
Alpinednsmasqapk3.102.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.112.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.122.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.132.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.142.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.152.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.162.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.172.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.182.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.192.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.202.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.212.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.222.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.232.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Alpinednsmasqapk3.242.83-r0Not reportedALPINE-CVE-2020-25682Not reported
Ubuntudnsmasqdeb16.042.75-1ubuntu0.16.04.7Not reportedUBUNTU-CVE-2020-25682Not reported
Ubuntudnsmasqdeb18.042.79-1ubuntu0.2Not reportedUBUNTU-CVE-2020-25682Not reported
Ubuntudnsmasqdeb20.042.80-1.1ubuntu1.2Not reportedUBUNTU-CVE-2020-25682Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [dnsmasq]Unknown
    Details (4)
    • 2.90-4~deb12u2 · all · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · all · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

  • [dnsmasq-base]Unknown

    Source package: [dnsmasq]

    Details (4)
    • 2.90-4~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

  • Source package: [dnsmasq]

    Details (4)
    • 2.90-4~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

  • [dnsmasq-utils]Unknown

    Source package: [dnsmasq]

    Details (4)
    • 2.90-4~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

[Debian 13 (Trixie)]

  • [dnsmasq]Unknown
    Details (4)
    • 2.91-1+deb13u1 · all · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · all · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · all · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · all · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

  • [dnsmasq-base]Unknown

    Source package: [dnsmasq]

    Details (4)
    • 2.91-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

  • Source package: [dnsmasq]

    Details (4)
    • 2.91-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

  • [dnsmasq-utils]Unknown

    Source package: [dnsmasq]

    Details (4)
    • 2.91-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

Observed:

References