Description
Stack-based buffer overflow in the cons_options function in options.c in dhcpd in OpenBSD 4.0 through 4.2, and some other dhcpd implementations based on ISC dhcp-2, allows remote attackers to execute arbitrary code or cause a denial of service (daemon crash) via a DHCP request specifying a maximum message size smaller than the minimum IP MTU.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 4.0 | dhcp | 2.0pl5-19.5etch1 | DSA-1388-3, DSA-1388-1 |
| Debian 3.1 | dhcp | 2.0pl5-19.1sarge3 | DSA-1388-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 2 | dhcp | 1:2.0pl5-11 | RHSA-2007:0970 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Ubuntu 6.06 - DHCPd Remote Denial of Service EDB-4601 · dos · Nov 2, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- RHSA-2007:0970 Red Hat Security Advisory: dhcp security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1388-1 dhcp Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1388-3 dhcp - buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
References
- 27338 third-party-advisory
- 27350 third-party-advisory
- ADV-2008-3088 vdb-entry
- 4601 exploit
- http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/dhcpd/options.c
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446354
- [4.2] 20071008 001: SECURITY FIX: October 8, 2007 vendor-advisory
- 25984 vdb-entry
- 20071102 DoS Exploit for DHCPd bug (Bugtraq ID 25984 ; CVE-2007-5365) mailing-list
- openbsd-dhcp-bo(37045) vdb-entry
- RHSA-2007:0970 vendor-advisory
- DSA-1388 vendor-advisory
- http://www.coresecurity.com/index.php5?module=ContentMod&action=item&id=1962
- USN-531-1 vendor-advisory
- oval:org.mitre.oval:def:5817 vdb-entry signature
- USN-531-2 vendor-advisory
- 27160 third-party-advisory
- 20071011 CORE-2007-0928: Stack-based buffer overflow vulnerability in OpenBSDâ??s DHCP server mailing-list
- 27273 third-party-advisory
- [4.0] 20071008 016: SECURITY FIX: October 8, 2007 vendor-advisory
- 243806 vendor-advisory
- 32668 third-party-advisory
- [4.1] 20071008 010: SECURITY FIX: October 8, 2007 vendor-advisory
- http://sunsolve.sun.com/search/document.do?assetkey=1-21-109077-21-1
- 1018794 vdb-entry
- 1021157 vdb-entry
- 32213 vdb-entry