Skip to content
NewA calmer, faster ZeroHour

musl libc regcomp overflows can cause heap writes (CVE-2026-107891)

Original title: CVE-2026-107891: musl libc: multiple integer overflow in regcomp, possibly leading to incorrect allocation sizes and out-of-bounds heap writes

oss-security ()
Part of a story covered by 2 sourcesmusl libc regcomp integer overflows may cause heap writesMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

Overflow conditions depend on the size and complexity of the regular expression passed to regcomp.

Rich Felker reported CVE-2026-107891 in musl libc. Multiple integer overflows in regcomp can produce incorrectly sized allocations and possibly out-of-bounds heap writes. The overflow conditions are triggered by the size and complexity of the regular expression passed to regcomp. The post does not state a fixed release or known exploitation.

Unconfirmed: Heap writes are described as possible, and no fixed version is stated.

Key facts
  • The affected function is regcomp in musl libc.
  • Overflows can lead to incorrectly sized allocations.
  • Out-of-bounds heap writes are described as possible.
  • The remainder of the trigger description is cut off.
Security assessment · AI, from the article

Impact: Possible out-of-bounds heap writes from regcomp

ProductAffected
musl libc—
Analyze CVE-2026-107891 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2026-107891
———

From the original article

Posted by Rich Felker on Oct 21 CVE-2026-107891: musl libc: multiple integer overflow in regcomp, possibly leading to incorrect allocation sizes and out-of-bounds heap writes Overview: The regcomp function in musl libc is affected by multiple integer overflow issues which can lead to incorrectly-sized allocations and possibly out-of-bounds heap writes.

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.