CVE-2026-81928Net::DNS versions before 1.57 for Perl allow memory exhaustion via unbounded recursion…
Net::DNS versions before 1.57 for Perl allow memory exhaustion via unbounded recursion in sig_data when re-encoding a message with a misplaced TSIG record. sig_data signs a message by re-encoding it, and removes TSIG records only from the additional section. A TSIG decoded into the answer or authority section survives that step and is signed again, so encoding re-enters sig_data with no termination condition. Decoding does not reject such a message: a TSIG that is not the last record on the wire raises "misplaced or corrupt TSIG", but the error is caught, reported as a warning, and the record is left in the packet. RFC 8945 section 5.2 requires the message to be dropped. The recursion is reached only when the decoded TSIG carries an empty MAC, since a MAC recovered from the wire short-circuits the signing step. It is reached only from code that re-encodes a message it decoded, such as a forwarder or a proxy. A decoded message that is never re-encoded is unaffected. Message direction does not matter: a query reaches the same path as a response. Each cycle re-encodes the whole message, so fewer than 100 bytes on the wire exhaust available memory and terminate the process.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libnet-dns-perl | Fix pending | UBUNTU-CVE-2026-81928 | |
| Ubuntu 26.04 | libnet-dns-perl | Under investigation | UBUNTU-CVE-2026-81928 | |
| Ubuntu 24.04 | libnet-dns-perl | Under investigation | UBUNTU-CVE-2026-81928 | |
| Ubuntu 22.04 | libnet-dns-perl | Under investigation | UBUNTU-CVE-2026-81928 | |
| Ubuntu 20.04 | libnet-dns-perl | Fix pending | UBUNTU-CVE-2026-81928 | |
| Ubuntu 18.04 | libnet-dns-perl | Fix pending | UBUNTU-CVE-2026-81928 | |
| Ubuntu 16.04 | libnet-dns-perl | Fix pending | UBUNTU-CVE-2026-81928 | |
| Ubuntu 14.04 | libnet-dns-perl | Fix pending | UBUNTU-CVE-2026-81928 | |
| Debian 14 | libnet-dns-perl | Fixed | 1.57-1 | DEBIAN-CVE-2026-81928 |
| Debian 13 | libnet-dns-perl | Fixed | 1.57-0+deb13u1 | DEBIAN-CVE-2026-81928 |
| Debian 12 | libnet-dns-perl | Fix pending | DEBIAN-CVE-2026-81928 | |
| Red Hat Enterprise Linux 9 | perl-Net-DNS | Fixed | 0:1.29-6.el9_8.1 | RHSA-2026:68786 |
| Red Hat Enterprise Linux 9 | perl-Net-DNS-Nameserver | Fixed | 0:1.29-6.el9_8.1 | RHSA-2026:68786 |
| Red Hat Enterprise Linux 8 | perl-Net-DNS | Fixed | 0:1.15-2.el8_10 | RHSA-2026:68787 |
| Red Hat Enterprise Linux 7 | perl-Net-DNS | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | perl-Net-DNS-Nameserver | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | perl-Net-DNS | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | perl-Net-DNS-Nameserver | Will not fix Out of support scope | ||
| AlmaLinux 9 | perl-Net-DNS | Fixed | 1.29-6.el9_8.1 | ALSA-2026:68786 |
| AlmaLinux 9 | perl-Net-DNS-Nameserver | Fixed | 1.29-6.el9_8.1 | ALSA-2026:68786 |
| AlmaLinux 8 | perl-Net-DNS | Fixed | 1.15-2.el8_10 | ALSA-2026:68787 |
| Rocky Linux 9 | perl-Net-DNS | Fixed | 0:1.29-6.el9_8.1 | RLSA-2026:68786 |
| Rocky Linux 8 | perl-Net-DNS | Fixed | 0:1.15-2.el8_10 | RLSA-2026:68787 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Net-DNS: affected: before 1.57; fixed in
1.57
Solution: Upgrade to Net-DNS 1.57 or later.
Workaround: For deployments that are not able to upgrade to Net-DNS 1.57, reject a decoded message before re-encoding it if a TSIG record appears anywhere but the final position of the additional section.
Vendor advisories:
- https://metacpan.org/release/NLNETLABS/Net-DNS-1.57/changes (release-notes)
References
- https://metacpan.org/release/NLNETLABS/Net-DNS-1.56/source/lib/Net/DNS/RR/TSIG.pm#L245-262
- https://metacpan.org/release/NLNETLABS/Net-DNS-1.56/source/lib/Net/DNS/RR/TSIG.pm#L62-73
- https://datatracker.ietf.org/doc/html/rfc8945#section-5.2
- https://rt.cpan.org/Ticket/Display.html?id=181125
- https://metacpan.org/release/NLNETLABS/Net-DNS-1.57/changes
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.