Buffer overflow in GNU Adns
CVE-2017-9108
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.022, 82.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- GNU Adns
- Fedoraproject Fedora — versions 31, 32
- openSUSE Leap — versions 15.1
Weakness classification (CWE)
References
- www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git (Third Party Advisory)
- www.chiark.greenend.org.uk/pipermail/adns-announce/2020/000004.html (Third Party Advisory, Release Notes)
- www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git
- FEDORA-2020-530188bf36 (vendor-advisory)
- FEDORA-2020-e59bcaf702 (vendor-advisory)