Bug 1380463 (CVE-2016-5180)
Summary: | CVE-2016-5180 c-ares: Single byte out of buffer write | ||
---|---|---|---|
Product: | [Other] Security Response | Reporter: | Adam Mariš <amaris> |
Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | abhgupta, ahardin, apevec, ayoung, bleanhar, cbuissar, ccoleman, chrisw, cvsbot-xmlrpc, dedgar, dmcphers, dmoppert, hhorak, jgoulding, jhrozek, jialiu, jkeck, joelsmith, jokerman, jorton, jschluet, kbasil, kseifried, lhh, lmeyer, lpeer, markmc, mchappel, mmccomas, mnagy, mrunge, nodejs-sig, rbryant, sclewis, sgallagh, srevivo, tcallawa, tchollingsworth, tdawson, tdecacqu, thrcka, tiwillia, valtri, zsvetlik |
Target Milestone: | --- | Keywords: | Reopened, Security |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | c-ares 1.12.0, nodejs 4.6.1, nodejs 0.10.48 | Doc Type: | If docs needed, set a value |
Doc Text: |
A vulnerability was found in c-ares. A hostname with an escaped trailing dot (such as "hello\.") would have its size calculated incorrectly, leading to a single byte written beyond the end of a buffer on the heap. An attacker able to provide such a hostname to an application using c-ares, could potentially cause that application to crash.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2019-06-08 02:59:15 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: | 1380464, 1380465, 1380466, 1380467, 1380468, 1380576, 1387961, 1389242, 1389243, 1389244, 1399557, 1405996, 1470080, 1597937 | ||
Bug Blocks: | 1380469, 1434569 |
Description
Adam Mariš
2016-09-29 16:31:32 UTC
Created c-ares19 tracking bugs for this issue: Affects: epel-7 [bug 1380468] Created mingw-c-ares tracking bugs for this issue: Affects: fedora-all [bug 1380465] Affects: epel-6 [bug 1380467] Created c-ares tracking bugs for this issue: Affects: fedora-all [bug 1380464] Affects: epel-5 [bug 1380466] The overflowed buffer is heap-allocated using malloc(). Overflow is by only one byte, and the value comes from another parameter (dnsclass) to the affected function. Normally this parameter is not under the attacker's control. For Internet domain resolution (by far the most common case), it must always be 1. As such, the worst possible outcome here is to corrupt the first byte of the following chunk's metadata, which may lead to a panic in a later call to malloc/free/realloc. Created mingw-c-ares tracking bugs for this issue: Affects: epel-7 [bug 1380576] Statement: Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/. Created nodejs tracking bugs for this issue: Affects: fedora-all [bug 1389243] Affects: epel-all [bug 1389244] Upstream patch (0.10.48): https://github.com/nodejs/node/commit/a14a6a3a1 Upstream patch (4.6.1): https://github.com/nodejs/node/commit/f3c63e7ccf This issue has been addressed in the following products: Red Hat Software Collections for Red Hat Enterprise Linux 6 Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS Red Hat Software Collections for Red Hat Enterprise Linux 7 Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS Via RHSA-2017:0002 https://rhn.redhat.com/errata/RHSA-2017-0002.html NodeJS upstream fixed this issue in their bundled c-ares in versions 0.10.48, 0.12.17, and 4.6.1: https://nodejs.org/en/blog/vulnerability/october-2016-security-releases/ https://nodejs.org/en/blog/release/v0.10.48/ https://nodejs.org/en/blog/release/v0.12.17/ https://nodejs.org/en/blog/release/v4.6.1/ |