Bug 1849782 (CVE-2017-9106) - CVE-2017-9106 adns: lack of check for out-of-range integers values can lead to out-of-bounds access
Summary: CVE-2017-9106 adns: lack of check for out-of-range integers values can lead t...
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2017-9106
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1849783
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-22 19:36 UTC by Guilherme de Almeida Suckevicz
Modified: 2020-06-22 23:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-22 23:20:39 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2020-06-22 19:36:05 UTC
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.

Reference:
https://www.chiark.greenend.org.uk/pipermail/adns-announce/2020/000004.html

Comment 1 Guilherme de Almeida Suckevicz 2020-06-22 19:36:23 UTC
Created adns tracking bugs for this issue:

Affects: fedora-all [bug 1849783]

Comment 2 Product Security DevOps Team 2020-06-22 23:20:39 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.