Loading advisory.
Loading advisory.
Netty: Memory Leak in DNS Record Decoder via Malformed Domain Names
A memory leak can be caused in Netty's DNS codec by sending malicious DNS packets containing invalid domain names. Because the leak occurs incrementally per packet, sustained malicious requests will cause a gradual Denial of Service.
Published 2026-07-24 16:52 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| io.netty:netty-codec-dns | Maven | >= 4.2.0.Final, < 4.2.16.Final < 4.1.136.Final versions 4.2.0.Final, 4.2.1.Final, 4.2.10.Final, 4.2.11.Final, 4.2.12.Final, 4.2.13.Final, 4.2.14.Final, 4.2.15.Final, 4.2.2.Final, 4.2.3.Final, 4.2.4.Final, 4.2.5.Final, 4.2.6.Final, 4.2.7.Final, 4.2.8.Final, 4.2.9.Final, 4.1.0.Beta1, 4.1.0.Beta2, 4.1.0.Beta3, 4.1.0.Beta4 and 147 more | 4.2.16.Final, 4.1.136.Final | No single command for Maven. Update to 4.2.16.Final, 4.1.136.Final in your build file. |
A memory leak can be caused in Netty's DNS codec by sending malicious DNS packets containing invalid domain names. Because the leak occurs incrementally per packet, sustained malicious requests will cause a gradual Denial of Service.
Inside io.netty.handler.codec.dns.AbstractDnsRecord, the parsed domain name string is passed to IDN.toASCII(name). If the domain name contains characters that violate IDNA rules, IDN.toASCII throws an IllegalArgumentException.
Because this exception occurs inside the constructor before the DnsRecord instance can assign the buffer to its content field for later release, the ByteBuf whose reference count was incremented (or newly allocated) is never released, resulting in a direct memory leak.
There are several places where variants of this leak happen:
io.netty.handler.codec.dns.DefaultDnsRecordDecoder#decodeRecord(java.lang.String, io.netty.handler.codec.dns.DnsRecordType, int, long, io.netty.buffer.ByteBuf, int, int) invokes in.retainedDuplicate() or creates a new buffer out when constructing DefaultDnsRawRecord
io.netty.handler.codec.dns.DnsCodecUtil#decompressDomainName allocates a new ByteBuf and passes it to encodeDomainName(). If the decompressed domain name contains a null byte (\0), encodeDomainName() throws an IllegalArgumentException, leaking the newly allocated buffer.
Resource Exhaustion. Any application utilizing Netty's DnsRecordDecoder (such as DnsNameResolver or custom DNS servers) is vulnerable.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.006 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |