Bind/Named Crash: REQUIRE(*name == ((void *)0)) failed, CVE-2015-5477

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, August 11, 2015

Follow me on Twitter as @mattiasgeniar

A couple of weeks ago, a major bind (named) vulnerability was exposed. The denial-of-service vulnerability abused a flaw in the way TKEY DNS records were processed.

The TKEY vulnerability

A flaw was found in the way BIND handled requests for TKEY DNS resource records. A remote attacker could use this flaw to make named (functioning as an authoritative DNS server or a DNS resolver) exit unexpectedly with an assertion failure via a specially crafted DNS request packet. (CVE-2015-5477)

Red Hat: CVE-2015-5477

Detecting CVE-2015-5477 in the wild

If you have bind nameservers running, you may see the following kind of logs appear in your syslog messages.

Aug  11 01:22:16 $server named[$pid]: message.c:2231: REQUIRE(*name == ((void *)0)) failed
Aug  11 01:22:16 $server named[$pid]: exiting (due to assertion failure)

And as a result, your bind nameserver will be dead.

$ service named status
named dead but subsys locked

Someone just sent a rogue TKEY packet to your server with the sole intent of crashing it.

Patching CVE-2015-5477

Patching is trivial, by now. This is the advantage of being late to the party, all major OS vendors have had their official packages updated.

On RHEL/CentOS:

$ yum update bind
$ service bind restart

On Debian/Ubuntu:

$ apt-get install bind9
$ service bind9 restart

And you’re patched against CVE-2015-5477.



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.