In NLnet Labs Unbound up to and including version 1.25.1, when the validator builds the canonical RDATA form for an RRSIG-covered PX/RP/MINFO/SOA RRset, it computes the address of the second embedded domain name as 'datstart + dnamevalid(datstart, ...)' and passes it straight to 'querydnametolower()' without checking that a second name is actually present in the RDATA. The wire-format parser accepts multi-dname RRs whose RDATA ends after the first name, so an attacker who runs a DNSSEC-signed authoritative server can deliver a record with an absent second domain name (e.g. SOA record) and cause 'querydnametolower()' to walk label-by-label through stale bytes in the per-worker 'env->scratchbuffer', past the end of that heap allocation if 'msg-buffer-size' has been lowered from the default. This leads to heap buffer overflow and on a release build the outcome relies heavily on the contents of the buffer tail and the adjacent heap chunk.
{
"binaries": [
{
"binary_name": "libunbound8",
"binary_version": "1.13.1-1ubuntu5.15"
},
{
"binary_name": "python3-unbound",
"binary_version": "1.13.1-1ubuntu5.15"
},
{
"binary_name": "unbound",
"binary_version": "1.13.1-1ubuntu5.15"
},
{
"binary_name": "unbound-anchor",
"binary_version": "1.13.1-1ubuntu5.15"
},
{
"binary_name": "unbound-host",
"binary_version": "1.13.1-1ubuntu5.15"
}
]
}{
"binaries": [
{
"binary_name": "libunbound8",
"binary_version": "1.19.2-1ubuntu3.8"
},
{
"binary_name": "python3-unbound",
"binary_version": "1.19.2-1ubuntu3.8"
},
{
"binary_name": "unbound",
"binary_version": "1.19.2-1ubuntu3.8"
},
{
"binary_name": "unbound-anchor",
"binary_version": "1.19.2-1ubuntu3.8"
},
{
"binary_name": "unbound-host",
"binary_version": "1.19.2-1ubuntu3.8"
}
]
}{
"binaries": [
{
"binary_name": "libunbound8",
"binary_version": "1.24.2-1ubuntu2.1"
},
{
"binary_name": "python3-unbound",
"binary_version": "1.24.2-1ubuntu2.1"
},
{
"binary_name": "unbound",
"binary_version": "1.24.2-1ubuntu2.1"
},
{
"binary_name": "unbound-anchor",
"binary_version": "1.24.2-1ubuntu2.1"
},
{
"binary_name": "unbound-host",
"binary_version": "1.24.2-1ubuntu2.1"
}
]
}{
"binaries": [
{
"binary_name": "libunbound2",
"binary_version": "1.4.22-1ubuntu4.14.04.3+esm3"
},
{
"binary_name": "python-unbound",
"binary_version": "1.4.22-1ubuntu4.14.04.3+esm3"
},
{
"binary_name": "unbound",
"binary_version": "1.4.22-1ubuntu4.14.04.3+esm3"
},
{
"binary_name": "unbound-anchor",
"binary_version": "1.4.22-1ubuntu4.14.04.3+esm3"
},
{
"binary_name": "unbound-host",
"binary_version": "1.4.22-1ubuntu4.14.04.3+esm3"
}
]
}{
"binaries": [
{
"binary_name": "libunbound2",
"binary_version": "1.5.8-1ubuntu1.1+esm3"
},
{
"binary_name": "python-unbound",
"binary_version": "1.5.8-1ubuntu1.1+esm3"
},
{
"binary_name": "unbound",
"binary_version": "1.5.8-1ubuntu1.1+esm3"
},
{
"binary_name": "unbound-anchor",
"binary_version": "1.5.8-1ubuntu1.1+esm3"
},
{
"binary_name": "unbound-host",
"binary_version": "1.5.8-1ubuntu1.1+esm3"
}
]
}{
"binaries": [
{
"binary_name": "libunbound2",
"binary_version": "1.6.7-1ubuntu2.6+esm4"
},
{
"binary_name": "python-unbound",
"binary_version": "1.6.7-1ubuntu2.6+esm4"
},
{
"binary_name": "python3-unbound",
"binary_version": "1.6.7-1ubuntu2.6+esm4"
},
{
"binary_name": "unbound",
"binary_version": "1.6.7-1ubuntu2.6+esm4"
},
{
"binary_name": "unbound-anchor",
"binary_version": "1.6.7-1ubuntu2.6+esm4"
},
{
"binary_name": "unbound-host",
"binary_version": "1.6.7-1ubuntu2.6+esm4"
}
]
}{
"binaries": [
{
"binary_name": "libunbound8",
"binary_version": "1.9.4-2ubuntu1.11+esm1"
},
{
"binary_name": "python-unbound",
"binary_version": "1.9.4-2ubuntu1.11+esm1"
},
{
"binary_name": "python3-unbound",
"binary_version": "1.9.4-2ubuntu1.11+esm1"
},
{
"binary_name": "unbound",
"binary_version": "1.9.4-2ubuntu1.11+esm1"
},
{
"binary_name": "unbound-anchor",
"binary_version": "1.9.4-2ubuntu1.11+esm1"
},
{
"binary_name": "unbound-host",
"binary_version": "1.9.4-2ubuntu1.11+esm1"
}
]
}