OpenBSD dhcpd Buffer Overflow Vulnerability
Secunia Advisory: SA27160
Release Date: 2007-10-10
Last Update: 2007-10-11
Popularity: 7,801 views

Critical:
Moderately critical
Impact: DoS
System access
Where: From local network
Solution Status: Vendor Patch

OS:OpenBSD 3.x
OpenBSD 4.0
OpenBSD 4.1
OpenBSD 4.2

Binary Analysis: BA255 :: Available for Credits

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2007-0063
CVE-2007-5365


Description:
A vulnerability has been reported in OpenBSD, which can be exploited by malicious people to cause a DoS (Denial of Service) or potentially compromise a vulnerable system.

The vulnerability is caused due to the improper handling of DHCP requests within dhcpd in the "cons_options()" function in options.c. This can be exploited to cause a stack-based buffer overflow by sending a specially crafted DHCP request specifying a maximum message size between DHCP_FIXED_LEN and DHCP_FIXED_LEN + 3.

Successful exploitation may allow the execution of arbitrary code.

Solution:
Apply vendor patches.

OpenBSD 4.0:
ftp://ftp.openbsd.org/pub/OpenBSD/patches/4.0/common/016_dhcpd.patch

OpenBSD 4.1:
ftp://ftp.openbsd.org/pub/OpenBSD/patches/4.1/common/010_dhcpd.patch

OpenBSD 4.2:
ftp://ftp.openbsd.org/pub/OpenBSD/patches/4.2/common/001_dhcpd.patch

Provided and/or discovered by:
Nahuel Riva and Gerardo Richarte, CORE IMPACT Exploit Writers Team

Changelog:
2007-10-11: Updated the "Description" section and the credits. Added CVE reference.
2007-10-11: Added CVE reference.

Original Advisory:
Core Security Technologies:
http://www.coresecurity.com/index.php...ontentMod&action=item&id=1962

OpenBSD:
http://www.openbsd.org/errata40.html

Extended Solution:
The "Extended Solution" section is available for Secunia customers only. Request a trial and get access to the Secunia Customer Area and Extended Secunia advisories.


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Today
New advisories: 5
New vulnerabilities: 6
Updated advisories: 9

Moderately // 23 views
Gentoo update for courier-authlib

5th Sep, 2008
New advisories: 14
New vulnerabilities: 18
Updated advisories: 22

Less // 315 views
Fedora update for xastir
Less // 334 views
Fedora update for samba
Less // 330 views
Fedora update for bitlbee

Solutions | More...  


Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Linux Kernel "listxattr" Memory Corruption and CHRP Denial of Service // 55 views
2. Trend Micro Products Web Management Authentication Bypass // 37 views
3. Adobe Flash Player Multiple Vulnerabilities // 34 views
4. VLC Media Player Multiple Vulnerabilities // 34 views
5. Opera Multiple Vulnerabilities // 30 views
6. Microsoft Word Malformed Object Pointer Vulnerability // 27 views
7. Simple Machines Forum Password Reset Vulnerability // 25 views
8. phpAdultSite CMS SQL Injection And Cross-Site Scripting // 24 views
9. Subdreamer Light Global Variables SQL Injection Vulnerability // 22 views
10. Apple QuickTime Multiple Vulnerabilities // 22 views