This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/21115] sunrpc: Use-after-free in error path in clntudp_call


https://sourceware.org/bugzilla/show_bug.cgi?id=21115

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, release/2.25/master has been updated
       via  045e368799cd253ddbf8bdec42ed92e8ebb3ce67 (commit)
      from  58520986c38e34db60e07260c64c563e3efcf353 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=045e368799cd253ddbf8bdec42ed92e8ebb3ce67

commit 045e368799cd253ddbf8bdec42ed92e8ebb3ce67
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue Feb 28 17:05:46 2017 +0100

    sunrpc: Avoid use-after-free read access in clntudp_call [BZ #21115]

    After commit bc779a1a5b3035133024b21e2f339fe4219fb11c
    (CVE-2016-4429: sunrpc: Do not use alloca in clntudp_call
    [BZ #20112]), ancillary data is stored on the heap,
    but it is accessed after it has been freed.

    The test case must be run under a heap debugger such as valgrind
    to observe the invalid access.  A malloc implementation which
    immediately calls munmap on free would catch this bug as well.

    (cherry picked from commit d42eed4a044e5e10dfb885cf9891c2518a72a491)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog              |    8 ++++++
 NEWS                   |    1 +
 sunrpc/Makefile        |    3 +-
 sunrpc/clnt_udp.c      |    2 +-
 sunrpc/tst-udp-error.c |   62 ++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 74 insertions(+), 2 deletions(-)
 create mode 100644 sunrpc/tst-udp-error.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]