CVE-2026-50252: Possible cache poisoning attack by mapping source port population per thread
CVE-2026-50252 affects 58 listed versions of NLnet Labs Unbound in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
NLnet Labs Unbound
58 of 103 listed versions are affected. Fixed in 1.25.2. The newest release, 1.26.2, is not affected.
1.25.1 1.25.0 1.24.2 1.24.1 1.24.0 1.23.1 1.23.0 1.22.0 1.21.1 1.21.0 1.20.0 1.19.3 1.19.2 1.19.1 1.19.0 1.18.0 1.17.1 1.17.0 1.16.3 1.16.2 1.16.1 1.16.0 1.15.0 1.14.0 1.13.2 1.13.1 1.13.0 1.12.0 1.11.0 1.10.1 1.10.0 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2 1.9.1 1.9.0 1.8.3 1.8.2 1.8.1 1.8.0 1.7.3 1.7.2 1.7.1 1.7.0 1.6.8 1.6.7 1.6.6-5.el7_8 1.6.6-5 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.0
What it is
In NLnet Labs Unbound 1.4.22 up to and including 1.25.1, UDP source port is randomized and intended to serve as a secret value that increases the entropy of DNS transactions. When resolver load balancing policies depend on the source port while their outcome is revealed this secrecy is undermined. The vulnerability arises when the load balancing policy is consistent with respect to the incoming source UDP port and IP address while heavily depending on the incoming source UDP port as a randomization source. When the SO_REUSEPORT configuration option is enabled ('so-reuseport: yes') in Unbound (by default), it meets these conditions, making it vulnerable for DNS cache poisoning attacks. Upon startup, Unbound randomly partitions the available UDP source port space into disjoint subsets of (almost) equal size, assigning each subset to a specific worker thread. When an incoming DNS query is received, the kernel’s SO_REUSEPORT load balancing mechanism deterministically assigns the query to a socket associated with a particular thread. All outgoing DNS queries generated during the resolution of that request use source ports selected exclusively from the port subset assigned to the corresponding thread. Since these port subsets are disjoint across threads, the source port observed in a resolver’s outgoing query to an authoritative name server serves as a reliable indicator of the worker thread that processed the original client query. A malicious actor can acquire the mapping between incoming UDP source ports (for a given fixed source IP address) and Unbound worker threads and leverage it to conduct DNS cache poisoning attacks by effectively lowering the random port population per thread.
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H (NVD)
Published by Nlnet Labs on 22 July 2026. Last changed 24 October 2026.
Sources
Check one version you run: look CVE-2026-50252 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.