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

Published Oct 4, 2022
·
Updated

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

47 affected componentsFixes available
ISC DHCP>=4.4.0<=4.4.3
ISC DHCP=4.1-esv-r1
ISC DHCP=4.1-esv-r10
ISC DHCP=4.1-esv-r10_b1
ISC DHCP=4.1-esv-r10_rc1
ISC DHCP=4.1-esv-r10b1
ISC DHCP=4.1-esv-r10rc1
ISC DHCP=4.1-esv-r11
ISC DHCP=4.1-esv-r11_b1
ISC DHCP=4.1-esv-r11_rc1
ISC DHCP=4.1-esv-r11_rc2
ISC DHCP=4.1-esv-r11b1
ISC DHCP=4.1-esv-r11rc1
ISC DHCP=4.1-esv-r11rc2
ISC DHCP=4.1-esv-r12
ISC DHCP=4.1-esv-r12-p1
ISC DHCP=4.1-esv-r12_b1
ISC DHCP=4.1-esv-r12_p1
ISC DHCP=4.1-esv-r12b1
ISC DHCP=4.1-esv-r13
ISC DHCP=4.1-esv-r13_b1
ISC DHCP=4.1-esv-r13b1
ISC DHCP=4.1-esv-r14
ISC DHCP=4.1-esv-r14_b1
ISC DHCP=4.1-esv-r14b1
ISC DHCP=4.1-esv-r15
ISC DHCP=4.1-esv-r15-p1
ISC DHCP=4.1-esv-r15_b1
ISC DHCP=4.1-esv-r16
ISC DHCP=4.1-esv-r16-p1
Debian Debian Linux=10.0
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Fedoraproject Fedora=37
debian/isc-dhcp
4.4.3-P1-24.4.3-P1-8
alpine/dhcp>=4.4.0<4.4.3_p1-r0
4.4.3_p1-r0
alpine/dhcp>=4.4.0<4.4.3_p1-r0
4.4.3_p1-r0
alpine/dhcp>=4.4.0<4.4.3_p1-r0
4.4.3_p1-r0
alpine/dhcp>=4.4.0<4.4.3_p1-r0
4.4.3_p1-r0
alpine/dhcp>=4.4.0<4.4.3_p1-r0
4.4.3_p1-r0
alpine/dhcp>=4.4.0<4.4.3_p1-r0
4.4.3_p1-r0
alpine/dhcp>=4.4.0<4.4.3_p1-r0
4.4.3_p1-r0
alpine/dhcp>=4.4.0<4.4.3_p1-r0
4.4.3_p1-r0
debian/isc-dhcp<4.4.3-2.1
4.4.3-2.1
debian/isc-dhcp<4.4.3-2.1
4.4.3-2.1
redhat/dhcp<4.4.3
4.4.3
redhat/dhcp<4.1
4.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/isc-dhcp to a version that resolves this vulnerability.

    Fixed in 4.4.3-P1-2Fixed in 4.4.3-P1-8
  2. Upgrade

    Upgrade alpine/dhcp to a version that resolves this vulnerability.

    Fixed in 4.4.3_p1-r0
  3. Upgrade

    Upgrade debian/isc-dhcp to a version that resolves this vulnerability.

    Fixed in 4.4.3-2.1
  4. Upgrade

    Upgrade redhat/dhcp to a version that resolves this vulnerability.

    Fixed in 4.4.3
  5. Upgrade

    Upgrade redhat/dhcp to a version that resolves this vulnerability.

    Fixed in 4.1
  6. Upgrade

    Upgrade ISC DHCP to a version that resolves this vulnerability.

    Fixed in 4.1-ESV-R16-P1
  7. Upgrade

    Upgrade ISC DHCP to a version that resolves this vulnerability.

    Fixed in 4.4.3

Event History

Oct 4, 2022
Data Sourced
via Red Hat·12:39 PM
DescriptionSeverityAffected Software
Oct 7, 2022
CVE Published
via MITRE·04:45 AM
Data Sourced
via MITRE·04:45 AM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·05:15 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·05:15 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2022-2928?

The severity of CVE-2022-2928 is medium.

2

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.

3

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.

4

How can I fix CVE-2022-2928?

To fix CVE-2022-2928, upgrade to a version of ISC DHCP that is not affected.

5

Where can I find more information about CVE-2022-2928?

More information about CVE-2022-2928 can be found in the references provided.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203