p PatchFirst

CVE-2020-25682

CVE-2020-25682

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.1 · High · EPSS 75.1% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • dnsmasq

    Versions
    • dnsmasq 2.83: Affected

    No fix published

  • dnsmasq Debian:12

    Affected ranges
    • ECOSYSTEM: < 2.83-1

    Update to 2.83-1

  • dnsmasq Debian:13

    Affected ranges
    • ECOSYSTEM: < 2.83-1

    Update to 2.83-1

  • dnsmasq Debian:14

    Affected ranges
    • ECOSYSTEM: < 2.83-1

    Update to 2.83-1

  • dnsmasq Ubuntu:16.04:LTS

    Versions
    • 2.75-1
    • 2.75-1ubuntu0.16.04.1
    • 2.75-1ubuntu0.16.04.2
    • 2.75-1ubuntu0.16.04.3
    • 2.75-1ubuntu0.16.04.4
    • 2.75-1ubuntu0.16.04.5
    Affected ranges
    • ECOSYSTEM: < 2.75-1ubuntu0.16.04.7

    Update to 2.75-1ubuntu0.16.04.7

  • dnsmasq Ubuntu:18.04:LTS

    Versions
    • 2.78-1
    • 2.78-3
    • 2.79-1
    Affected ranges
    • ECOSYSTEM: < 2.79-1ubuntu0.2

    Update to 2.79-1ubuntu0.2

  • dnsmasq Ubuntu:20.04:LTS

    Versions
    • 2.80-1ubuntu2
    • 2.80-1ubuntu4
    • 2.80-1.1ubuntu1
    Affected ranges
    • ECOSYSTEM: < 2.80-1.1ubuntu1.2

    Update to 2.80-1.1ubuntu1.2

Original sources

Check your server →