]> git.ipfire.org Git - thirdparty/glibc.git/commit
sunrpc: Avoid use-after-free read access in clntudp_call [BZ #21115]
authorFlorian Weimer <fweimer@redhat.com>
Mon, 27 Feb 2017 18:05:13 +0000 (19:05 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 27 Feb 2017 18:05:13 +0000 (19:05 +0100)
commitd42eed4a044e5e10dfb885cf9891c2518a72a491
tree29deb103217e1b09902f05cf49029a93cb76ad1a
parent963394a22b38c4ec92b6875a6c06d3b15d5c0d21
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.
ChangeLog
sunrpc/Makefile
sunrpc/clnt_udp.c
sunrpc/tst-udp-error.c [new file with mode: 0644]