UBUNTU-CVE-2020-25682

Source
https://ubuntu.com/security/CVE-2020-25682
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25682.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2020-25682
Related
Published
2021-01-19T00:00:00Z
Modified
2024-10-15T14:07:39Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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:extractname() 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 extractname() 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.

References

Affected packages

Ubuntu:Pro:14.04:LTS / dnsmasq

Package

Name
dnsmasq
Purl
pkg:deb/ubuntu/dnsmasq?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.66-4ubuntu1
2.67-1
2.68-1
2.68-1ubuntu0.1
2.68-1ubuntu0.2
2.68-1ubuntu0.2+esm1
2.68-1ubuntu0.2+esm2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:16.04:LTS / dnsmasq

Package

Name
dnsmasq
Purl
pkg:deb/ubuntu/dnsmasq?arch=src?distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.75-1ubuntu0.16.04.7

Affected versions

2.*

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

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.75-1ubuntu0.16.04.7",
            "binary_name": "dnsmasq"
        },
        {
            "binary_version": "2.75-1ubuntu0.16.04.7",
            "binary_name": "dnsmasq-base"
        },
        {
            "binary_version": "2.75-1ubuntu0.16.04.7",
            "binary_name": "dnsmasq-utils"
        }
    ]
}

Ubuntu:18.04:LTS / dnsmasq

Package

Name
dnsmasq
Purl
pkg:deb/ubuntu/dnsmasq?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.79-1ubuntu0.2

Affected versions

2.*

2.78-1
2.78-3
2.79-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.79-1ubuntu0.2",
            "binary_name": "dnsmasq"
        },
        {
            "binary_version": "2.79-1ubuntu0.2",
            "binary_name": "dnsmasq-base"
        },
        {
            "binary_version": "2.79-1ubuntu0.2",
            "binary_name": "dnsmasq-base-lua"
        },
        {
            "binary_version": "2.79-1ubuntu0.2",
            "binary_name": "dnsmasq-utils"
        }
    ]
}

Ubuntu:20.04:LTS / dnsmasq

Package

Name
dnsmasq
Purl
pkg:deb/ubuntu/dnsmasq?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.80-1.1ubuntu1.2

Affected versions

2.*

2.80-1ubuntu2
2.80-1ubuntu4
2.80-1.1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.80-1.1ubuntu1.2",
            "binary_name": "dnsmasq"
        },
        {
            "binary_version": "2.80-1.1ubuntu1.2",
            "binary_name": "dnsmasq-base"
        },
        {
            "binary_version": "2.80-1.1ubuntu1.2",
            "binary_name": "dnsmasq-base-lua"
        },
        {
            "binary_version": "2.80-1.1ubuntu1.2",
            "binary_name": "dnsmasq-utils"
        }
    ]
}