• Sources: primary, discussion
  • Summary: Rich Felker disclosed multiple integer overflows in musl's regcomp that can produce undersized allocations and out-of-bounds heap writes, triggered by the size and complexity of the pattern rather than the matched data. All versions from 0.5.0 through 1.2.6 are affected. A patch is attached to the advisory and the fix will ship in musl 1.2.7.
  • Why it matters: Alpine and other musl-based images that compile user-supplied regular expressions through libc regcomp need the patched package or must stop accepting untrusted patterns.
  • Follow-up: musl 1.2.7 release and Alpine package updates.