OpenBSD DHCP cons_options() buffer overflow
| openbsd-dhcp-bo (37045) |
Description:
The DHCP daemon (dhcpd) used in OpenBSD and other BSD and Linux-based operating systems is vulnerable to a stack-based buffer overflow, caused by improper handling of DHCP requests by the cons_options() function in options.c. By sending a specially-crafted DHCP request that specifies a maximum message size that is less than the minimum IP MTU, a remote attacker could overflow a buffer and execute arbitrary code on the system or cause the server to crash.
*CVSS:
| Base Score: | 7.5 |
| Access Vector: | Network |
| Access Complexity: | Low |
| Authentication: | None |
| Confidentiality Impact: | Partial |
| Integrity Impact: | Partial |
| Availability Impact: | Partial |
| Temporal Score: | 5.9 |
| Exploitability: | Proof-of-Concept |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
For OpenBSD version 4.1:
Apply the patch for this vulnerability (010_dhcpd.patch), as listed in the OpenBSD 4.1 errata. See References.
For OpenBSD version 4.2:
Apply the patch for this vulnerability (001_dhcpd.patch), as listed in the OpenBSD 4.2 errata. See References.
For OpenBSD version 4.0:
Apply the patch for this vulnerability (016_dhcpd.patch), as listed in the OpenBSD 4.0 errata. See References.
For other distributions:
Apply the appropriate update for your system. See References.
References:
- CORE-2007-0928: Stack-based buffer overflow vulnerability in OpenBSD's DHCP server.
- Full-Disclosure Mailing List, Fri Nov 02 2007 - 16:06:07 CDT: DoS Exploit for DHCPd bug (Bugtraq ID 25984 ; CVE-2007-5365).
- OpenBSD 4.0 errata: 016: SECURITY FIX: October 8, 2007.
- OpenBSD 4.1 errata: 010: SECURITY FIX: October 8, 2007.
- OpenBSD 4.2 errata: 001: SECURITY FIX: October 8, 2007.
- Sun Alert ID: 243806: Security Vulnerabilities in DHCP Handling of DHCP Requests May Allow Remote Users to Execute Arbitrary Code or Cause a Denial of the DHCP Service .
- ASA-2007-462: dhcp security update (RHSA-2007-0970)
- ASA-2008-443: Security Vulnerabilities in DHCP Handling of DHCP Requests May Allow Remote Users to Execute Arbitrary Code or Cause a Denial of the DHCP Service (Sun 243806)
- BID-25984: ISC DHCPD Server Remote Stack Corruption Vulnerability
- BID-32213: Sun Solaris DHCP Denial of Service And Remote Code Execution Vulnerabilities
- CVE-2007-5365: 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.
- DSA-1388: dhcp -- buffer overflow
- RHSA-2007-0970: Important: dhcp security update
- SA27160: OpenBSD dhcpd Buffer Overflow Vulnerability
- SA32668: Sun Solaris DHCP Request Handling Vulnerabilities
- SECTRACK ID: 1018794: OpenBSD dhcpcd Buffer Overflow Lets Remote Users Execute Arbitrary Code
- SECTRACK ID: 1021157: Solaris DHCP Daemon Bug Lets Remote Users Deny Service
- USN-531-1: dhcp vulnerability
- USN-531-2: dhcp vulnerability
- VUPEN/ADV-2008-3088: Sun Solaris DHCP Buffer Overflow and Denial of Service Vulnerabilities
Platforms Affected:
- Canonical Ubuntu 6.06 LTS
- Canonical Ubuntu 6.10
- Canonical Ubuntu 7.04
- Canonical Ubuntu 7.10
- Debian Debian Linux 3.1
- Debian Debian Linux 4.0
- OpenBSD OpenBSD 4.0
- OpenBSD OpenBSD 4.1
- OpenBSD OpenBSD 4.2
- RedHat Enterprise Linux 2.1 ES
- RedHat Enterprise Linux 2.1 AS
- RedHat Linux Advanced Workstation 2.1 Itanium
- Sun OpenSolaris build_snv_01 x86
- Sun OpenSolaris build_snv_01 SPARC
- Sun OpenSolaris build_snv_02 SPARC
- Sun OpenSolaris build_snv_02 x86
- Sun OpenSolaris build_snv_100 SPARC
- Sun OpenSolaris build_snv_100 x86
- Sun OpenSolaris build_snv_101 SPARC
- Sun OpenSolaris build_snv_101 x86
- Sun OpenSolaris build_snv_102 x86
- Sun OpenSolaris build_snv_102 SPARC
- Sun OpenSolaris build_snv_12 x86
- Sun OpenSolaris build_snv_13 x86
- Sun OpenSolaris build_snv_13 SPARC
- Sun OpenSolaris build_snv_19 SPARC
- Sun OpenSolaris build_snv_19 x86
- Sun OpenSolaris build_snv_22 x86
- Sun OpenSolaris build_snv_22 SPARC
- Sun OpenSolaris build_snv_36 x86
- Sun OpenSolaris build_snv_36 SPARC
- Sun OpenSolaris build_snv_39 SPARC
- Sun OpenSolaris build_snv_39 x86
- Sun OpenSolaris build_snv_59 SPARC
- Sun OpenSolaris build_snv_59 x86
- Sun OpenSolaris build_snv_64 x86
- Sun OpenSolaris build_snv_64 SPARC
- Sun OpenSolaris build_snv_67 x86
- Sun OpenSolaris build_snv_67 SPARC
- Sun OpenSolaris build_snv_68 x86
- Sun OpenSolaris build_snv_68 SPARC
- Sun OpenSolaris build_snv_80 SPARC
- Sun OpenSolaris build_snv_85 x86
- Sun OpenSolaris build_snv_85 SPARC
- Sun OpenSolaris build_snv_87 SPARC
- Sun OpenSolaris build_snv_87 x86
- Sun OpenSolaris build_snv_88 x86
- Sun OpenSolaris build_snv_88 SPARC
- Sun OpenSolaris build_snv_89 SPARC
- Sun OpenSolaris build_snv_89 x86
- Sun OpenSolaris build_snv_91 SPARC
- Sun OpenSolaris build_snv_91 x86
- Sun OpenSolaris build_snv_92 SPARC
- Sun OpenSolaris build_snv_92 x86
- Sun OpenSolaris build_snv_95 SPARC
- Sun OpenSolaris build_snv_95 x86
- Sun Solaris 10 x86
- Sun Solaris 10 SPARC
- Sun Solaris 8 SPARC
- Sun Solaris 8 x86
- Sun Solaris 9 SPARC
- Sun Solaris 9 x86
Reported:
Oct 09, 2007
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
