Advisory

UBUNTU-CVE-2020-25682

Also known as: CVE-2020-25682

Summary

The record has no summary.

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: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.

Severity

High Basis: CVSS v3 score 8.1, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-01-19 00:00 UTC
Modified
2026-02-04 04:36 UTC

Affected packages and fixes

dnsmasq

Debian packages (deb) · Ubuntu 16.04

Affected

  • introduced 0, fixed 2.75-1ubuntu0.16.04.7 (ecosystem)

Fixed versions

2.75-1ubuntu0.16.04.7

Fix

  • Fixed version 2.75-1ubuntu0.16.04.7
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

dnsmasq

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 2.79-1ubuntu0.2 (ecosystem)

Fixed versions

2.79-1ubuntu0.2

Fix

  • Fixed version 2.79-1ubuntu0.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

dnsmasq

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2.80-1.1ubuntu1.2 (ecosystem)

Fixed versions

2.80-1.1ubuntu1.2

Fix

  • Fixed version 2.80-1.1ubuntu1.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences