| Name | CVE-2017-3137 | 
| Description | Mistaken assumptions about the ordering of records in the answer section of a response containing CNAME or DNAME resource records could lead to a situation in which named would exit with an assertion failure when processing a response in which records occurred in an unusual order. Affects BIND 9.9.9-P6, 9.9.10b1->9.9.10rc1, 9.10.4-P6, 9.10.5b1->9.10.5rc1, 9.11.0-P3, 9.11.1b1->9.11.1rc1, and 9.9.9-S8. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DLA-957-1, DSA-3854-1 | 
| Debian Bugs | 860225 | 
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|---|---|---|
| bind9 (PTS) | bullseye | 1:9.16.50-1~deb11u2 | fixed | 
| bullseye (security) | 1:9.16.50-1~deb11u3 | fixed | |
| bookworm | 1:9.18.33-1~deb12u2 | fixed | |
| bookworm (security) | 1:9.18.41-1~deb12u1 | fixed | |
| trixie | 1:9.20.11-4 | fixed | |
| trixie (security) | 1:9.20.15-1~deb13u1 | fixed | |
| forky, sid | 1:9.20.15-2 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|---|---|---|---|---|---|
| bind9 | source | wheezy | 1:9.8.4.dfsg.P1-6+nmu2+deb7u16 | DLA-957-1 | ||
| bind9 | source | jessie | 1:9.9.5.dfsg-9+deb8u11 | DSA-3854-1 | ||
| bind9 | source | (unstable) | 1:9.10.3.dfsg.P4-12.3 | 860225 | 
https://kb.isc.org/article/AA-01466
Additional information for backporting patch: https://www.openwall.com/lists/oss-security/2017/04/17/5
Fixed by (9.10.x): https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commitdiff;h=69fd759b4aa02047e42e5cf4227f8257c4547988
Fixed by (9.10.x): https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commitdiff;h=6841d7b854c15df9ec56cab38da201b315bbcabb (reimplentation)
Fixed by (9.10.x): https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commitdiff;h=7ab9e8e00775782d474522a5b2bffba8daefefa5 (regression fix)