CVE-2026-50252: Possible cache poisoning attack by mapping source port population per thread

Published Jul 22, 2026
·
Updated

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 SOREUSEPORT 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 SOREUSEPORT 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.

Other sources

Possible cache poisoning attack by mapping source port population per thread

Microsoft

Affected Software

3 affected componentsFixes available
Nlnet Labs Unbound>=1.4.22<=1.25.1
Microsoft azl3 unbound 1.25.1-1<1.25.2-1
1.25.2-1
nlnetlabs Unbound>=1.4.22<1.25.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.25.2-1
  2. Upgrade

    Upgrade Unbound to a version that resolves this vulnerability.

    Fixed in 1.25.2
  3. Configuration

    Disable SO_REUSEPORT in Unbound by setting 'so-reuseport: no' (Unbound setting 'so-reuseport: yes' is identified as vulnerable when load balancing policies depend on the incoming UDP source port).

    Unbound so-reuseport = no

Event History

Jul 22, 2026
CVE Published
via MITRE·01:08 PM
Data Sourced
via MITRE·01:08 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeaknessAffected Software
Jul 23, 2026
Data Sourced
via Microsoft·08:05 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:05 AM
Affected Software
Updated
via Microsoft·08:05 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-50252?

The severity of CVE-2026-50252 is medium, with a CVSS score of 5.7.

2

How do I fix CVE-2026-50252?

To fix CVE-2026-50252, you should upgrade to a patched version of NLnet Labs Unbound that addresses the vulnerability.

3

What causes CVE-2026-50252?

CVE-2026-50252 is caused by the exposure of the UDP source port as a secret value, which can be exploited in DNS resolver balancing scenarios.

4

Which software is affected by CVE-2026-50252?

CVE-2026-50252 affects NLnet Labs Unbound versions from 1.4.22 up to and including 1.25.1.

5

What type of attack is associated with CVE-2026-50252?

CVE-2026-50252 is associated with possible cache poisoning attacks due to improper handling of source port population.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203