CVE-2008-0122: Buffer overflow in inet_network()
  • 23 May 2013
  • 2 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

CVE-2008-0122: Buffer overflow in inet_network()

  • Dark
    Light
  • PDF

Article summary

An off-by-one error in the inet_network() function in libbind could lead to memory corruption with certain inputs.

CVE: 

CVE-2008-0122    VU#203611

Posting date: 

18 Jan 2008

Program Impacted: 

BIND

Versions affected: 

8 (all versions) 9.0 (all versions) 9.1 (all versions) 9.2 (all versions) 9.3.0, 9.3.1, 9.3.2, 9.3.3, 9.3.4 9.4.0, 9.4.1, 9.4.2 9.5.0a1, 9.5.0a2, 9.5.0a3, 9.5.0a4, 9.5.0a5, 9.5.0a6, 9.5.0a7, 9.5.0b1

Severity: 

Low

Exploitable: 

Remotely

Description:

An off-by-one error in the inet_network() function in libbind could lead to memory corruption with certain inputs.

Impact:

Applications linked against libbind which call inet_network() with untrusted inputs could lead to a denial-of-service or potentially code execution.?

Workarounds:

None.

Active exploits:

None known at this time. 

Solution:  

                Upgrade to 9.3.5, 9.4.3, 9.5.0b2 or later when released.

Otherwise, apply the patch below to:

BIND 9: lib/bind/inet/inet_network.c BIND 8: lib/inet/inet_network.c

Index: inet_network.cdiff -u inet_network.c:1.5 inet_network.c:1.6--- inet_network.c:1.5 Wed Apr 27 04:56:21 2005+++ inet_network.c Tue Jan 15 04:02:01 2008@@ -84,9 +84,9 @@}if (!digit)return (INADDR_NONE);+ if (pp >= parts 4 || val > 0xffU)+ return (INADDR_NONE);if (*cp == '.') {- if (pp >= parts + 4 || val > 0xffU)- return (INADDR_NONE);*pp++ = val, cp++;goto again;}

Questions should be addressed to bind9-bugs@isc.org.

Acknowledgements: ISC would like to thank Nate Eldredge for reporting this.  

Related Documents:

See our BIND Security Matrix for a complete listing of Security Vulnerabilities and versions affected.

If you'd like more information on our Forum or product support please visit www.isc.org/support.

Do you still have questions?   Questions regarding this advisory should go to security-officer@isc.org

Note: ISC patches only currently supported versions. When possible we indicate EOL versions affected.

ISC Security Vulnerability Disclosure Policy:   Details of our current security advisory policy and practice can be found here: https://www.isc.org/security-vulnerability-disclosure-policy

This Knowledge Base article https://kb.isc.org/article/AA-00923 is the complete and official security advisory document.

Legal Disclaimer: Internet Systems Consortium (ISC) is providing this notice on an "AS IS" basis. No warranty or guarantee of any kind is expressed in this notice and none should be implied. ISC expressly excludes and disclaims any warranties regarding this notice or materials referred to in this notice, including, without limitation, any implied warranty of merchantability, fitness for a particular purpose, absence of hidden defects, or of non-infringement. Your use or reliance on this notice or materials referred to in this notice is at your own risk. ISC may change this notice at any time.  A stand-alone copy or paraphrase of the text of this document that omits the document URL is an uncontrolled copy. Uncontrolled copies may lack important information, be out of date, or contain factual errors.

© 2001-2018 Internet Systems Consortium For assistance with problems and questions for which you have not been able to find an answer in our Knowledge Base, we recommend searching our community mailing list archives and/or posting your question there (you will need to register there first for your posts to be accepted). The bind-users and the dhcp-users lists particularly have a long-standing and active membership. ISC relies on the financial support of the community to fund the development of its open source software products. If you would like to support future product evolution and maintenance as well having peace of mind knowing that our team of experts are poised to provide you with individual technical assistance whenever you call upon them, then please consider our Professional Subscription Support services - details can be found on our main website.