CVE catalog

CVE-2020-25687

dnsmasq: CVE-2020-25687

[CVE catalog]

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

A flaw was found in dnsmasq before version 2.83. A heap-based buffer overflow was discovered in dnsmasq when DNSSEC is enabled and before it validates the received DNS entries. This flaw allows a remote attacker, who can create valid DNS replies, to cause an overflow in a heap-allocated memory. This flaw is caused by the lack of length checks in rfc1035.c:extract_name(), which could be abused to make the code execute memcpy() with a negative size in sort_rrset() and cause a crash in dnsmasq, resulting in a denial of service. The highest threat from this vulnerability is to 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-25687Not reported
Alpinednsmasqapk3.112.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.122.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.132.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.142.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.152.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.162.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.172.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.182.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.192.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.202.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.212.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.222.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.232.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Alpinednsmasqapk3.242.83-r0Not reportedALPINE-CVE-2020-25687Not reported
Ubuntudnsmasqdeb16.042.75-1ubuntu0.16.04.7Not reportedUBUNTU-CVE-2020-25687Not reported
Ubuntudnsmasqdeb18.042.79-1ubuntu0.2Not reportedUBUNTU-CVE-2020-25687Not reported
Ubuntudnsmasqdeb20.042.80-1.1ubuntu1.2Not reportedUBUNTU-CVE-2020-25687Not 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