A tale of a DNS exploit: CVE-2015-7547
Feb 29, 2016Marek Vavruša, Jaime Cochran

Summary
This post details the discovery and analysis of CVE-2015-7547, a buffer overflow vulnerability in GNU libc's DNS stub resolver. It provides proof-of-concept exploits for both on-path and off-path scenarios, demonstrating how attackers can achieve memory corruption and remote code execution by manipulating DNS responses. The post critically evaluates and debunks proposed mitigations like limiting DNS response sizes, highlighting their ineffectiveness and potential for harm. It emphasizes the critical need for immediate patching and suggests running local caching resolvers as a partial defense, while also illustrating a cache traversal attack against djbdns' dnscache.
More from the DNS Infrastructure & Naming Conventions trail
- The keys to the Internet change on October 11, 2026. Are you ready?
- 1.1.1.1 now supports post-quantum DNSSEC, all 2,420 bytes of it
- How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache
- BGP ORIGIN attribute manipulation and its impact on the Internet
- Cloudflare Internal DNS is now generally available