CVEfocus › CVE database › CVE-2026-81928

CVE-2026-81928Net::DNS versions before 1.57 for Perl allow memory exhaustion via unbounded recursion…

CVSS 7.5 HighEPSS 0.7% (higher than 48% of CVEs)Published 2026-09-01Updated 2026-09-02Assigner: CPANSec

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.

CWE-674

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

10Fixed
8Fix pending
3Under investigation
2Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libnet-dns-perlFix pendingUBUNTU-CVE-2026-81928
Ubuntu 26.04libnet-dns-perlUnder investigationUBUNTU-CVE-2026-81928
Ubuntu 24.04libnet-dns-perlUnder investigationUBUNTU-CVE-2026-81928
Ubuntu 22.04libnet-dns-perlUnder investigationUBUNTU-CVE-2026-81928
Ubuntu 20.04libnet-dns-perlFix pendingUBUNTU-CVE-2026-81928
Ubuntu 18.04libnet-dns-perlFix pendingUBUNTU-CVE-2026-81928
Ubuntu 16.04libnet-dns-perlFix pendingUBUNTU-CVE-2026-81928
Ubuntu 14.04libnet-dns-perlFix pendingUBUNTU-CVE-2026-81928
Debian 14libnet-dns-perlFixed1.57-1DEBIAN-CVE-2026-81928
Debian 13libnet-dns-perlFixed1.57-0+deb13u1DEBIAN-CVE-2026-81928
Debian 12libnet-dns-perlFix pendingDEBIAN-CVE-2026-81928
Red Hat Enterprise Linux 9perl-Net-DNSFixed0:1.29-6.el9_8.1RHSA-2026:68786
Red Hat Enterprise Linux 9perl-Net-DNS-NameserverFixed0:1.29-6.el9_8.1RHSA-2026:68786
Red Hat Enterprise Linux 8perl-Net-DNSFixed0:1.15-2.el8_10RHSA-2026:68787
Red Hat Enterprise Linux 7perl-Net-DNSFix pending
Affected
Red Hat Enterprise Linux 7perl-Net-DNS-NameserverFix pending
Affected
Red Hat Enterprise Linux 6perl-Net-DNSWill not fix
Out of support scope
Red Hat Enterprise Linux 6perl-Net-DNS-NameserverWill not fix
Out of support scope
AlmaLinux 9perl-Net-DNSFixed1.29-6.el9_8.1ALSA-2026:68786
AlmaLinux 9perl-Net-DNS-NameserverFixed1.29-6.el9_8.1ALSA-2026:68786
AlmaLinux 8perl-Net-DNSFixed1.15-2.el8_10ALSA-2026:68787
Rocky Linux 9perl-Net-DNSFixed0:1.29-6.el9_8.1RLSA-2026:68786
Rocky Linux 8perl-Net-DNSFixed0:1.15-2.el8_10RLSA-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.

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:

References

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.