Stack-based buffer overflow in NSD - CVE-2026-12246
Published: June 25, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to a stack-based buffer overflow in the APL RR rdata handling logic when writing a zonefile to disk. A remote user can provide a specially crafted APL resource record with an oversized adflength value to execute arbitrary code.
Exploitation requires control of data from a configured primary in a multi-tenant secondary DNS deployment.
Affected software
Fedora
Ubuntu
nsd (Ubuntu package)
nsd
How to mitigate CVE-2026-12246
nsd (Ubuntu package) - addressed in versions 4.1.7-1ubuntu0.1~esm1, 4.1.17-1ubuntu0.1~esm1, 4.1.26-1ubuntu0.1~esm1, 4.3.9-1ubuntu0.1~esm1, 4.8.0-1ubuntu0.1~esm1, 4.14.0-1ubuntu0.1~esm1
nsd - addressed in versions 4.14.3-1.fc43, 4.14.3-1.fc44, 4.15.0-1.el10_3