CVE-2026-50252
Possible cache poisoning attack by mapping source port population per thread
Reported by nlnet labs · Published July 22, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| unbound | Alpine | 1.25.2-r0 |
| unbound-devel | errata.rockylinux.org | 1.24.2-7.el10, 1.24.2-3.el9, 1.16.2-5.14.el8 |
| unbound-anchor | errata.rockylinux.org | 1.24.2-7.el10 |
| unbound-debuginfo | errata.rockylinux.org | 1.24.2-7.el10, 1.24.2-3.el9, 1.16.2-5.14.el8 |
| unbound-libs | errata.rockylinux.org | 1.24.2-7.el10, 1.24.2-3.el9, 1.16.2-5.14.el8 |
| python3-unbound | Amazon Linux | 1.17.1-1.amzn2023.0.13 |
| unbound-libs-debuginfo | errata.rockylinux.org | 1.24.2-7.el10, 1.24.2-3.el9, 1.16.2-5.14.el8 |
| unbound | errata.rockylinux.org | 1.24.2-7.el10, 1.24.2-3.el9, 1.16.2-5.14.el8 |
| unbound-utils | Amazon Linux | 1.17.1-1.amzn2023.0.13 |
| python3-unbound | errata.rockylinux.org | 1.24.2-7.el10, 1.24.2-3.el9, 1.16.2-5.14.el8 |
| unbound-dracut | errata.rockylinux.org | 1.24.2-7.el10, 1.24.2-3.el9 |
| python3-unbound-debuginfo | errata.rockylinux.org | 1.24.2-7.el10, 1.24.2-3.el9, 1.16.2-5.14.el8 |
9 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| NLnet Labs | Unbound | 1.4.22 |
| alpine | unbound | 0 |
| amazon:2023 | python3-unbound | 0 |
| amazon:2023 | unbound-utils | 0 |
| NLnet Labs | Unbound | 1.4.22 |
| amazon:2023 | unbound-libs | 0 |
| amazon:2023 | unbound-anchor | 0 |
| amazon:2023 | unbound-devel | 0 |
| amazon:2023 | unbound | 0 |
Timeline
- Jul 22, 2026 Coalition ESS Score
- Jul 22, 2026 CVE Published
- Jul 23, 2026 Security Advisory (5 in total, the first dated here)
- Jul 25, 2026 EPSS Score (13 in total, the first dated here)
- Sep 17, 2026 Distribution Patch (7 in total, the first dated here)
- Oct 24, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-50252
vulnetix vdb fixes CVE-2026-50252
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-50252/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart