Advisory

RUSTSEC-2020-0001

Also known as: CVE-2020-35857, GHSA-4cww-f7w5-x525

Summary

Stack overflow when resolving additional records from MX or SRV null targets

Details

There's a stack overflow leading to a crash and potential DOS when processing
additional records for return of MX or SRV record types from the server.

This is only possible when a zone is configured with a null target for MX or SRV records, i.e. '.'.

Example effected zone record:

no-service 86400 IN MX 0 .

Prior to 0.16.0 the additional record processing was not supported by trust-dns-server. There
Are no known issues with upgrading from 0.16 or 0.17 to 0.18.1. The remidy should be to upgrade to
0.18.1. If unable to do so, MX, SRV or other record types with a target to the null type, should be avoided.

Severity

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

Dates

Published
2020-01-06 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

trust-dns-server

crates.io · All systems

Affected

  • introduced 0.16.0, fixed 0.18.1 (semver)

Fixed versions

0.18.1

Fix

  • Fixed version 0.18.1
    cargo update -p trust-dns-server --precise 0.18.1

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: RustSec Advisory Database · CC0-1.0

Sources & licences