Debian DSA-5441-1 : maradns - security update

high Nessus Plugin ID 177736

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 11 host has packages installed that are affected by multiple vulnerabilities as referenced in the dsa-5441 advisory.

- An issue was discovered in MaraDNS Deadwood through 3.5.0021 that allows variant V1 of unintended domain name resolution. A revoked domain name can still be resolvable for a long time, including expired domains and taken-down malicious domains. The effects of an exploit would be widespread and highly impactful, because the exploitation conforms to de facto DNS specifications and operational practices, and overcomes current mitigation patches for Ghost domain names. (CVE-2022-30256)

- MaraDNS is open-source software that implements the Domain Name System (DNS). In version 3.5.0024 and prior, a remotely exploitable integer underflow vulnerability in the DNS packet decompression function allows an attacker to cause a Denial of Service by triggering an abnormal program termination. The vulnerability exists in the `decomp_get_rddata` function within the `Decompress.c` file. When handling a DNS packet with an Answer RR of qtype 16 (TXT record) and any qclass, if the `rdlength` is smaller than `rdata`, the result of the line `Decompress.c:886` is a negative number `len = rdlength - total;`. This value is then passed to the `decomp_append_bytes` function without proper validation, causing the program to attempt to allocate a massive chunk of memory that is impossible to allocate. Consequently, the program exits with an error code of 64, causing a Denial of Service. One proposed fix for this vulnerability is to patch `Decompress.c:887` by breaking `if(len <= 0)`, which has been incorporated in version 3.5.0036 via commit bab062bde40b2ae8a91eecd522e84d8b993bab58. (CVE-2023-31137)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade the maradns packages.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033252

https://security-tracker.debian.org/tracker/source-package/maradns

https://www.debian.org/security/2023/dsa-5441

https://security-tracker.debian.org/tracker/CVE-2022-30256

https://security-tracker.debian.org/tracker/CVE-2023-31137

https://packages.debian.org/source/bullseye/maradns

Plugin Details

Severity: High

ID: 177736

File Name: debian_DSA-5441.nasl

Version: 1.0

Type: local

Agent: unix

Published: 6/29/2023

Updated: 6/29/2023

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:C/A:N

CVSS Score Source: CVE-2022-30256

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:maradns, p-cpe:/a:debian:debian_linux:duende, p-cpe:/a:debian:debian_linux:maradns-zoneserver, p-cpe:/a:debian:debian_linux:maradns-deadwood, p-cpe:/a:debian:debian_linux:maradns-docs

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 6/29/2023

Vulnerability Publication Date: 11/19/2022

Reference Information

CVE: CVE-2022-30256, CVE-2023-31137