OpenBSD DHCP cons_options() buffer overflow

openbsd-dhcp-bo (37045) The risk level is classified as HighHigh Risk

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.

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 AS
  • RedHat, Enterprise Linux 2.1 ES
  • RedHat, Linux Advanced Workstation 2.1 Itanium
  • Sun, OpenSolaris build_snv_01 SPARC
  • Sun, OpenSolaris build_snv_01 x86
  • Sun, OpenSolaris build_snv_02 SPARC
  • Sun, OpenSolaris build_snv_02 x86
  • Sun, OpenSolaris build_snv_100 x86
  • Sun, OpenSolaris build_snv_100 SPARC
  • Sun, OpenSolaris build_snv_101 x86
  • Sun, OpenSolaris build_snv_101 SPARC
  • Sun, OpenSolaris build_snv_102 x86
  • Sun, OpenSolaris build_snv_102 SPARC
  • Sun, OpenSolaris build_snv_12 x86
  • Sun, OpenSolaris build_snv_13 SPARC
  • Sun, OpenSolaris build_snv_13 x86
  • Sun, OpenSolaris build_snv_19 x86
  • Sun, OpenSolaris build_snv_19 SPARC
  • 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 x86
  • Sun, OpenSolaris build_snv_39 SPARC
  • Sun, OpenSolaris build_snv_59 SPARC
  • Sun, OpenSolaris build_snv_59 x86
  • Sun, OpenSolaris build_snv_64 SPARC
  • Sun, OpenSolaris build_snv_64 x86
  • 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 SPARC
  • Sun, OpenSolaris build_snv_85 x86
  • 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 x86
  • Sun, OpenSolaris build_snv_89 SPARC
  • Sun, OpenSolaris build_snv_91 SPARC
  • Sun, OpenSolaris build_snv_91 x86
  • Sun, OpenSolaris build_snv_92 x86
  • Sun, OpenSolaris build_snv_92 SPARC
  • Sun, OpenSolaris build_snv_95 SPARC
  • Sun, OpenSolaris build_snv_95 x86
  • Sun, Solaris 10 SPARC
  • Sun, Solaris 10 x86
  • Sun, Solaris 8 SPARC
  • Sun, Solaris 8 x86
  • Sun, Solaris 9 x86
  • Sun, Solaris 9 SPARC

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.

Consequences:

Gain Access

References:

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

Return to the main page