This is an issue referred to as 'stack smash'. See https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt for additional details.
glibc preliminary patch: (1) configure the project with option --with-template=feature/build_libc (2) make -C build eglibc-sourcery-compile.patch (3) cd build/eglibc-sourcery-compile/glibc-2.18-4.8 (4) patch -Np2 < 0001-glibc-Preliminary-fix-to-CVE-2017-1000366.patch