From $URL: Due to incorrect use of integer types and missing overflow checks in the tre_tnfa_run_parallel function's buffer overflow logic, the TRE regex implementation (both original version and the one used in musl libc) are subject to integer overflows in buffer size computation. If the caller passes to regcomp a regular expression whose internal representation requires a large number of states and/or a large number of tags, too little space will be allocated during regexec, resulting in out-of-bound memory writes. An attacker who controls the regular expression and/or the string being searched can potentially exploit these writes to achieve controlled heap corruption. All versions of the TRE library and musl libc are affected. The attached patch fixes the issue in musl and should be easy to adapt for use with original TRE. musl git master is fixed as of commit https://git.musl-libc.org/cgit/musl/commit/?id=c3edc06d1e1360f3570db9155d6b318ae0d0f0f7
I just put musl-1.1.15-r2.ebuild on the tree which has this fix. Since I do the stabilization I will test in a few days and stabilize on all supported arches.
Like Anthony wrote a patched ebuild is already in tree: > commit 82e8189213284403928b9ffe36eded866609991d > Author: Felix Janda > Date: Tue Oct 18 19:08:21 2016 -0400 > > sys-libs/musl: add two upstream patches > > The first patch fixes the bug reported at > > https://lists.freedesktop.org/archives/xcb/2016-October/010864.html > > A CVE has been requested for the second patch: > > http://www.openwall.com/lists/musl/2016/10/18/2 @ Maintainer: Please start stabilization (CC arches & set keyword) when ready and let us know about the progress.
(In reply to Thomas Deutschmann from comment #2) > > @ Maintainer: Please start stabilization (CC arches & set keyword) when > ready and let us know about the progress. It has been stabilized.
This issue was resolved and addressed in GLSA 201701-11 at https://security.gentoo.org/glsa/201701-11 by GLSA coordinator Thomas Deutschmann (whissi).
Re-opening for cleanup. @ Maintainer(s): Please drop =sys-libs/musl-1.1.15
Cleanup PR: https://github.com/gentoo/gentoo/pull/3387
Cleaned up via https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78404f8f8ea9b5dde8d59e4fec442c090328ee65 All done, closing ...