CVEfocus › CVE database › CVE-2022-2928

CVE-2022-2928An option refcount overflow exists in dhcpd

CVSS 6.5 MediumEPSS 0.7% (higher than 54% of CVEs)Published 2022-10-07Updated 2024-09-17Assigner: isc

In ISC DHCP 4.4.0 -> 4.4.3, ISC DHCP 4.1-ESV-R1 -> 4.1-ESV-R16-P1, when the function option_code_hash_lookup() is called from add_option(), it increases the option's refcount field. However, there is not a corresponding call to option_dereference() to decrement the refcount field. The function add_option() is only used in server responses to lease query packets. Each lease query response calls this function for several options, so eventually, the reference counters could overflow and cause the server to abort.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, 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

33Fixed
2Fix pending
9Will not fix

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 22.04isc-dhcpFixed4.4.1-2.3ubuntu2.3UBUNTU-CVE-2022-2928
Ubuntu 20.04isc-dhcpFixed4.4.1-2.1ubuntu5.20.04.4UBUNTU-CVE-2022-2928
Ubuntu 18.04isc-dhcpFixed4.3.5-3ubuntu7.4UBUNTU-CVE-2022-2928
Ubuntu 16.04isc-dhcpFix pending4.3.3-5ubuntu12.10+esm2 (Ubuntu Pro)UBUNTU-CVE-2022-2928
Ubuntu 14.04isc-dhcpFix pending4.2.4-7ubuntu12.13+esm2 (Ubuntu Pro)UBUNTU-CVE-2022-2928
Debian 13isc-dhcpFixed4.4.3-2.1DEBIAN-CVE-2022-2928
Debian 12isc-dhcpFixed4.4.3-2.1DEBIAN-CVE-2022-2928
Red Hat Enterprise Linux 9dhcpFixed12:4.4.2-18.b1.el9RHSA-2023:2502
Red Hat Enterprise Linux 9dhcp-clientFixed12:4.4.2-18.b1.el9RHSA-2023:2502
Red Hat Enterprise Linux 9dhcp-commonFixed12:4.4.2-18.b1.el9RHSA-2023:2502
Red Hat Enterprise Linux 9dhcp-relayFixed12:4.4.2-18.b1.el9RHSA-2023:2502
Red Hat Enterprise Linux 9dhcp-serverFixed12:4.4.2-18.b1.el9RHSA-2023:2502
Red Hat Enterprise Linux 8dhcpFixed12:4.3.6-49.el8RHSA-2023:3000
Red Hat Enterprise Linux 8dhcp-clientFixed12:4.3.6-49.el8RHSA-2023:3000
Red Hat Enterprise Linux 8dhcp-commonFixed12:4.3.6-49.el8RHSA-2023:3000
Red Hat Enterprise Linux 8dhcp-libsFixed12:4.3.6-49.el8RHSA-2023:3000
Red Hat Enterprise Linux 8dhcp-relayFixed12:4.3.6-49.el8RHSA-2023:3000
Red Hat Enterprise Linux 8dhcp-serverFixed12:4.3.6-49.el8RHSA-2023:3000
Red Hat Enterprise Linux 7dhclientWill not fix
Out of support scope
Red Hat Enterprise Linux 7dhcpWill not fix
Out of support scope
Red Hat Enterprise Linux 7dhcp-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 7dhcp-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7dhcp-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6dhclientWill not fix
Out of support scope
Red Hat Enterprise Linux 6dhcpWill not fix
Out of support scope
Red Hat Enterprise Linux 6dhcp-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6dhcp-develWill not fix
Out of support scope
AlmaLinux 9dhcp-clientFixed12:4.4.2-18.b1.el9ALSA-2023:2502
AlmaLinux 9dhcp-commonFixed12:4.4.2-18.b1.el9ALSA-2023:2502
AlmaLinux 9dhcp-relayFixed12:4.4.2-18.b1.el9ALSA-2023:2502
AlmaLinux 9dhcp-serverFixed12:4.4.2-18.b1.el9ALSA-2023:2502
AlmaLinux 8dhcp-clientFixed12:4.3.6-49.el8ALSA-2023:3000
AlmaLinux 8dhcp-commonFixed12:4.3.6-49.el8ALSA-2023:3000
AlmaLinux 8dhcp-libsFixed12:4.3.6-49.el8ALSA-2023:3000
AlmaLinux 8dhcp-relayFixed12:4.3.6-49.el8ALSA-2023:3000
AlmaLinux 8dhcp-serverFixed12:4.3.6-49.el8ALSA-2023:3000
Alpine Linux 3.20dhcpFixed4.4.3_p1-r0ALPINE-CVE-2022-2928
Alpine Linux 3.19dhcpFixed4.4.3_p1-r0ALPINE-CVE-2022-2928
Alpine Linux 3.18dhcpFixed4.4.3_p1-r0ALPINE-CVE-2022-2928
Alpine Linux 3.17dhcpFixed4.4.3_p1-r0ALPINE-CVE-2022-2928
Alpine Linux 3.16dhcpFixed4.4.3_p1-r0ALPINE-CVE-2022-2928
Alpine Linux 3.15dhcpFixed4.4.3_p1-r0ALPINE-CVE-2022-2928
Alpine Linux 3.14dhcpFixed4.4.3_p1-r0ALPINE-CVE-2022-2928
Alpine Linux 3.13dhcpFixed4.4.3_p1-r0ALPINE-CVE-2022-2928

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. These can all be downloaded from https://www.isc.org/downloads. 4.4.3-P1 4.1-ESV-R16-P2

Workaround: Disable lease query on the server for DHCPv4 or restart the server periodically.

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.