CVE-2021-25217
published high CVSS 3.1 · 7.4A buffer overrun in lease file parsing code can be used to exploit a common vulnerability shared by dhcpd and dhclient
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ISC | — | ISC DHCP4.1 ESV to < 4.1-ESV-R16-P1 · 4.4 to < 4.4.2-P1 | Affected | Not stated | isc |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1654 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | v3.12 | dhcp | Fixed | 4.4.2_p1-r0 | Package fix record |
| Debian | stretch | isc-dhcp | Advisory build | 4.3.5-3+deb9u2 | DLA-2674-1 |
| Oracle Linux | 6 | dhclienti686 | Advisory build | 12:4.1.1-63.P1.0.2.el6_10 | ELSA-2021-9314 |
| Red Hat Enterprise Linux | RHEL-6 | dhclienti686 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Alpine Linux | v3.13 | dhcp | Fixed | 4.4.2_p1-r0 | Package fix record |
| Alpine Linux | v3.14 | dhcp | Fixed | 4.4.2_p1-r0 | Package fix record |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.15 | dhcp | Fixed | 4.4.2_p1-r0 | Package fix record |
| Alpine Linux | v3.16 | dhcp | Fixed | 4.4.2_p1-r0 | Package fix record |
| Alpine Linux | v3.17 | dhcp | Fixed | 4.4.2_p1-r0 | Package fix record |
| Alpine Linux | v3.18 | dhcp | Fixed | 4.4.2_p1-r0 | Package fix record |
| Alpine Linux | v3.19 | dhcp | Fixed | 4.4.2_p1-r0 | Package fix record |
| Alpine Linux | v3.20 | dhcp | Fixed | 4.4.2_p1-r0 | Package fix record |
| Oracle Linux | 6 | dhclientx86_64 | Advisory build | 12:4.1.1-63.P1.0.2.el6_10 | ELSA-2021-9314 |
| Oracle Linux | 6 | dhcpi686 | Advisory build | 12:4.1.1-63.P1.0.2.el6_10 | ELSA-2021-9314 |
| Oracle Linux | 6 | dhcpx86_64 | Advisory build | 12:4.1.1-63.P1.0.2.el6_10 | ELSA-2021-9314 |
| Oracle Linux | 6 | dhcp-commoni686 | Advisory build | 12:4.1.1-63.P1.0.2.el6_10 | ELSA-2021-9314 |
| Oracle Linux | 6 | dhcp-commonx86_64 | Advisory build | 12:4.1.1-63.P1.0.2.el6_10 | ELSA-2021-9314 |
| Oracle Linux | 6 | dhcp-develi686 | Advisory build | 12:4.1.1-63.P1.0.2.el6_10 | ELSA-2021-9314 |
| Oracle Linux | 6 | dhcp-develx86_64 | Advisory build | 12:4.1.1-63.P1.0.2.el6_10 | ELSA-2021-9314 |
| Oracle Linux | 7 | dhclientaarch64 | Advisory build | 12:4.2.5-83.0.1.el7_9.1 | ELSA-2021-2357 |
| Oracle Linux | 7 | dhclientx86_64 | Advisory build | 12:4.2.5-83.0.1.el7_9.1 | ELSA-2021-2357 |
| Oracle Linux | 7 | dhcpaarch64 | Advisory build | 12:4.2.5-83.0.1.el7_9.1 | ELSA-2021-2357 |
| Oracle Linux | 7 | dhcpx86_64 | Advisory build | 12:4.2.5-83.0.1.el7_9.1 | ELSA-2021-2357 |
| Oracle Linux | 7 | dhcp-commonaarch64 | Advisory build | 12:4.2.5-83.0.1.el7_9.1 | ELSA-2021-2357 |
| Oracle Linux | 7 | dhcp-commonx86_64 | Advisory build | 12:4.2.5-83.0.1.el7_9.1 | ELSA-2021-2357 |
| Oracle Linux | 7 | dhcp-develaarch64 | Advisory build | 12:4.2.5-83.0.1.el7_9.1 | ELSA-2021-2357 |
| Oracle Linux | 7 | dhcp-develx86_64 | Advisory build | 12:4.2.5-83.0.1.el7_9.1 | ELSA-2021-2357 |
| Oracle Linux | 7 | dhcp-libsaarch64 | Advisory build | 12:4.2.5-83.0.1.el7_9.1 | ELSA-2021-2357 |
| Oracle Linux | 7 | dhcp-libsx86_64 | Advisory build | 12:4.2.5-83.0.1.el7_9.1 | ELSA-2021-2357 |
| Oracle Linux | 8 | dhcp-clientaarch64 | Advisory build | 12:4.3.6-44.el8_4.1 | ELSA-2021-2359 |
| Oracle Linux | 8 | dhcp-clientx86_64 | Advisory build | 12:4.3.6-44.el8_4.1 | ELSA-2021-2359 |
| Oracle Linux | 8 | dhcp-commonaarch64 | Advisory build | 12:4.3.6-44.el8_4.1 | ELSA-2021-2359 |
| Oracle Linux | 8 | dhcp-commonx86_64 | Advisory build | 12:4.3.6-44.el8_4.1 | ELSA-2021-2359 |
| Oracle Linux | 8 | dhcp-libsaarch64 | Advisory build | 12:4.3.6-44.el8_4.1 | ELSA-2021-2359 |
| Oracle Linux | 8 | dhcp-libsx86_64 | Advisory build | 12:4.3.6-44.el8_4.1 | ELSA-2021-2359 |
| Oracle Linux | 8 | dhcp-relayaarch64 | Advisory build | 12:4.3.6-44.el8_4.1 | ELSA-2021-2359 |
| Oracle Linux | 8 | dhcp-relayx86_64 | Advisory build | 12:4.3.6-44.el8_4.1 | ELSA-2021-2359 |
| Oracle Linux | 8 | dhcp-serveraarch64 | Advisory build | 12:4.3.6-44.el8_4.1 | ELSA-2021-2359 |
| Oracle Linux | 8 | dhcp-serverx86_64 | Advisory build | 12:4.3.6-44.el8_4.1 | ELSA-2021-2359 |
| Red Hat Enterprise Linux | RHEL-6 | dhclients390x | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhclientx86_64 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcpi686 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcps390x | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcpsrc | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcpx86_64 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-commoni686 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-commons390x | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-commonx86_64 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-debuginfoi686 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-debuginfos390 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-debuginfos390x | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-debuginfox86_64 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-develi686 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-devels390 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-devels390x | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-6 | dhcp-develx86_64 | Advisory build | 12:4.1.1-64.P1.el6_10 | RHSA-2021:2419 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientppc64 | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientppc64 | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientppc64le | Advisory build | 12:4.2.5-58.el7_4.5 | RHSA-2021:2414 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientppc64le | Advisory build | 12:4.2.5-69.el7_6.1 | RHSA-2021:2469 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientppc64le | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientppc64le | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhclients390x | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhclients390x | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientx86_64 | Advisory build | 12:4.2.5-42.el7_2.2 | RHSA-2021:2418 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientx86_64 | Advisory build | 12:4.2.5-47.el7_3.2 | RHSA-2021:2415 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientx86_64 | Advisory build | 12:4.2.5-58.el7_4.5 | RHSA-2021:2414 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientx86_64 | Advisory build | 12:4.2.5-69.el7_6.1 | RHSA-2021:2469 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientx86_64 | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhclientx86_64 | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpppc64 | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpppc64 | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpppc64le | Advisory build | 12:4.2.5-58.el7_4.5 | RHSA-2021:2414 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpppc64le | Advisory build | 12:4.2.5-69.el7_6.1 | RHSA-2021:2469 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpppc64le | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpppc64le | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhcps390x | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhcps390x | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpsrc | Advisory build | 12:4.2.5-42.el7_2.2 | RHSA-2021:2418 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpsrc | Advisory build | 12:4.2.5-47.el7_3.2 | RHSA-2021:2415 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpsrc | Advisory build | 12:4.2.5-58.el7_4.5 | RHSA-2021:2414 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpsrc | Advisory build | 12:4.2.5-69.el7_6.1 | RHSA-2021:2469 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpsrc | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpsrc | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpx86_64 | Advisory build | 12:4.2.5-42.el7_2.2 | RHSA-2021:2418 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpx86_64 | Advisory build | 12:4.2.5-47.el7_3.2 | RHSA-2021:2415 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpx86_64 | Advisory build | 12:4.2.5-58.el7_4.5 | RHSA-2021:2414 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpx86_64 | Advisory build | 12:4.2.5-69.el7_6.1 | RHSA-2021:2469 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpx86_64 | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhcpx86_64 | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhcp-commonppc64 | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhcp-commonppc64 | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhcp-commonppc64le | Advisory build | 12:4.2.5-58.el7_4.5 | RHSA-2021:2414 |
| Red Hat Enterprise Linux | RHEL-7 | dhcp-commonppc64le | Advisory build | 12:4.2.5-69.el7_6.1 | RHSA-2021:2469 |
| Red Hat Enterprise Linux | RHEL-7 | dhcp-commonppc64le | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhcp-commonppc64le | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhcp-commons390x | Advisory build | 12:4.2.5-77.el7_7.1 | RHSA-2021:2405 |
| Red Hat Enterprise Linux | RHEL-7 | dhcp-commons390x | Advisory build | 12:4.2.5-83.el7_9.1 | RHSA-2021:2357 |
| Red Hat Enterprise Linux | RHEL-7 | dhcp-commonx86_64 | Advisory build | 12:4.2.5-42.el7_2.2 | RHSA-2021:2418 |
| Red Hat Enterprise Linux | RHEL-7 | dhcp-commonx86_64 | Advisory build | 12:4.2.5-47.el7_3.2 | RHSA-2021:2415 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- isc · cna
- Vector string
- CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ISC | ISC DHCP | 4.1 ESV to < 4.1-ESV-R16-P1 (affected · custom)4.4 to < 4.4.2-P1 (affected · custom) | isc · cna |
Weaknesses
1- Program code used by the ISC DHCP package to read and parse stored leases has a defect that can be exploited by an attacker to cause one of several undesirable outcomes, depending on the component attacked and the way in which it was compiled. Because of a discrepancy between the code which handles encapsulated option information in leases transmitted "on the wire" and the code which reads and parses lease information after it has been written to disk storage, it is potentially possible for an attacker to deliberately cause a situation where: dhcpd, while running in DHCPv4 or DHCPv6 mode, or dhclient, the ISC DHCP client implementation will attempt to read a stored lease that contains option information which will trigger a bug in the option parsing code. Affects 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. Affects both dhcpd (server) and dhcpcd (client).
References
9- [oss-security] 20210526 ISC has disclosed a vulnerability in ISC DHCP (CVE-2021-25217) http://www.openwall.com/lists/oss-security/2021/05/26/6
- https://cert-portal.siemens.com/productcert/pdf/ssa-406691.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
- https://kb.isc.org/docs/cve-2021-25217
- [debian-lts-announce] 20210603 [SECURITY] [DLA 2674-1] isc-dhcp security update https://lists.debian.org/debian-lts-announce/2021/06/msg00002.html
- FEDORA-2021-8ca8263bde https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5QI4DYC7J4BGHEW3NH4XHMWTHYC36UK4/
- FEDORA-2021-08cdb4dc34 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z2LB42JWIV4M4WDNXX5VGIP26FEYWKIF/
- GLSA-202305-22 https://security.gentoo.org/glsa/202305-22
- https://security.netapp.com/advisory/ntap-20220325-0011/
Provider assertions
2isc · cna
A buffer overrun in lease file parsing code can be used to exploit a common vulnerability shared by dhcpd and dhclient
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- fab3d98ea000a442d71e97613148a712e47969403ecc0026854a7ef6d1a03ccc
- Ingested
- 23 Sep 2026, 07:53:11 UTC
- Source record
- Official CVE record