Skip to content
OpenAdvisories
High · 7.4 CVE-2021-25217 EUVD-2021-12128GHSA-pf98-cx5w-r49r

A buffer overrun in lease file parsing code can be used to exploit a common vulnerability shared by dhcpd and dhclient

Published May 26, 2021 · Updated Sep 16, 2024 · Assigned by isc

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.

Affected products

VendorProductAffectedFixed
ISC ISC DHCP 4.1 ESV – < 4.1-ESV-R16-P1, 4.4 – < 4.4.2-P1 4.1-ESV-R16-P1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 isc-dhcp 4.4.1-2.3 —
Debian 12 isc-dhcp 4.4.1-2.3 —
Debian 9 isc-dhcp 4.3.5-3+deb9u2 DLA-2674-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS isc-dhcp 4.4.1-2.1ubuntu5.20.04.2 USN-4969-1
Ubuntu 18.04 LTS isc-dhcp 4.3.5-3ubuntu7.3 USN-4969-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS isc-dhcp 4.3.3-5ubuntu12.10+esm1 USN-4969-2
Ubuntu Pro 14.04 LTS isc-dhcp 4.2.4-7ubuntu12.13+esm1 USN-4969-2
ReleasePackageFixed inAdvisory
RHEL 8 dhcp +5 12:4.3.6-44.el8_4.1 RHSA-2021:2359
RHEL 7 dhcp +4 12:4.2.5-83.el7_9.1 RHSA-2021:2357
RHEL 7 redhat-virtualization-host +1 4.3.16-20210615.0.el7_9 RHSA-2021:2519
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.2 EUS dhcp +5 12:4.3.6-40.el8_2.2 RHSA-2021:2420
RHEL 8.1 EUS dhcp +5 12:4.3.6-34.el8_1.2 RHSA-2021:2416
RHEL 7.7 EUS dhcp +4 12:4.2.5-77.el7_7.1 RHSA-2021:2405
RHEL 7.6 TUS dhcp +4 12:4.2.5-69.el7_6.1 RHSA-2021:2469
RHEL 7.6 E4S dhcp +4 12:4.2.5-69.el7_6.1 RHSA-2021:2469
RHEL 7.6 AUS dhcp +4 12:4.2.5-69.el7_6.1 RHSA-2021:2469
RHEL 7.4 TUS dhcp +4 12:4.2.5-58.el7_4.5 RHSA-2021:2414
RHEL 7.4 E4S dhcp +4 12:4.2.5-58.el7_4.5 RHSA-2021:2414
RHEL 7.4 AUS dhcp +4 12:4.2.5-58.el7_4.5 RHSA-2021:2414
RHEL 7.3 AUS dhcp +4 12:4.2.5-47.el7_3.2 RHSA-2021:2415
RHEL 7.2 AUS dhcp +4 12:4.2.5-42.el7_2.2 RHSA-2021:2418
RHEL 6 ELS dhcp +3 12:4.1.1-64.P1.el6_10 RHSA-2021:2419
Red Hat OpenShift 4 cri-o 1.20.3-6.rhaos4.7.git0d0f863.el7 RHSA-2021:2555
Red Hat OpenShift 4 dhcp +3 12:4.3.6-41.el8_3.1 RHSA-2021:2555
Red Hat OpenShift 4 openshift-clients +1 4.7.0-202106252127.p0.git.8b4b094.el7 RHSA-2021:2555
Red Hat OpenShift 4 openshift-kuryr +4 4.7.0-202106232224.p0.git.c7654fb.el8 RHSA-2021:2555
Red Hat OpenShift 4 polkit +1 0.115-11.el8_3.2 RHSA-2021:2555

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 dhcp 2:4.3.6-44.el8_4.1 RLSA-2021:2359
ReleasePackageFixed inAdvisory
SLES 15 SP3 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SLES 15 SP2 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SLES 15 SP1 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SLES 15 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SLES 12 SP5 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
Show 21 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SLES 12 SP3 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SLES 12 SP2 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SLES 11 SP4 dhcp 4.2.4.P2-0.28.12.1 SUSE-SU-2021:14740-1
SLES for SAP 15 SP1 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SLES for SAP 15 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SLES for SAP 12 SP5 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SLES for SAP 12 SP4 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SLES for SAP 12 SP3 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SLE HPC 15 SP1 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SLE HPC 15 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SUSE OpenStack Cloud Crowbar 9 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SUSE OpenStack Cloud Crowbar 8 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SUSE OpenStack Cloud 9 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SUSE OpenStack Cloud 8 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SUSE Manager Server 4.0 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SUSE Manager Retail Branch Server 4.0 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SUSE Manager Proxy 4.0 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
SUSE Linux Enterprise Point of Sale 11 SP3 dhcp 4.2.4.P2-0.28.12.1 SUSE-SU-2021:14740-1
SUSE HPE Helion OpenStack 8 dhcp 4.3.3-10.22.1 SUSE-SU-2021:1822-1
SUSE Enterprise Storage 6 dhcp 4.3.6.P1-6.11.1 SUSE-SU-2021:1841-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed dhcp 4.4.2.P1-2.4 openSUSE-SU-2024:10715-1
openSUSE Leap 15.3 dhcp 4.3.6.P1-6.11.1 openSUSE-SU-2021:1841-1
openSUSE Leap 15.2 dhcp 4.3.6.P1-lp152.8.6.1 openSUSE-SU-2021:0834-1
ReleasePackageFixed inAdvisory
Alpine v3.20 dhcp 4.4.2_p1-r0 —
Alpine v3.19 dhcp 4.4.2_p1-r0 —
Alpine v3.18 dhcp 4.4.2_p1-r0 —
Alpine v3.17 dhcp 4.4.2_p1-r0 —
Alpine v3.16 dhcp 4.4.2_p1-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.15 dhcp 4.4.2_p1-r0 —
Alpine v3.14 dhcp 4.4.2_p1-r0 —
Alpine v3.13 dhcp 4.4.2_p1-r0 —
Alpine v3.12 dhcp 4.4.2_p1-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 dhcp +4 12:4.2.5-77.amzn2.1.3 ALAS2-2021-1654

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) dhcp 4.4.2-4 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 dhcp-libs +4 12:4.3.6-44.el8_4.1 ELSA-2021-2359
Oracle Linux 7 dhcp +4 12:4.2.5-83.0.1.el7_9.1 ELSA-2021-2357

Advisories 32

References