CVEfocus › CVE database › CVE-2023-3341

CVE-2023-3341A stack exhaustion flaw in control channel code may cause named to terminate unexpectedly

CVSS 7.5 HighEPSS 2.9% (higher than 87% of CVEs)Published 2023-09-20Updated 2025-12-02Assigner: isc

The code that processes control channel messages sent to `named` calls certain functions recursively during packet parsing. Recursion depth is only limited by the maximum accepted packet size; depending on the environment, this may cause the packet-parsing code to run out of available stack memory, causing `named` to terminate unexpectedly. Since each incoming control channel message is fully parsed before its contents are authenticated, exploiting this flaw does not require the attacker to hold a valid RNDC key; only network access to the control channel's configured TCP port is necessary. This issue affects BIND 9 versions 9.2.0 through 9.16.43, 9.18.0 through 9.18.18, 9.19.0 through 9.19.16, 9.9.3-S1 through 9.16.43-S1, and 9.18.0-S1 through 9.18.18-S1.

CWE-1325

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

105Fixed
3Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04bind9Fixed1:9.18.18-0ubuntu2UBUNTU-CVE-2023-3341
Ubuntu 24.04isc-dhcpNot affected
vulnerable_code_not_present
Ubuntu 22.04bind9Fixed1:9.18.12-0ubuntu0.22.04.3UBUNTU-CVE-2023-3341
Ubuntu 22.04isc-dhcpNot affected
vulnerable_code_not_present
Ubuntu 20.04bind9Fixed1:9.16.1-0ubuntu2.16UBUNTU-CVE-2023-3341
Ubuntu 20.04isc-dhcpNot affected
vulnerable_code_not_present
Ubuntu 18.04bind9Fix pending1:9.11.3+dfsg-1ubuntu1.19+esm2 (Ubuntu Pro)UBUNTU-CVE-2023-3341
Ubuntu 18.04isc-dhcpNot affected
vulnerable_code_not_present
Ubuntu 16.04bind9Fix pending1:9.10.3.dfsg.P4-8ubuntu1.19+esm7 (Ubuntu Pro)UBUNTU-CVE-2023-3341
Ubuntu 16.04isc-dhcpNot affected
vulnerable_code_not_present
Ubuntu 14.04bind9Fix pending1:9.9.5.dfsg-3ubuntu0.19+esm11 (Ubuntu Pro)UBUNTU-CVE-2023-3341
Debian 14bind9Fixed1:9.19.17-1DEBIAN-CVE-2023-3341
Debian 13bind9Fixed1:9.19.17-1DEBIAN-CVE-2023-3341
Debian 12bind9Fixed1:9.18.19-1~deb12u1DEBIAN-CVE-2023-3341
Red Hat Enterprise Linux 9bindFixed32:9.16.23-11.el9_2.2RHSA-2023:5689
Red Hat Enterprise Linux 9bind-chrootFixed32:9.16.23-11.el9_2.2RHSA-2023:5689
Red Hat Enterprise Linux 9bind-develFixed32:9.16.23-11.el9_2.2RHSA-2023:5689
Red Hat Enterprise Linux 9bind-dnssec-docFixed32:9.16.23-11.el9_2.2RHSA-2023:5689
Red Hat Enterprise Linux 9bind-dnssec-utilsFixed32:9.16.23-11.el9_2.2RHSA-2023:5689
Red Hat Enterprise Linux 9bind-docFixed32:9.16.23-11.el9_2.2RHSA-2023:5689
Red Hat Enterprise Linux 9bind-libsFixed32:9.16.23-11.el9_2.2RHSA-2023:5689
Red Hat Enterprise Linux 9bind-licenseFixed32:9.16.23-11.el9_2.2RHSA-2023:5689
Red Hat Enterprise Linux 9bind-utilsFixed32:9.16.23-11.el9_2.2RHSA-2023:5689
Red Hat Enterprise Linux 9python3-bindFixed32:9.16.23-11.el9_2.2RHSA-2023:5689
Red Hat Enterprise Linux 8bindFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-chrootFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-develFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-export-develFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-export-libsFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-libsFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-libs-liteFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-licenseFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-lite-develFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-pkcs11Fixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-pkcs11-develFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-pkcs11-libsFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-pkcs11-utilsFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-sdbFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-sdb-chrootFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind-utilsFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8bind9.16Fixed32:9.16.23-0.14.el8_8.2RHSA-2023:5460
Red Hat Enterprise Linux 8bind9.16-chrootFixed32:9.16.23-0.14.el8_8.2RHSA-2023:5460
Red Hat Enterprise Linux 8bind9.16-develFixed32:9.16.23-0.14.el8_8.2RHSA-2023:5460
Red Hat Enterprise Linux 8bind9.16-dnssec-utilsFixed32:9.16.23-0.14.el8_8.2RHSA-2023:5460
Red Hat Enterprise Linux 8bind9.16-docFixed32:9.16.23-0.14.el8_8.2RHSA-2023:5460
Red Hat Enterprise Linux 8bind9.16-libsFixed32:9.16.23-0.14.el8_8.2RHSA-2023:5460
Red Hat Enterprise Linux 8bind9.16-licenseFixed32:9.16.23-0.14.el8_8.2RHSA-2023:5460
Red Hat Enterprise Linux 8bind9.16-utilsFixed32:9.16.23-0.14.el8_8.2RHSA-2023:5460
Red Hat Enterprise Linux 8python3-bindFixed32:9.11.36-8.el8_8.2RHSA-2023:5474
Red Hat Enterprise Linux 8python3-bind9.16Fixed32:9.16.23-0.14.el8_8.2RHSA-2023:5460
Red Hat Enterprise Linux 7bindFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-chrootFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-develFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-export-develFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-export-libsFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-libsFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-libs-liteFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-licenseFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-lite-develFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-pkcs11Fixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-pkcs11-develFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-pkcs11-libsFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-pkcs11-utilsFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-sdbFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-sdb-chrootFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
Red Hat Enterprise Linux 7bind-utilsFixed32:9.11.4-26.P2.el7_9.15RHSA-2023:5691
AlmaLinux 9bindFixed32:9.16.23-11.el9_2.2ALSA-2023:5689
AlmaLinux 9bind-chrootFixed32:9.16.23-11.el9_2.2ALSA-2023:5689
AlmaLinux 9bind-develFixed32:9.16.23-11.el9_2.2ALSA-2023:5689
AlmaLinux 9bind-dnssec-docFixed32:9.16.23-11.el9_2.2ALSA-2023:5689
AlmaLinux 9bind-dnssec-utilsFixed32:9.16.23-11.el9_2.2ALSA-2023:5689
AlmaLinux 9bind-docFixed32:9.16.23-11.el9_2.2ALSA-2023:5689
AlmaLinux 9bind-libsFixed32:9.16.23-11.el9_2.2ALSA-2023:5689
AlmaLinux 9bind-licenseFixed32:9.16.23-11.el9_2.2ALSA-2023:5689
AlmaLinux 9bind-utilsFixed32:9.16.23-11.el9_2.2ALSA-2023:5689
AlmaLinux 9python3-bindFixed32:9.16.23-11.el9_2.2ALSA-2023:5689
AlmaLinux 8bindFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-chrootFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-develFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-export-develFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-export-libsFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-libsFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-libs-liteFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-licenseFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-lite-develFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-pkcs11Fixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-pkcs11-develFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-pkcs11-libsFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-pkcs11-utilsFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-sdbFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-sdb-chrootFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind-utilsFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8bind9.16Fixed32:9.16.23-0.14.el8_8.2.alma.1ALSA-2023:5460
AlmaLinux 8bind9.16-chrootFixed32:9.16.23-0.14.el8_8.2.alma.1ALSA-2023:5460
AlmaLinux 8bind9.16-develFixed32:9.16.23-0.14.el8_8.2.alma.1ALSA-2023:5460
AlmaLinux 8bind9.16-dnssec-utilsFixed32:9.16.23-0.14.el8_8.2.alma.1ALSA-2023:5460
AlmaLinux 8bind9.16-docFixed32:9.16.23-0.14.el8_8.2.alma.1ALSA-2023:5460
AlmaLinux 8bind9.16-libsFixed32:9.16.23-0.14.el8_8.2.alma.1ALSA-2023:5460
AlmaLinux 8bind9.16-licenseFixed32:9.16.23-0.14.el8_8.2.alma.1ALSA-2023:5460
AlmaLinux 8bind9.16-utilsFixed32:9.16.23-0.14.el8_8.2.alma.1ALSA-2023:5460
AlmaLinux 8python3-bindFixed32:9.11.36-8.el8_8.2ALSA-2023:5474
AlmaLinux 8python3-bind9.16Fixed32:9.16.23-0.14.el8_8.2.alma.1ALSA-2023:5460
Rocky Linux 9bindFixed2:9.16.23-11.el9_2.2RLSA-2023:5689
Alpine Linux 3.24bindFixed9.18.19-r0ALPINE-CVE-2023-3341
Alpine Linux 3.23bindFixed9.18.19-r0ALPINE-CVE-2023-3341
Alpine Linux 3.22bindFixed9.18.19-r0ALPINE-CVE-2023-3341
Alpine Linux 3.21bindFixed9.18.19-r0ALPINE-CVE-2023-3341
Alpine Linux 3.20bindFixed9.18.19-r0ALPINE-CVE-2023-3341
Alpine Linux 3.19bindFixed9.18.19-r0ALPINE-CVE-2023-3341
Alpine Linux 3.18bindFixed9.18.19-r0ALPINE-CVE-2023-3341
Alpine Linux 3.17bindFixed9.18.19-r0ALPINE-CVE-2023-3341
Alpine Linux 3.16bindFixed9.16.44-r0ALPINE-CVE-2023-3341
Alpine Linux 3.15bindFixed9.16.44-r0ALPINE-CVE-2023-3341

What the vendor says

As published in the CVE record by isc, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to the patched release most closely related to your current version of BIND 9: 9.16.44, 9.18.19, 9.19.17, 9.16.44-S1, or 9.18.19-S1.

Workaround: By default, `named` only allows control-channel connections over the loopback interface, making this attack impossible to carry out over the network. When enabling remote access to the control channel's configured TCP port, care should be taken to limit such access to trusted IP ranges on the network level, effectively preventing unauthorized parties from carrying out the attack described in this advisory.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.