Archive of FreeBSD Security general posting, FreeBSD Security Advisory FreeBSD-SA-02:34.rpc

01/08/02, FreeBSD Security Advisory FreeBSD-SA-02:34.rpc
From: FreeBSD Security Advisories <security-advisories@FreeBSD.ORG>

Generated by MHonArc

CSIM Logo WelcomeCourses
Faculty, Student, Staff
Projects and reports
Conferences, workshop and seminars
Laboratories and reasearch facilities
Information related to CSIM
Information non-related to CSIM
Address, map, phone, etc.

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

To: FreeBSD Security Advisories <security-advisories@FreeBSD.ORG>
Subject: FreeBSD Security Advisory FreeBSD-SA-02:34.rpc
From: FreeBSD Security Advisories <security-advisories@FreeBSD.ORG>
Date: Wed, 31 Jul 2002 19:46:07 -0700 (PDT)
List-archive: <> (Web Archive)
List-help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-id: <freebsd-security-notifications.FreeBSD.ORG>
List-subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-security-notifications>
List-unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-security-notifications>
Reply-to: postmaster@FreeBSD.ORG
Sender: owner-freebsd-security-notifications@FreeBSD.ORG


FreeBSD-SA-02:34.rpc                                        Security Advisory
                                                          The FreeBSD Project

Topic:          Sun RPC XDR decoder contains buffer overflow

Category:       core
Module:         libc
Announced:      2002-07-31
Credits:        ISS X-Force
Affects:        All releases of FreeBSD up to and including 4.6.1-RELEASE-p3
Corrected:      2002-07-31 14:45:29 UTC (RELENG_4)
                2002-07-31 14:47:02 UTC (RELENG_4_6)
                2002-07-31 14:49:18 UTC (RELENG_4_5)
                2002-07-31 14:50:18 UTC (RELENG_4_4)
FreeBSD only:   NO

I.   Background

Sun RPC is a remote procedure call framework which allows clients
to invoke procedures in a server process over a network somewhat
transparently.  XDR is a mechanism for encoding data structures for
use with RPC.  NFS, NIS, and many other network services are built
upon Sun RPC.

The FreeBSD C runtime library (libc) contains an XDR encoder/decoder
derived from Sun's RPC implementation.

II.  Problem Description

An error in the calculation of memory needed for unpacking arrays in
the XDR decoder can result in a heap buffer overflow.

III. Impact

Any application using Sun RPC may be vulnerable to the heap buffer
overflow.  Depending upon the application, this vulnerability may be
exploitable and lead to arbitrary code execution.

Though no exploits are known to exist currently, many RPC-based
services run as the superuser (such as NFS, the NIS server, rpc.statd,
and others) and thus this vulnerability should be considered

No RPC-based services are enabled by default in FreeBSD installations.

IV.  Workaround

Do not run any RPC-based services.  The RPC-based services running
on a machine may be determined by:

  # rpcinfo -p <hostname>

To disable any RPC-based services at next boot, add (or change if it
is already present) the following lines in /etc/rc.conf:


V.   Solution

Do one of the following:

1) Upgrade your vulnerable system to 4.6-STABLE; or to the RELENG_4_6,
RELENG_4_5, or RELENG_4_4 security branch dated after the correction
date (4.6.1-RELEASE-p4, 4.5-RELEASE-p12, or 4.4-RELEASE-p19).

2) To patch your present system:

The following patch has been verified to apply to FreeBSD 4.4, 4.5,
and 4.6 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

# fetch
# fetch

b) Execute the following commands as root:

# cd /usr/src
# patch < /path/to/patch

c) Recompile the operating system as described in

Note that any statically linked applications that are not part of
the base system (i.e. from the Ports Collection or other 3rd-party
sources) must be recompiled if they use Sun RPC.

All affected applications must be restarted in order to use the
corrected library.  Though it is not required, rebooting may be the
easiest way to accomplish this.

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

Path                                                             Revision
- -------------------------------------------------------------------------
- -------------------------------------------------------------------------

VII. References

Version: GnuPG v1.0.7 (FreeBSD)


To Unsubscribe: send mail to
with "unsubscribe freebsd-security-notifications" in the body of the message

Previous message sorted by date: FreeBSD Security Advisory FreeBSD-SA-02:33.openssl
Next message sorted by date: FreeBSD Security Advisory FreeBSD-SA-02:33.openssl [REVISED]
Previous message sorted by thread: FreeBSD Security Advisory FreeBSD-SA-02:33.openssl
Next message by thread: FreeBSD Security Advisory FreeBSD-SA-02:33.openssl [REVISED]
Main Index
Thread Index

CSIM home pageWMailAccount managementCSIM LibraryNetwork test toolsSearch CSIM directories
Contact us: Olivier Nicole CSIM    SET    AIT Last update: Jan 2003