Bug 1849787 (CVE-2017-9108)

Summary: CVE-2017-9108 adns: improper handling of a missing final newline on a stdin read
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: rvokal, sergio, thozza, vonsch
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-22 23:20:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1849788    
Bug Blocks:    

Description Guilherme de Almeida Suckevicz 2020-06-22 19:40:40 UTC
An issue was discovered in adns before 1.5.2. adnshost mishandles a missing final newline on a stdin read. It is wrong to increment used as well as setting r, since used is incremented according to r, later. Rather one should be doing what read() would have done. Without this fix, adnshost may read and process one byte beyond the buffer, perhaps crashing or perhaps somehow leaking the value of that byte.

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

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

Affects: fedora-all [bug 1849788]

Comment 2 Product Security DevOps Team 2020-06-22 23:20:43 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.