<Vulnerability name="CVE-2026-12246">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-06-25T00:00:00</PublicDate>
    <Bugzilla id="2491589" url="https://bugzilla.redhat.com/show_bug.cgi?id=2491589" xml:lang="en:us">
nsd: Out of bounds stack write with crafted APL RR
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>8.0</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-787</CWE>
    <Details xml:lang="en:us" source="Mitre">
NSD version 4.14.0 introduced a bug where a specially crafted APL RR, with an adflength larger than permitted for the address family will overwrite the stack when the zone is written to disk, with a maximum of 111 attacker controlled bytes.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in NSD. A remote attacker, operating as a configured primary DNS server in a multi-tenant secondary DNS deployment, could exploit a bug involving specially crafted Address Prefix List (APL) resource records. By providing an APL record with an adflength larger than permitted, the attacker can overwrite the stack when the zone is written to disk. This could lead to arbitrary code execution or a denial of service.
    </Details>
    <Statement xml:lang="en:us">
This is an Important flaw in NSD, affecting multi-tenant secondary DNS deployments. A remote attacker, acting as a configured primary DNS server, can exploit a specially crafted Address Prefix List (APL) resource record to cause a stack overwrite when the zone is written to disk. This could lead to arbitrary code execution or a denial of service on the secondary DNS server. The vulnerability requires the attacker to be a trusted primary, but the risk is significant in multi-tenant environments.

This vulnerability doesn't affect any supported Red Hat Product.
    </Statement>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-12246
https://nvd.nist.gov/vuln/detail/CVE-2026-12246
    </References>
</Vulnerability>