Bug 2588732 (CVE-2026-142440)

Summary: CVE-2026-142440 io.netty/netty-codec-dns: Netty: DNS codec decoders materialize records from uncapped 16-bit counts (quadratic allocation)
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: ant, anujha, aschwart, asoldano, asyoung, aszczucz, bbaranow, bmaxwell, boliveir, bstansbe, ccranfor, cescoffi, chfoley, cmah, dhanak, dlofthou, drichtar, drosa, dsimansk, ewittman, fmariani, fmongiar, gmalinko, gsmet, gtanzill, istudens, ivassile, iweiss, janstey, jbaesner, jbuscemi, jkrystof, jmartisk, jnethert, jpechane, jturenov, jwon, kaycoth, kingland, manderse, mcarlett, mnovotny, mosmerov, mposolda, msvehla, nipatil, nwallace, olubyans, ozzy, pantinor, pberan, pesilva, pjindal, pmackay, prichard, rguimara, rkubis, rmartinc, rstancel, rstepani, sausingh, sbiarozk, sdawley, ssilvert, sthirugn, sthorger, swoodman, tcunning, thjenkin, tmielke, tzimanyi, varjain, vdosoudi, vmuzikar, yfang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in netty-codec-dns. A remote attacker could exploit this vulnerability by sending specially crafted Domain Name System (DNS) messages with oversized record counts to an affected system. Due to missing record limits and excessive memory allocations during message parsing, processing these crafted messages consumes disproportionate system memory and processing time. This can lead to severe application responsiveness issues or a Denial of Service (DoS).
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-12-02 16:49:49 UTC
The DNS decoders in netty-codec-dns build message records from the attacker-controlled 16-bit section counts (QDCOUNT, ANCOUNT, NSCOUNT, ARCOUNT) with no per-message record limit and no check of the counts against the message length. Each record name is decoded by DnsCodecUtil.decodeDomainName, which sizes its working StringBuilder to twice the entire remaining message buffer instead of the 255-character maximum name length. The per-name length check runs only after that allocation has been made. A single frame-legal message of about 64 KiB can therefore produce thousands of records, each with an oversized allocation, so total work grows quadratically with the frame size.

A remote, unauthenticated peer can use this to cause a denial of service. In testing, one 64 KiB message materialized about 4,661 records and caused about 325 MiB of transient heap allocation, roughly 5,000 times the on-wire size, on the synchronous I/O thread. A sustained low-bandwidth flood can saturate garbage collection and stall the event loop, denying service to every connection handled by that loop.

Affected are users of netty-codec-dns that decode DNS messages from untrusted peers, including DNS servers using TcpDnsQueryDecoder or DatagramDnsQueryDecoder, and DNS clients such as those using netty-resolver-dns with DnsResponseDecoder. Versions up to and including 4.1.138.Final, and 4.2.0.Final through 4.2.18.Final, are affected. The issue is fixed in 4.1.139.Final and 4.2.19.Final.

Affected versions: >= 4.2.0.Final, <= 4.2.18.Final; <=4.1.138.Final
Patched versions: 4.2.19.Final; 4.1.139.Final
CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5)
CWE: CWE-400, CWE-405
Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-3h79-3wcf-5whr
CVE requested by the Netty Project via PSIRTSUPT-32166.