FedoraOperating system · Fedoraproject

CVE-2017-9106

HIGH · 7.5 CVSS v3.1 Published 2020-06-18
Fix available
A fix is available. Upgrade to 1.5.2 or later.
See remediation →
84/100
Remediation priority · High
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
An issue was discovered in adns before 1.5.2. adns_rr_info mishandles a bogus *datap. The general pattern for formatting integers is to sprintf into a fixed-size buffer. This is correct if the input is in the right range; if it isn't, the buffer may be overrun (depending on the sizes of the types on the current platform). Of course the inputs ought to be right. And there are pointers in there too, so perhaps one could say that the caller ought to check these things. It may be better to require the caller to make the pointer structure right, but to have the code here be defensive about (and tolerate with an error but without crashing) out-of-range integer values. So: it should defend each of these integer conversion sites with a check for the actual permitted range, and return adns_s_invaliddata if not. The lack of this check causes the SOA sign extension bug to be a serious security problem: the sign extended SOA value is out of range, and overruns the buffer when reconverted. This is related to sign extending SOA 32-bit integer fields, and use of a signed data type.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

In adns before 1.5.2, the adns_rr_info function uses sprintf to format integers into fixed-size buffers without proper range validation. When SOA record 32-bit integer fields are incorrectly treated as signed (due to sign extension), the resulting out-of-range value overflows the buffer during reconversion. This creates a buffer overflow vulnerability that could allow denial of service or potentially code execution.

MitigationUpgrade to adns 1.5.2 or later. Until then, avoid processing untrusted DNS responses containing SOA records, as the integer conversion code lacks defensive bounds checking.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
FedoraOperating system
Affected:= 31= 32
AdnsApplication
Affected:< 1.5.2

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check if adns is installed
    Run 'rpm -qa | grep -i adns' on Fedora/RHEL or 'dpkg -l | grep -i adns' on Debian/Ubuntu
    Affected if adns package is present in the output
  2. Determine installed adns version
    Run 'rpm -q adns' on Fedora/RHEL or 'dpkg -s adns' on Debian/Ubuntu to retrieve the version number
    Affected if version displayed is below 1.5.2
  3. Check if application uses adns library for DNS queries
    Review application dependencies with 'ldd <executable>' or check for linked adns libraries, and review code for adns_resolver or adns_submit calls
    Affected if applications link against libadns and perform DNS queries
  4. Verify SOA record processing is enabled
    Check application configuration or code for adns_rr_info calls or SOA record type (type 6) queries, as the vulnerability triggers during SOA record integer field parsing
    Affected if application queries for or processes SOA records from DNS responses

You are affected if adns version is below 1.5.2 and your system or applications process DNS SOA records using the adns library.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Upgrade available Upgrade to 1.5.2 or later
Fixed in 1.5.2
Interim mitigation

Upgrade to adns 1.5.2 or later. Until then, avoid processing untrusted DNS responses containing SOA records, as the integer conversion code lacks defensive bounds checking.

Fix this in Fedora Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing4.0 h
  • Review / QA2.0 h
15.0 hours of engineering $2,640
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,224.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2017-9106 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2017-9106 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data