[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#185508: marked as done (CERT Advisory CA-2003-10 Integer overflow in Sun RPC XDR library routines (fwd))



Your message dated Wed, 9 Apr 2003 12:53:42 -0500 (CDT)
with message-id <Pine.GSO.4.40.0304091249360.10617-100000@mira.cc.umanitoba.ca>
and subject line close bug? (fwd)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 19 Mar 2003 20:42:57 +0000
>From umdanie8@cc.umanitoba.ca Wed Mar 19 14:42:56 2003
Return-path: <umdanie8@cc.umanitoba.ca>
Received: from electra.cc.umanitoba.ca [130.179.16.23] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18vkOm-0005Hi-00; Wed, 19 Mar 2003 14:42:56 -0600
Received: from antares.cc.umanitoba.ca (smmsp@antares.cc.umanitoba.ca [130.179.16.26])
	by electra.cc.umanitoba.ca (8.12.8/8.12.8) with ESMTP id h2JKgli3000093
	for <submit@bugs.debian.org>; Wed, 19 Mar 2003 14:42:48 -0600 (CST)
Received: (from umdanie8@localhost)
	by antares.cc.umanitoba.ca (8.12.5+Sun/8.12.2) id h2JKereF004825;
	Wed, 19 Mar 2003 14:40:53 -0600 (CST)
Date: Wed, 19 Mar 2003 14:40:53 -0600 (CST)
From: Drew Scott Daniels <umdanie8@cc.UManitoba.CA>
To: submit@bugs.debian.org
Subject: CERT Advisory CA-2003-10 Integer overflow in Sun RPC XDR library
 routines (fwd)
Message-ID: <Pine.GSO.4.40.0303191436580.8229-100000@antares.cc.umanitoba.ca>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-DCC-UofM-Metrics: electra 1032; IP=ok Body=1 Fuz1=1 Fuz2=1
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-1.4 required=4.0
	tests=HAS_PACKAGE,LINES_OF_YELLING,PGP_SIGNATURE,
	      SPAM_PHRASE_01_02,USER_AGENT_PINE
	version=2.44
X-Spam-Level: 

Package: glibc
Severity: grave
Tags: security, potato, woody, sarge, sid

I hope I'm not just causing extra work by posting this, but it is a grave
bug and I haven't seen anything yet about it. The security team should
already have a copy the CERT advisory, maybe even from before it's public
release.

     Drew Daniels

---------- Forwarded message ----------
Date: Wed, 19 Mar 2003 14:52:24 -0500
From: CERT Advisory <cert-advisory@cert.org>
To: cert-advisory@cert.org
Subject: CERT Advisory CA-2003-10 Integer overflow in Sun RPC XDR library
    routines



-----BEGIN PGP SIGNED MESSAGE-----

CERT Advisory CA-2003-10 Integer overflow in Sun RPC XDR library routines

   Original release date: March 19, 2003
   Last revised: --
   Source: CERT/CC

   A complete revision history can be found at the end of this file.

Systems Affected

   Applications  using  vulnerable  implementations of SunRPC-derived XDR
   libraries, which include
     * Sun Microsystems network services library (libnsl)
     * BSD-derived libraries with XDR/RPC routines (libc)
     * GNU C library with sunrpc (glibc)

Overview

   There  is  an  integer  overflow  in  the  xdrmem_getbytes()  function
   distributed as part of the Sun Microsystems XDR library. This overflow
   can   cause   remotely   exploitable   buffer  overflows  in  multiple
   applications, leading to the execution of arbitrary code. Although the
   library  was  originally  distributed  by  Sun  Microsystems, multiple
   vendors   have   included   the   vulnerable   code   in   their   own
   implementations.

I. Description

   XDR  (external  data  representation)  libraries  are  used to provide
   platform-independent  methods for sending data from one system process
   to  another,  typically  over  a network connection. Such routines are
   commonly  used  in  remote  procedure  call  (RPC)  implementations to
   provide transparency to application programmers who need to use common
   interfaces  to  interact  with  many  different  types of systems. The
   xdrmem_getbytes()   function  in  the  XDR  library  provided  by  Sun
   Microsystems  contains an integer overflow that can lead to improperly
   sized  dynamic  memory  allocation.  Depending  on  how  and where the
   vulnerable  xdrmem_getbytes()  function  is  used, subsequent problems
   like buffer overflows may result.

   Researchers at eEye Digital Security discovered this vulnerability and
   have also published an advisory. This issue is currently being tracked
   as  VU#516825  by  the  CERT/CC  and  as  CAN-2003-0028  in the Common
   Vulnerabilities   and  Exposures  (CVE)  dictionary.  Note  that  this
   vulnerability is similar to, but distinct from, VU#192995.

II. Impact

   Because  SunRPC-derived XDR libraries are used by a variety of vendors
   in  a  variety  of  applications,  this defect may lead to a number of
   security  problems.  Exploiting this vulnerability will lead to denial
   of  service,  execution  of  arbitrary  code,  or  the  disclosure  of
   sensitive information.

   Specific  impacts  reported  include  the ability to crash the rpcbind
   service  and  possibly execute arbitrary code with root privileges. In
   addition, intruders may be able to crash the MIT KRB5 kadmind or cause
   it to leak sensitive information, such as secret keys.

III. Solution

Apply a patch from your vendor

   Apply  the  appropriate  patch or upgrade as specified by your vendor.
   See Appendix A below and the Systems Affected section of VU#516825 for
   further information.

   Note  that  XDR libraries can be used by multiple applications on most
   systems.  It may be necessary to upgrade or apply multiple patches and
   then recompile statically linked applications.

   Applications  that  are  statically  linked  must  be recompiled using
   patched  libraries.  Applications  that  are dynamically linked do not
   need  to be recompiled; however, running services need to be restarted
   in order to use the patched libraries.

   System  administrators  should  consider  the  following  process when
   addressing this issue:
    1. Patch or obtain updated XDR/RPC libraries.
    2. Restart  any  dynamically  linked  services  that  make use of the
       XDR/RPC libraries.
    3. Recompile  any statically linked applications using the patched or
       updated XDR/RPC libraries.

Disable access to vulnerable services or applications

   Until  patches  are  available  and  can  be  applied, you may wish to
   disable   access   to  services  or  applications  compiled  with  the
   vulnerable xdrmem_getbytes() function.

   As a best practice, the CERT/CC recommends disabling all services that
   are not explicitly required.

Appendix A. - Vendor Information

   This  appendix  contains  information  provided  by  vendors  for this
   advisory.  As  vendors  report new information to the CERT/CC, we will
   update this section and note the changes in our revision history. If a
   particular  vendor  is  not  listed  below, we have not received their
   comments.

Apple Computer, Inc.

   Mac  OS  X  and  Mac  OS  X  Server do not contain the vulnerabilities
   described in this report.

Cray, Inc.

   Cray  Inc. may be vulnerable and has opened spr's 724153 and 724154 to
   investigate.

Fujitsu

   We  are  currently  investigating how the vulnerability reported under
   VU#516825 affects the Fujitsu UXP/V O.S. We will update this statement
   as soon as new information becomes available.

GNU glibc

   Version 2.3.1 of the GNU C Library is vulnerable. Earlier versions are
   also  vulnerable.  The  following patches have been installed into the
   CVS  sources,  and  should  appear  in  the  next version of the GNU C
   Library. These patches are also available from the following URLs:

     http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sunrpc/rpc/xdr.h.
     diff?r1=1.26&r2=1.27&cvsroot=glibc
     http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sunrpc/xdr_mem.c.
     diff?r1=1.13&r2=1.15&cvsroot=glibc
     http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sunrpc/xdr_rec.c.
     diff?r1=1.26&r2=1.27&cvsroot=glibc
     http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sunrpc/xdr_sizeof
     .c.diff?r1=1.5&r2=1.6&cvsroot=glibc
     http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sunrpc/xdr_stdio.
     c.diff?r1=1.15&r2=1.16&cvsroot=glibc

2002-12-16  Roland McGrath

        * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
        * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
        * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.

2002-12-13  Paul Eggert

        * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
        is now u_int, not int.
        (struct XDR.x_handy): Now u_int, not int.
        * sunrpc/xdr_mem.c: Include .
        (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
        xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
        x_handy is now unsigned, not signed.
        Do not decrement x_handy if no change is made.
        (xdrmem_setpos): Check for int overflow.
        * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
        (xdr_sizeof): Remove cast that is now unnecessary, now that
        x_handy is unsigned.

   [ text of diffs available in the links included above --CERT/CC ]

Hewlett-Packard Company

   RE: HP Case ID SSRT2439

   At  the  time  of  writing this document, Hewlett Packard is currently
   investigating  the  potential impact to HP's released Operating System
   software products.

   As further information becomes available HP will provide notice of the
   availability  of  any  necessary  patches  through  standard  security
   bulletin  announcements  and be available from your normal HP Services
   support channel.

Hitachi

   Hitachi's GR2000 gibabit router series - is NOT vulnerable.

IBM Corporation

   The AIX operating system is vulnerable to the issues discussed in CERT
   vulnerability note VU#516825 in releases 4.3.3, 5.1.0 and 5.2.0.

   IBM provides the following official fixes:

     APAR number for AIX 4.3.3: IY38524
     APAR number for AIX 5.1.0: IY38434
     APAR number for AIX 5.2.0: IY39231

   Please contact your local IBM AIX support center for any assistance.

Ingrian Networks

   Ingrian  Networks  products are not succeptable to the vulnerabilities
   in VU#516825.

MIT Kerberos Development Team

   It  may  be  possible  for  a  remote  attacker  to exploit an integer
   overflow in xdrmem_getbytes() to crash the kadmind server process by a
   read segmentation fault. For this to succeed, the kadmind process must
   be  able  to  allocate  more  than  MAX_INT  bytes  of memory. This is
   believed  to  be  unlikely,  as  most  installations are not likely to
   permit that the allocation of that much memory.

   It  may also be possible for a remote attacker to exploit this integer
   overflow  to  obtain  sensitive information, such as secret keys, from
   the  kadmind  process.  This  is believed to be extremely unlikely, as
   there  are  unlikely  to  be ways for the information, once improperly
   copied,  of  being  returned  to  the attacker. In addition, the above
   condition of the kadmind being able to allocate huge amounts of memory
   must be satisfied.
   Please see
   http://web.mit.edu/kerberos/www/advisories/MITKRB5-SA-2003-003-xdr.txt

   This patch may also be found at:
   http://web.mit.edu/kerberos/www/advisories/2003-003-xdr_patch.txt

   The associated detached PGP signature is at:

   http://web.mit.edu/kerberos/www/advisories/2003-003-xdr_patch.txt.asc

NEC Corporation

   [Server  Products]  *  EWS/UP  48  Series  operating  system  - is NOT
   vulnerable.

NetBSD

   The  length  types  of  the  various xdr*_getbytes functions were made
   consistent somewhere back in 1997 (all u_int), so we're not vulnerable
   in that area.

Network Appliance

   NetApp products are not vulnerable to this issue.

Nokia

   This issue has no relationship to the product we ship.

SGI

   SGI   acknowledges   receiving   CERT   VU#516825   and  is  currently
   investigating.  This  is  being tracked as SGI Bug# 880925. No further
   information is available at this time.

   For  the  protection  of  all  our  customers,  SGI does not disclose,
   discuss  or  confirm  vulnerabilities  until  a full investigation has
   occurred  and any necessary patch(es) or release streams are available
   for  all vulnerable and supported SGI operating systems. Until SGI has
   more  definitive  information  to provide, customers are encouraged to
   assume   all   security   vulnerabilities   as  exploitable  and  take
   appropriate  steps  according  to  local  site  security  policies and
   requirements.  As  further  information  becomes available, additional
   advisories  will  be  issued  via  the normal SGI security information
   distribution   methods   including   the   wiretap   mailing  list  on
   http://www.sgi.com/support/security/

Sun Microsystems

   Solaris 2.6, 7, 8 and 9 are vulnerable to VU#516825.
   Sun  will  be  publishing  a  Sun Alert for the issue at the following
   location shortly:
   http://sunsolve.Sun.COM/pub-cgi/retrieve.pl?doc=fsalert/51884
   The  Sun  Alert  will be updated with the patch information as soon as
   the patches are available.
   At  that  time,  the patches listed in the Sun Alert will be available
   from: http://sunsolve.sun.com/securitypatch
     _________________________________________________________________

Appendix B. - References

    1. AD20030318.html -
       http://www.eeye.com/html/Research/Advisories/AD20030318.html
    2. VU#192995 - http://www.kb.cert.org/vuls/id/192995
    3. VU#516825 - http://www.kb.cert.org/vuls/id/516825
    4. RFC1831 - http://www.ietf.org/rfc/rfc1831.txt
    5. RFC1832 - http://www.ietf.org/rfc/rfc1832.txt
     _________________________________________________________________

   Thanks  to  Riley Hassell of eEye Digital Security for discovering and
   reporting  this  vulnerability.  Thanks  also  to Sun Microsystems for
   additional technical details.
     _________________________________________________________________

   Authors: Chad Dougherty and Jeffrey Havrilla
   ______________________________________________________________________

   This document is available from:
   http://www.cert.org/advisories/CA-2003-10.html
   ______________________________________________________________________

CERT/CC Contact Information

   Email: cert@cert.org
          Phone: +1 412-268-7090 (24-hour hotline)
          Fax: +1 412-268-6989
          Postal address:
          CERT Coordination Center
          Software Engineering Institute
          Carnegie Mellon University
          Pittsburgh PA 15213-3890
          U.S.A.

   CERT/CC   personnel   answer  the  hotline  08:00-17:00  EST(GMT-5)  /
   EDT(GMT-4)  Monday  through  Friday;  they are on call for emergencies
   during other hours, on U.S. holidays, and on weekends.

    Using encryption

   We  strongly  urge you to encrypt sensitive information sent by email.
   Our public PGP key is available from
   http://www.cert.org/CERT_PGP.key

   If  you  prefer  to  use  DES,  please  call the CERT hotline for more
   information.

    Getting security information

   CERT  publications  and  other security information are available from
   our web site
   http://www.cert.org/

   To  subscribe  to  the CERT mailing list for advisories and bulletins,
   send  email  to majordomo@cert.org. Please include in the body of your
   message

   subscribe cert-advisory

   *  "CERT"  and  "CERT  Coordination Center" are registered in the U.S.
   Patent and Trademark Office.
   ______________________________________________________________________

   NO WARRANTY
   Any  material furnished by Carnegie Mellon University and the Software
   Engineering  Institute  is  furnished  on  an  "as is" basis. Carnegie
   Mellon University makes no warranties of any kind, either expressed or
   implied  as  to  any matter including, but not limited to, warranty of
   fitness  for  a  particular purpose or merchantability, exclusivity or
   results  obtained from use of the material. Carnegie Mellon University
   does  not  make  any warranty of any kind with respect to freedom from
   patent, trademark, or copyright infringement.
     _________________________________________________________________

   Conditions for use, disclaimers, and sponsorship information

   Copyright 2003 Carnegie Mellon University.

   Revision History
Mar 19, 2003:  Initial release

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQCVAwUBPni7vGjtSoHZUTs5AQEOgwQAyJow8nuWp5kard1CYquPxQM53+8cLCuF
45XFkhQgHCR4bjaf3+e+B6n4XyPcZWNF2rmCfEj11H1TVKkKKRZxJPRiNPZ9Tht1
iDAsy5kES7LwBowIsjMrPJl25M7JrKIRwyoO36UGD5xFPMopzlJGsxpCdr9Yo4nT
yfb381fVUWc=
=dAEv
-----END PGP SIGNATURE-----


---------------------------------------
Received: (at 185508-done) by bugs.debian.org; 9 Apr 2003 17:53:47 +0000
>From umdanie8@cc.umanitoba.ca Wed Apr 09 12:53:46 2003
Return-path: <umdanie8@cc.umanitoba.ca>
Received: from electra.cc.umanitoba.ca [130.179.16.23] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 193Jla-0003Kr-00; Wed, 09 Apr 2003 12:53:46 -0500
Received: from mira.cc.umanitoba.ca (umdanie8@mira.cc.umanitoba.ca [130.179.16.8])
	by electra.cc.umanitoba.ca (8.12.8p1/8.12.8) with ESMTP id h39Hrg8u019495
	for <185508-done@bugs.debian.org>; Wed, 9 Apr 2003 12:53:43 -0500 (CDT)
Received: (from umdanie8@localhost)
	by mira.cc.umanitoba.ca (8.12.5+Sun/8.12.2) id h39Hrggr012751;
	Wed, 9 Apr 2003 12:53:42 -0500 (CDT)
Date: Wed, 9 Apr 2003 12:53:42 -0500 (CDT)
From: Drew Scott Daniels <umdanie8@cc.UManitoba.CA>
To: 185508-done@bugs.debian.org
Subject: Re: close bug? (fwd)
Message-ID: <Pine.GSO.4.40.0304091249360.10617-100000@mira.cc.umanitoba.ca>
Mail-Followup-To: Drew Scott Daniels <umdanie8@cc.umanitoba.ca>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-DCC-UofM-Metrics: electra 1033; IP=ok Body=1 Fuz1=1 Fuz2=1
Delivered-To: 185508-done@bugs.debian.org
X-Spam-Status: No, hits=-1.2 required=4.0
	tests=QUOTED_EMAIL_TEXT,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_01_02,
	      USER_AGENT_PINE
	version=2.44
X-Spam-Level: 

As the original submitter, I think this bug should be closed... Reopen
with your address as the submitter if you feel otherwise.

     Drew Daniels

---------- Forwarded message ----------
Date: Wed, 9 Apr 2003 19:23:06 +0200
From: Martin Schulze <joey@infodrom.org>
To: Drew Scott Daniels <umdanie8@cc.UManitoba.CA>
Cc: Debian Security <debian-security-private@lists.debian.org>
Subject: Re: close bug?

Drew Scott Daniels wrote:
> I assume DSA-281 ( http://www.debian.org/security/2003/dsa-282 ) refers to
> fixes for this bug?

Apparently.

> Should this bug stay open until the security updates make it into a
> release ie 3.0r2?

I guess it can be closed already since security.debian.org is as good
as stable.

Regards,

	Joey

-- 
It's time to close the windows.



Reply to: