Description
Net::DNS uses a 16-bit query ID to match responses to the corresponding requests. In versions up to and including 1.57, the ID is obtained from Perl's built-in rand() function. An attacker that can observe the sequence of query IDs is able to expose the internal state of the PNRG and hence predict query IDs before they are transmitted. The victim Net::DNS instance is then exposed to forged responses injected by the attacker. Note that the deduplication cache in 1.57 has no impact on the feasibility of this attack.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| NLnet Labs | Net::DNS | 0.02 – < 0.*, 1.00 – < 1.58 | 0.* |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libnet-dns-perl | No fix yet | — |
| Debian 13 | libnet-dns-perl | No fix yet | — |
| Debian 12 | libnet-dns-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libnet-dns-perl | No fix yet | — |
| Ubuntu 26.04 LTS | libnet-dns-perl | No fix yet | — |
| Ubuntu 24.04 LTS | libnet-dns-perl | No fix yet | — |
| Ubuntu 22.04 LTS | libnet-dns-perl | No fix yet | — |
| Ubuntu 20.04 LTS | libnet-dns-perl | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libnet-dns-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libnet-dns-perl | No fix yet | — |
| Ubuntu 14.04 LTS | libnet-dns-perl | No fix yet | — |
Advisories 1
- WID-SEC-2026-4896 Red Hat Enterprise Linux (perl-Net-DNS, libmodulemd, json-glib, libreswan, idna): Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 1, 2026
References
- https://www.net-dns.org/downloads/CVE-2026-101340.txt vendor-advisory