]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Check for large bin list corruption when inserting unsorted chunk
authorAdam Maris <amaris@redhat.com>
Thu, 14 Mar 2019 20:51:16 +0000 (16:51 -0400)
committerDJ Delorie <dj@redhat.com>
Thu, 14 Mar 2019 20:51:16 +0000 (16:51 -0400)
commit5b06f538c5aee0389ed034f60d90a8884d6d54de
treefd5924d5f840d9b42e259e346ca811a7c77506d1
parenta0a0dc83173ce11ff45105fd32e5d14356cdfb9c
malloc: Check for large bin list corruption when inserting unsorted chunk

Fixes bug 24216. This patch adds security checks for bk and bk_nextsize pointers
of chunks in large bin when inserting chunk from unsorted bin. It was possible
to write the pointer to victim (newly inserted chunk) to arbitrary memory
locations if bk or bk_nextsize pointers of the next large bin chunk
got corrupted.
malloc/malloc.c