CVE-2022-2928: An option refcount overflow exists in dhcpd
A vulnerability was found in DHCP, where, a DHCP server configured with "allow leasequery;", a remote machine with access to the server can send lease queries for the same lease multiple times, leading to the "addoption()" function being repeatedly called. This could cause an option's "refcount" field to overflow and the server to abort. Internally, reference counters are integers and thus overflow at 2^31 references, so even at 1000 lease query responses per second, it would take more than three weeks to crash the server.
Versions affected:
- 4.1-ESV-R1 -> 4.1-ESV-R16-P1 - 4.4.0 -> 4.4.3
Other branches of ISC DHCP (i.e., releases in the 4.0.x series or lower and releases in the 4.3.x series), it is probable, all versions after the introduction of lease query in ISC DHCP 3.0 are affected.
Other sources
In ISC DHCP 4.4.0 -> 4.4.3, ISC DHCP 4.1-ESV-R1 -> 4.1-ESV-R16-P1, when the function optioncodehashlookup() is called from addoption(), it increases the option's refcount field. However, there is not a corresponding call to optiondereference() to decrement the refcount field. The function addoption() 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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/isc-dhcpto a version that resolves this vulnerability.Fixed in 4.4.3-P1-2Fixed in 4.4.3-P1-8 - Upgrade
Upgrade
alpine/dhcpto a version that resolves this vulnerability.Fixed in 4.4.3_p1-r0 - Upgrade
Upgrade
debian/isc-dhcpto a version that resolves this vulnerability.Fixed in 4.4.3-2.1 - Upgrade
Upgrade
redhat/dhcpto a version that resolves this vulnerability.Fixed in 4.4.3 - Upgrade
Upgrade
redhat/dhcpto a version that resolves this vulnerability.Fixed in 4.1 - Upgrade
Upgrade
ISC DHCPto a version that resolves this vulnerability.Fixed in 4.1-ESV-R16-P1 - Upgrade
Upgrade
ISC DHCPto a version that resolves this vulnerability.Fixed in 4.4.3
Event History
Frequently Asked Questions
What is the severity of CVE-2022-2928?
The severity of CVE-2022-2928 is medium.
What is the affected software of CVE-2022-2928?
The affected software of CVE-2022-2928 is ISC DHCP versions 4.4.0 to 4.4.3 and 4.1-ESV-R1 to 4.1-ESV-R16-P1.
How does CVE-2022-2928 impact ISC DHCP?
CVE-2022-2928 increases the option's refcount field, but does not decrement it, leading to a vulnerability.
How can I fix CVE-2022-2928?
To fix CVE-2022-2928, upgrade to a version of ISC DHCP that is not affected.
Where can I find more information about CVE-2022-2928?
More information about CVE-2022-2928 can be found in the references provided.