CVEfocus › CVE database › CVE-2021-25217

CVE-2021-25217A buffer overrun in lease file parsing code can be used to exploit a common…

CVSS 7.4 HighEPSS 6.1% (higher than 94% of CVEs)Published 2021-05-26Updated 2024-09-16Assigner: isc

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

27Fixed
2Fix 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 20.04isc-dhcpFixed4.4.1-2.1ubuntu5.20.04.2UBUNTU-CVE-2021-25217
Ubuntu 18.04isc-dhcpFixed4.3.5-3ubuntu7.3UBUNTU-CVE-2021-25217
Ubuntu 16.04isc-dhcpFix pending4.3.3-5ubuntu12.10+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-25217
Ubuntu 14.04isc-dhcpFix pending4.2.4-7ubuntu12.13+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-25217
Debian 13isc-dhcpFixed4.4.1-2.3DEBIAN-CVE-2021-25217
Debian 12isc-dhcpFixed4.4.1-2.3DEBIAN-CVE-2021-25217
Red Hat Enterprise Linux 9dhcpNot affected
Red Hat Enterprise Linux 9dhcp-clientNot affected
Red Hat Enterprise Linux 9dhcp-commonNot affected
Red Hat Enterprise Linux 9dhcp-relayNot affected
Red Hat Enterprise Linux 9dhcp-serverNot affected
Red Hat Enterprise Linux 8dhcpFixed12:4.3.6-44.el8_4.1RHSA-2021:2359
Red Hat Enterprise Linux 8dhcp-clientFixed12:4.3.6-44.el8_4.1RHSA-2021:2359
Red Hat Enterprise Linux 8dhcp-commonFixed12:4.3.6-44.el8_4.1RHSA-2021:2359
Red Hat Enterprise Linux 8dhcp-libsFixed12:4.3.6-44.el8_4.1RHSA-2021:2359
Red Hat Enterprise Linux 8dhcp-relayFixed12:4.3.6-44.el8_4.1RHSA-2021:2359
Red Hat Enterprise Linux 8dhcp-serverFixed12:4.3.6-44.el8_4.1RHSA-2021:2359
Red Hat Enterprise Linux 7dhclientFixed12:4.2.5-83.el7_9.1RHSA-2021:2357
Red Hat Enterprise Linux 7dhcpFixed12:4.2.5-83.el7_9.1RHSA-2021:2357
Red Hat Enterprise Linux 7dhcp-commonFixed12:4.2.5-83.el7_9.1RHSA-2021:2357
Red Hat Enterprise Linux 7dhcp-develFixed12:4.2.5-83.el7_9.1RHSA-2021:2357
Red Hat Enterprise Linux 7dhcp-libsFixed12:4.2.5-83.el7_9.1RHSA-2021:2357
Red Hat Enterprise Linux 7redhat-virtualization-hostFixed0:4.3.16-20210615.0.el7_9RHSA-2021:2519
Red Hat Enterprise Linux 7redhat-virtualization-host-image-updateFixed0:4.3.16-20210615.0.el7_9RHSA-2021:2519
Rocky Linux 8dhcpFixed2:4.3.6-44.el8_4.1RLSA-2021:2359
Alpine Linux 3.20dhcpFixed4.4.2_p1-r0ALPINE-CVE-2021-25217
Alpine Linux 3.19dhcpFixed4.4.2_p1-r0ALPINE-CVE-2021-25217
Alpine Linux 3.18dhcpFixed4.4.2_p1-r0ALPINE-CVE-2021-25217
Alpine Linux 3.17dhcpFixed4.4.2_p1-r0ALPINE-CVE-2021-25217
Alpine Linux 3.16dhcpFixed4.4.2_p1-r0ALPINE-CVE-2021-25217
Alpine Linux 3.15dhcpFixed4.4.2_p1-r0ALPINE-CVE-2021-25217
Alpine Linux 3.14dhcpFixed4.4.2_p1-r0ALPINE-CVE-2021-25217
Alpine Linux 3.13dhcpFixed4.4.2_p1-r0ALPINE-CVE-2021-25217
Alpine Linux 3.12dhcpFixed4.4.2_p1-r0ALPINE-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.

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:

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.