Bug 1302587 (CVE-2016-0742)

Summary: CVE-2016-0742 nginx: invalid pointer dereference in resolver
Product: [Other] Security Response Reporter: Martin Prpič <mprpic>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: affix, athmanem, bperkins, dkholia, jeremy, jkaluza, jorton, mmaslano, pavel.lisy, peter.borsa, webstack-team, wtogami
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nginx 1.9.10, nginx 1.8.1 Doc Type: Bug Fix
Doc Text:
It was discovered that nginx could perform an out of bound read and dereference an invalid pointer when resolving CNAME DNS records. An attacker able to manipulate DNS responses received by nginx could use this flaw to cause a worker process to crash if nginx enabled the resolver in its configuration.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-14 11:20:58 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: 1302334, 1302337, 1302592, 1302599, 1342443    
Bug Blocks: 1302591    

Description Martin Prpič 2016-01-28 08:40:49 UTC
The following flaw was found in the nginx resolver:

Invalid pointer dereference might occur during DNS server response processing, allowing an attacker who is able to forge UDP packets from the DNS server to cause worker process crash.

This issue affects nginx only if the "resolver" directive is used in a configuration file.

The problems are fixed in nginx upstream versions 1.9.10 and 1.8.1.

External References:

http://mailman.nginx.org/pipermail/nginx-announce/2016/000169.html

Comment 1 Martin Prpič 2016-01-28 08:45:01 UTC
Created nginx tracking bugs for this issue:

Affects: fedora-all [bug 1302592]

Comment 3 Tomas Hoger 2016-02-10 21:44:26 UTC
Bug 1302589 comment 3 as few notes on how nginx resolver is used.

Comment 6 errata-xmlrpc 2016-07-14 05:50:16 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS

Via RHSA-2016:1425 https://access.redhat.com/errata/RHSA-2016:1425