CVE-2023-3341A stack exhaustion flaw in control channel code may cause named to terminate unexpectedly
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | bind9 | Fixed | 1:9.18.18-0ubuntu2 | UBUNTU-CVE-2023-3341 |
| Ubuntu 24.04 | isc-dhcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | bind9 | Fixed | 1:9.18.12-0ubuntu0.22.04.3 | UBUNTU-CVE-2023-3341 |
| Ubuntu 22.04 | isc-dhcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | bind9 | Fixed | 1:9.16.1-0ubuntu2.16 | UBUNTU-CVE-2023-3341 |
| Ubuntu 20.04 | isc-dhcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | bind9 | Fix pending | 1:9.11.3+dfsg-1ubuntu1.19+esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-3341 |
| Ubuntu 18.04 | isc-dhcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | bind9 | Fix pending | 1:9.10.3.dfsg.P4-8ubuntu1.19+esm7 (Ubuntu Pro) | UBUNTU-CVE-2023-3341 |
| Ubuntu 16.04 | isc-dhcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | bind9 | Fix pending | 1:9.9.5.dfsg-3ubuntu0.19+esm11 (Ubuntu Pro) | UBUNTU-CVE-2023-3341 |
| Debian 14 | bind9 | Fixed | 1:9.19.17-1 | DEBIAN-CVE-2023-3341 |
| Debian 13 | bind9 | Fixed | 1:9.19.17-1 | DEBIAN-CVE-2023-3341 |
| Debian 12 | bind9 | Fixed | 1:9.18.19-1~deb12u1 | DEBIAN-CVE-2023-3341 |
| Red Hat Enterprise Linux 9 | bind | Fixed | 32:9.16.23-11.el9_2.2 | RHSA-2023:5689 |
| Red Hat Enterprise Linux 9 | bind-chroot | Fixed | 32:9.16.23-11.el9_2.2 | RHSA-2023:5689 |
| Red Hat Enterprise Linux 9 | bind-devel | Fixed | 32:9.16.23-11.el9_2.2 | RHSA-2023:5689 |
| Red Hat Enterprise Linux 9 | bind-dnssec-doc | Fixed | 32:9.16.23-11.el9_2.2 | RHSA-2023:5689 |
| Red Hat Enterprise Linux 9 | bind-dnssec-utils | Fixed | 32:9.16.23-11.el9_2.2 | RHSA-2023:5689 |
| Red Hat Enterprise Linux 9 | bind-doc | Fixed | 32:9.16.23-11.el9_2.2 | RHSA-2023:5689 |
| Red Hat Enterprise Linux 9 | bind-libs | Fixed | 32:9.16.23-11.el9_2.2 | RHSA-2023:5689 |
| Red Hat Enterprise Linux 9 | bind-license | Fixed | 32:9.16.23-11.el9_2.2 | RHSA-2023:5689 |
| Red Hat Enterprise Linux 9 | bind-utils | Fixed | 32:9.16.23-11.el9_2.2 | RHSA-2023:5689 |
| Red Hat Enterprise Linux 9 | python3-bind | Fixed | 32:9.16.23-11.el9_2.2 | RHSA-2023:5689 |
| Red Hat Enterprise Linux 8 | bind | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-chroot | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-devel | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-export-devel | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-export-libs | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-libs | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-libs-lite | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-license | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-lite-devel | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-pkcs11 | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-pkcs11-devel | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-pkcs11-libs | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-pkcs11-utils | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-sdb | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-sdb-chroot | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind-utils | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | bind9.16 | Fixed | 32:9.16.23-0.14.el8_8.2 | RHSA-2023:5460 |
| Red Hat Enterprise Linux 8 | bind9.16-chroot | Fixed | 32:9.16.23-0.14.el8_8.2 | RHSA-2023:5460 |
| Red Hat Enterprise Linux 8 | bind9.16-devel | Fixed | 32:9.16.23-0.14.el8_8.2 | RHSA-2023:5460 |
| Red Hat Enterprise Linux 8 | bind9.16-dnssec-utils | Fixed | 32:9.16.23-0.14.el8_8.2 | RHSA-2023:5460 |
| Red Hat Enterprise Linux 8 | bind9.16-doc | Fixed | 32:9.16.23-0.14.el8_8.2 | RHSA-2023:5460 |
| Red Hat Enterprise Linux 8 | bind9.16-libs | Fixed | 32:9.16.23-0.14.el8_8.2 | RHSA-2023:5460 |
| Red Hat Enterprise Linux 8 | bind9.16-license | Fixed | 32:9.16.23-0.14.el8_8.2 | RHSA-2023:5460 |
| Red Hat Enterprise Linux 8 | bind9.16-utils | Fixed | 32:9.16.23-0.14.el8_8.2 | RHSA-2023:5460 |
| Red Hat Enterprise Linux 8 | python3-bind | Fixed | 32:9.11.36-8.el8_8.2 | RHSA-2023:5474 |
| Red Hat Enterprise Linux 8 | python3-bind9.16 | Fixed | 32:9.16.23-0.14.el8_8.2 | RHSA-2023:5460 |
| Red Hat Enterprise Linux 7 | bind | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-chroot | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-devel | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-export-devel | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-export-libs | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-libs | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-libs-lite | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-license | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-lite-devel | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-pkcs11 | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-pkcs11-devel | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-pkcs11-libs | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-pkcs11-utils | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-sdb | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-sdb-chroot | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| Red Hat Enterprise Linux 7 | bind-utils | Fixed | 32:9.11.4-26.P2.el7_9.15 | RHSA-2023:5691 |
| AlmaLinux 9 | bind | Fixed | 32:9.16.23-11.el9_2.2 | ALSA-2023:5689 |
| AlmaLinux 9 | bind-chroot | Fixed | 32:9.16.23-11.el9_2.2 | ALSA-2023:5689 |
| AlmaLinux 9 | bind-devel | Fixed | 32:9.16.23-11.el9_2.2 | ALSA-2023:5689 |
| AlmaLinux 9 | bind-dnssec-doc | Fixed | 32:9.16.23-11.el9_2.2 | ALSA-2023:5689 |
| AlmaLinux 9 | bind-dnssec-utils | Fixed | 32:9.16.23-11.el9_2.2 | ALSA-2023:5689 |
| AlmaLinux 9 | bind-doc | Fixed | 32:9.16.23-11.el9_2.2 | ALSA-2023:5689 |
| AlmaLinux 9 | bind-libs | Fixed | 32:9.16.23-11.el9_2.2 | ALSA-2023:5689 |
| AlmaLinux 9 | bind-license | Fixed | 32:9.16.23-11.el9_2.2 | ALSA-2023:5689 |
| AlmaLinux 9 | bind-utils | Fixed | 32:9.16.23-11.el9_2.2 | ALSA-2023:5689 |
| AlmaLinux 9 | python3-bind | Fixed | 32:9.16.23-11.el9_2.2 | ALSA-2023:5689 |
| AlmaLinux 8 | bind | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-chroot | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-devel | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-export-devel | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-export-libs | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-libs | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-libs-lite | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-license | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-lite-devel | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-pkcs11 | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-pkcs11-devel | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-pkcs11-libs | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-pkcs11-utils | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-sdb | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-sdb-chroot | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind-utils | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | bind9.16 | Fixed | 32:9.16.23-0.14.el8_8.2.alma.1 | ALSA-2023:5460 |
| AlmaLinux 8 | bind9.16-chroot | Fixed | 32:9.16.23-0.14.el8_8.2.alma.1 | ALSA-2023:5460 |
| AlmaLinux 8 | bind9.16-devel | Fixed | 32:9.16.23-0.14.el8_8.2.alma.1 | ALSA-2023:5460 |
| AlmaLinux 8 | bind9.16-dnssec-utils | Fixed | 32:9.16.23-0.14.el8_8.2.alma.1 | ALSA-2023:5460 |
| AlmaLinux 8 | bind9.16-doc | Fixed | 32:9.16.23-0.14.el8_8.2.alma.1 | ALSA-2023:5460 |
| AlmaLinux 8 | bind9.16-libs | Fixed | 32:9.16.23-0.14.el8_8.2.alma.1 | ALSA-2023:5460 |
| AlmaLinux 8 | bind9.16-license | Fixed | 32:9.16.23-0.14.el8_8.2.alma.1 | ALSA-2023:5460 |
| AlmaLinux 8 | bind9.16-utils | Fixed | 32:9.16.23-0.14.el8_8.2.alma.1 | ALSA-2023:5460 |
| AlmaLinux 8 | python3-bind | Fixed | 32:9.11.36-8.el8_8.2 | ALSA-2023:5474 |
| AlmaLinux 8 | python3-bind9.16 | Fixed | 32:9.16.23-0.14.el8_8.2.alma.1 | ALSA-2023:5460 |
| Rocky Linux 9 | bind | Fixed | 2:9.16.23-11.el9_2.2 | RLSA-2023:5689 |
| Alpine Linux 3.24 | bind | Fixed | 9.18.19-r0 | ALPINE-CVE-2023-3341 |
| Alpine Linux 3.23 | bind | Fixed | 9.18.19-r0 | ALPINE-CVE-2023-3341 |
| Alpine Linux 3.22 | bind | Fixed | 9.18.19-r0 | ALPINE-CVE-2023-3341 |
| Alpine Linux 3.21 | bind | Fixed | 9.18.19-r0 | ALPINE-CVE-2023-3341 |
| Alpine Linux 3.20 | bind | Fixed | 9.18.19-r0 | ALPINE-CVE-2023-3341 |
| Alpine Linux 3.19 | bind | Fixed | 9.18.19-r0 | ALPINE-CVE-2023-3341 |
| Alpine Linux 3.18 | bind | Fixed | 9.18.19-r0 | ALPINE-CVE-2023-3341 |
| Alpine Linux 3.17 | bind | Fixed | 9.18.19-r0 | ALPINE-CVE-2023-3341 |
| Alpine Linux 3.16 | bind | Fixed | 9.16.44-r0 | ALPINE-CVE-2023-3341 |
| Alpine Linux 3.15 | bind | Fixed | 9.16.44-r0 | ALPINE-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.
- ISC BIND 9: affected: 9.2.0 to 9.16.43, 9.18.0 to 9.18.18, 9.19.0 to 9.19.16, 9.9.3-S1 to 9.16.43-S1, 9.18.0-S1 to 9.18.18-S1
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:
- https://kb.isc.org/docs/cve-2023-3341 (vendor-advisory)
References
- https://kb.isc.org/docs/cve-2023-3341
- http://www.openwall.com/lists/oss-security/2023/09/20/2
- https://www.debian.org/security/2023/dsa-5504
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IPJLLTJCSDJJII7IIZPLTBQNWP7MZH7F/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U35OARLQCPMVCBBPHWBXY5M6XJLD2TZ5/
- https://security.netapp.com/advisory/ntap-20231013-0003/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VSK5V4W4OHPM3JTJGWAQD6CZW7SFD75B/
- https://lists.debian.org/debian-lts-announce/2024/01/msg00021.html
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.