CVE-2021-25217A buffer overrun in lease file parsing code can be used to exploit a common…
In ISC DHCP 4.1-ESV-R1 -> 4.1-ESV-R16, ISC DHCP 4.4.0 -> 4.4.2 (Other branches of ISC DHCP (i.e., releases in the 4.0.x series or lower and releases in the 4.3.x series) are beyond their End-of-Life (EOL) and no longer supported by ISC. From inspection it is clear that the defect is also present in releases from those series, but they have not been officially tested for the vulnerability), The outcome of encountering the defect while reading a lease that will trigger it varies, according to: the component being affected (i.e., dhclient or dhcpd) whether the package was built as a 32-bit or 64-bit binary whether the compiler flag -fstack-protection-strong was used when compiling In dhclient, ISC has not successfully reproduced the error on a 64-bit system. However, on a 32-bit system it is possible to cause dhclient to crash when reading an improper lease, which could cause network connectivity problems for an affected system due to the absence of a running DHCP client process. In dhcpd, when run in DHCPv4 or DHCPv6 mode: if the dhcpd server binary was built for a 32-bit architecture AND the -fstack-protection-strong flag was specified to the compiler, dhcpd may exit while parsing a lease file containing an objectionable lease, resulting in lack of service to clients. Additionally, the offending lease and the lease immediately following it in the lease database may be improperly deleted. if the dhcpd server binary was built for a 64-bit architecture OR if the -fstack-protection-strong compiler flag was NOT specified, the crash will not occur, but it is possible for the offending lease and the lease which immediately followed it to be improperly deleted.
What to do
Fixed builds are available from 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 20.04 | isc-dhcp | Fixed | 4.4.1-2.1ubuntu5.20.04.2 | UBUNTU-CVE-2021-25217 |
| Ubuntu 18.04 | isc-dhcp | Fixed | 4.3.5-3ubuntu7.3 | UBUNTU-CVE-2021-25217 |
| Ubuntu 16.04 | isc-dhcp | Fix pending | 4.3.3-5ubuntu12.10+esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-25217 |
| Ubuntu 14.04 | isc-dhcp | Fix pending | 4.2.4-7ubuntu12.13+esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-25217 |
| Debian 13 | isc-dhcp | Fixed | 4.4.1-2.3 | DEBIAN-CVE-2021-25217 |
| Debian 12 | isc-dhcp | Fixed | 4.4.1-2.3 | DEBIAN-CVE-2021-25217 |
| Red Hat Enterprise Linux 9 | dhcp | Not affected | ||
| Red Hat Enterprise Linux 9 | dhcp-client | Not affected | ||
| Red Hat Enterprise Linux 9 | dhcp-common | Not affected | ||
| Red Hat Enterprise Linux 9 | dhcp-relay | Not affected | ||
| Red Hat Enterprise Linux 9 | dhcp-server | Not affected | ||
| Red Hat Enterprise Linux 8 | dhcp | Fixed | 12:4.3.6-44.el8_4.1 | RHSA-2021:2359 |
| Red Hat Enterprise Linux 8 | dhcp-client | Fixed | 12:4.3.6-44.el8_4.1 | RHSA-2021:2359 |
| Red Hat Enterprise Linux 8 | dhcp-common | Fixed | 12:4.3.6-44.el8_4.1 | RHSA-2021:2359 |
| Red Hat Enterprise Linux 8 | dhcp-libs | Fixed | 12:4.3.6-44.el8_4.1 | RHSA-2021:2359 |
| Red Hat Enterprise Linux 8 | dhcp-relay | Fixed | 12:4.3.6-44.el8_4.1 | RHSA-2021:2359 |
| Red Hat Enterprise Linux 8 | dhcp-server | Fixed | 12:4.3.6-44.el8_4.1 | RHSA-2021:2359 |
| Red Hat Enterprise Linux 7 | dhclient | Fixed | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux 7 | dhcp | Fixed | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux 7 | dhcp-common | Fixed | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux 7 | dhcp-devel | Fixed | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux 7 | dhcp-libs | Fixed | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux 7 | redhat-virtualization-host | Fixed | 0:4.3.16-20210615.0.el7_9 | RHSA-2021:2519 |
| Red Hat Enterprise Linux 7 | redhat-virtualization-host-image-update | Fixed | 0:4.3.16-20210615.0.el7_9 | RHSA-2021:2519 |
| Rocky Linux 8 | dhcp | Fixed | 2:4.3.6-44.el8_4.1 | RLSA-2021:2359 |
| Alpine Linux 3.20 | dhcp | Fixed | 4.4.2_p1-r0 | ALPINE-CVE-2021-25217 |
| Alpine Linux 3.19 | dhcp | Fixed | 4.4.2_p1-r0 | ALPINE-CVE-2021-25217 |
| Alpine Linux 3.18 | dhcp | Fixed | 4.4.2_p1-r0 | ALPINE-CVE-2021-25217 |
| Alpine Linux 3.17 | dhcp | Fixed | 4.4.2_p1-r0 | ALPINE-CVE-2021-25217 |
| Alpine Linux 3.16 | dhcp | Fixed | 4.4.2_p1-r0 | ALPINE-CVE-2021-25217 |
| Alpine Linux 3.15 | dhcp | Fixed | 4.4.2_p1-r0 | ALPINE-CVE-2021-25217 |
| Alpine Linux 3.14 | dhcp | Fixed | 4.4.2_p1-r0 | ALPINE-CVE-2021-25217 |
| Alpine Linux 3.13 | dhcp | Fixed | 4.4.2_p1-r0 | ALPINE-CVE-2021-25217 |
| Alpine Linux 3.12 | dhcp | Fixed | 4.4.2_p1-r0 | ALPINE-CVE-2021-25217 |
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 DHCP: affected: 4.1 ESV to before 4.1-ESV-R16-P1, 4.4 to before 4.4.2-P1; fixed in
4.1-ESV-R16-P1,4.4.2-P1
Solution: Upgrade to the patched release most closely related to your current version of ISC DHCP: ISC DHCP 4.1-ESV-R16-P1 ISC DHCP 4.4.2-P1
Workaround: None known.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202305-22 (vendor-advisory)
References
- https://kb.isc.org/docs/cve-2021-25217
- http://www.openwall.com/lists/oss-security/2021/05/26/6
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z2LB42JWIV4M4WDNXX5VGIP26FEYWKIF/
- https://lists.debian.org/debian-lts-announce/2021/06/msg00002.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5QI4DYC7J4BGHEW3NH4XHMWTHYC36UK4/
- https://cert-portal.siemens.com/productcert/pdf/ssa-406691.pdf
- https://security.netapp.com/advisory/ntap-20220325-0011/
- https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
- https://security.gentoo.org/glsa/202305-22
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.