# CVE-2021-25217: A buffer overrun in lease file parsing code can be used to exploit a common vulnerability shared by dhcpd and dhclient

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-05-26 · Modified: 2024-09-16
- Aliases: ALPINE-CVE-2021-25217, MGASA-2021-0307, SUSE-SU-2021:14740-1, SUSE-SU-2021:1822-1, SUSE-SU-2021:1841-1, RHSA-2021:2357, RHSA-2021:2359, RHSA-2021:2405, RHSA-2021:2414, RHSA-2021:2415, RHSA-2021:2416, RHSA-2021:2418, RHSA-2021:2419, RHSA-2021:2420, RHSA-2021:2469, UBUNTU-CVE-2021-25217, USN-4969-1, USN-4969-2, DEBIAN-CVE-2021-25217, DLA-2674-1, openSUSE-SU-2021:0834-1, openSUSE-SU-2021:1841-1
- Record: https://cvemate.com/vulnerability/CVE-2021-25217 · JSON: https://cvemate.com/vulnerability/CVE-2021-25217/json

## Description

```text
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.
```

## Signals

- CVSS: 7.4 high (v3.1, CVE.org) CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
- EPSS: 6.118%, percentile 93.624%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected (first 20 of 71)

- alpine dhcp (Alpine Linux): ≥ 4.4.0, \< 4.4.2\_p1-r0
- debian isc-dhcp (Debian): \< 4.4.1-2.3 \| \< 4.3.5-3+deb9u2
- ubuntu isc-dhcp (Ubuntu): \< 4.2.4-7ubuntu12.13+esm1 \| \< 4.3.3-5ubuntu12.10+esm1 \| \< 4.3.5-3ubuntu7.3 \| \< 4.4.1-2.1ubuntu5.20.04.2
- debian debian\_linux: 9.0
- fedoraproject fedora: 33 \| 34
- isc dhcp: ≥ 4.4.0, ≤ 4.4.2 \| 4.1-esv:r1 \| 4.1-esv:r10 \| 4.1-esv:r10\_b1 \| 4.1-esv:r10\_rc1 \| 4.1-esv:r10b1 \| 4.1-esv:r10rc1 \| 4.1-esv:r11 \| 4.1-esv:r11\_b1 \| 4.1-esv:r11\_rc1 \| 4.1-esv:r11\_rc2 \| 4.1-esv:r11b1 \| 4.1-esv:r11rc1 \| 4.1-esv:r11rc2 \| 4.1-esv:r12 \| 4.1-esv:r12-p1 \| 4.1-esv:r12\_b1 \| 4.1-esv:r12\_p1 \| 4.1-esv:r12b1 \| 4.1-esv:r13 \| 4.1-esv:r13\_b1 \| 4.1-esv:r13b1 \| 4.1-esv:r14 \| 4.1-esv:r14\_b1 \| 4.1-esv:r14b1 \| 4.1-esv:r15 \| 4.1-esv:r15-p1 \| 4.1-esv:r15\_b1 \| 4.1-esv:r16
- isc isc dhcp: ≥ 4.1 ESV, \< 4.1-ESV-R16-P1 \| ≥ 4.4, \< 4.4.2-P1
- mageia dhcp (Mageia): \< 4.4.1-3.1.mga7
- mageia dhcp (Mageia): \< 4.4.2-10.1.mga8
- netapp ontap\_select\_deploy\_administration\_utility: na
- netapp solidfire\_\\&\_hci\_management\_node: na
- opensuse dhcp&distro=openSUSE Leap 15.2 (openSUSE): \< 4.3.6.P1-lp152.8.6.1
- opensuse dhcp&distro=openSUSE Leap 15.3 (openSUSE): \< 4.3.6.P1-6.11.1
- redhat dhclient (Red Hat): \< 12:4.2.5-83.el7\_9.1 \| \< 12:4.2.5-77.el7\_7.1 \| \< 12:4.2.5-58.el7\_4.5 \| \< 12:4.2.5-47.el7\_3.2 \| \< 12:4.2.5-42.el7\_2.2 \| \< 12:4.1.1-64.P1.el6\_10 \| \< 12:4.2.5-69.el7\_6.1
- redhat dhcp (Red Hat): \< 12:4.2.5-83.el7\_9.1 \| \< 12:4.3.6-44.el8\_4.1 \| \< 12:4.2.5-77.el7\_7.1 \| \< 12:4.2.5-58.el7\_4.5 \| \< 12:4.2.5-47.el7\_3.2 \| \< 12:4.3.6-34.el8\_1.2 \| \< 12:4.2.5-42.el7\_2.2 \| \< 12:4.1.1-64.P1.el6\_10 \| \< 12:4.3.6-40.el8\_2.2 \| \< 12:4.2.5-69.el7\_6.1
- redhat dhcp-client (Red Hat): \< 12:4.3.6-44.el8\_4.1 \| \< 12:4.3.6-34.el8\_1.2 \| \< 12:4.3.6-40.el8\_2.2
- redhat dhcp-client-debuginfo (Red Hat): \< 12:4.3.6-44.el8\_4.1 \| \< 12:4.3.6-34.el8\_1.2 \| \< 12:4.3.6-40.el8\_2.2
- redhat dhcp-common (Red Hat): \< 12:4.2.5-83.el7\_9.1 \| \< 12:4.3.6-44.el8\_4.1 \| \< 12:4.2.5-77.el7\_7.1 \| \< 12:4.2.5-58.el7\_4.5 \| \< 12:4.2.5-47.el7\_3.2 \| \< 12:4.3.6-34.el8\_1.2 \| \< 12:4.2.5-42.el7\_2.2 \| \< 12:4.1.1-64.P1.el6\_10 \| \< 12:4.3.6-40.el8\_2.2 \| \< 12:4.2.5-69.el7\_6.1
- redhat dhcp-debuginfo (Red Hat): \< 12:4.2.5-83.el7\_9.1 \| \< 12:4.3.6-44.el8\_4.1 \| \< 12:4.2.5-77.el7\_7.1 \| \< 12:4.2.5-58.el7\_4.5 \| \< 12:4.2.5-47.el7\_3.2 \| \< 12:4.3.6-34.el8\_1.2 \| \< 12:4.2.5-42.el7\_2.2 \| \< 12:4.1.1-64.P1.el6\_10 \| \< 12:4.3.6-40.el8\_2.2 \| \< 12:4.2.5-69.el7\_6.1
- redhat dhcp-debugsource (Red Hat): \< 12:4.3.6-44.el8\_4.1 \| \< 12:4.3.6-34.el8\_1.2 \| \< 12:4.3.6-40.el8\_2.2

## References (first 20 of 49)

- <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>
- <https://security.alpinelinux.org/vuln/CVE-2021-25217>
- <https://advisories.mageia.org/MGASA-2021-0307.html>
- <https://bugs.mageia.org/show_bug.cgi?id=28976>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/Z2LB42JWIV4M4WDNXX5VGIP26FEYWKIF/>
- <https://www.suse.com/support/update/announcement/2021/suse-su-202114740-1/>
- <https://bugzilla.suse.com/1186382>
- <https://www.suse.com/security/cve/CVE-2021-25217>
- <https://www.suse.com/support/update/announcement/2021/suse-su-20211822-1/>
- <https://www.suse.com/support/update/announcement/2021/suse-su-20211841-1/>
- <https://access.redhat.com/errata/RHSA-2021:2357>
- <https://access.redhat.com/security/updates/classification/#important>

---

Data as of 2026-12-05T03:23:19.996Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
