Vulnerability DatabaseCVE-2026-107891

CVE-2026-107891: 
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2026-107891 is a multiple integer overflow vulnerability in the regcomp function of musl libc that can lead to incorrect memory allocation sizes and out-of-bounds heap writes. It affects musl libc versions 0.5.0 through 1.2.6 (all versions before 1.2.7). The vulnerability was initially reported privately by Julien Voisin, with subsequent analysis by Szabolcs Nagy and Rich Felker; it was publicly disclosed on October 21, 2026, and formally published on November 5, 2026. It carries a CVSS v3.1 base score of 8.1 (High) (Openwall musl list, GitHub Advisory).

Technical details

The root cause is classified as CWE-190 (Integer Overflow or Wraparound) and CWE-787 (Out-of-bounds Write). The overflow conditions are triggered by the size and complexity of the regular expression passed to regcomp — not by the data being matched — meaning an attacker must be able to supply an untrusted regex to a vulnerable application. When integer arithmetic overflows during internal size calculations, the resulting heap allocation is undersized, and subsequent writes can extend beyond the allocated buffer. The vulnerability is network-exploitable (CVSS Attack Vector: Network) but requires high attack complexity, as exploitation depends on application-specific heap layout and concurrency conditions (Openwall oss-security, GitHub Advisory). A patch commit is publicly available at the musl-libc git repository (GitHub Advisory).

Impact

Successful exploitation can result in at minimum a predictable denial-of-service crash of the affected application. Depending on the application's heap layout and use of concurrent execution, arbitrary code execution may also be achievable, potentially leading to full compromise of confidentiality, integrity, and availability of the affected service. Any application linked against musl libc that processes regular expressions from untrusted sources is at risk, which includes a broad range of software deployed on Alpine Linux and other musl-based systems (Openwall musl list, Red Hat Bugzilla).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at the time of disclosure (Feedly). The NVD SSVC assessment classifies exploitation as "none" and notes the attack is not automatable, reflecting the high complexity required. The EPSS score is approximately 0.549% (47th percentile), indicating a relatively low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Exploitation steps

  1. Identify a target application: Find a network-accessible application linked against musl libc (e.g., on Alpine Linux) that accepts user-supplied regular expressions and passes them to the regcomp function.
  2. Craft a malicious regex: Construct a large, complex regular expression designed to trigger integer overflow in musl libc's internal size calculations during regcomp processing. The overflow is triggered by the size/complexity of the regex itself, not the data being matched.
  3. Submit the malicious regex: Deliver the crafted regex to the target application via its exposed interface (e.g., HTTP API, configuration input, or any other user-controlled regex input channel).
  4. Trigger heap corruption: The integer overflow causes regcomp to allocate an undersized heap buffer; subsequent writes overflow the buffer, corrupting adjacent heap memory.
  5. Achieve code execution or crash: Depending on the application's heap layout and concurrency, the heap corruption may result in a predictable crash (DoS) or, under favorable conditions, redirect execution flow to attacker-controlled code (Openwall musl list, Openwall oss-security).

Indicators of compromise

  • Logs: Unexpected application crashes or segmentation faults in services linked against musl libc, particularly those that accept regex input; crash dumps referencing heap corruption or invalid memory access in regcomp-related stack frames.
  • Process: Abnormal termination of musl-linked processes with signals such as SIGSEGV or SIGABRT, especially following receipt of unusually large or complex regex patterns from external sources.
  • Network: Anomalous or oversized regex patterns submitted to application endpoints that accept user-supplied regular expressions; repeated connection attempts with varying complex regex payloads suggesting fuzzing or exploitation attempts.

Mitigation and workarounds

The primary remediation is to upgrade musl libc to version 1.2.7 or later, which includes the fix committed at 7813e9119eb5fe681b6750b8a033a0490bca0941 (GitHub Advisory). For systems where patching is not immediately possible, the musl maintainers recommend applying the patch 0001-regex-avoid-int-overflow-in-regcomp.patch directly. As a workaround, applications should be configured to prevent processing of regular expressions from untrusted sources, and sandboxing of applications that handle untrusted regex input should be considered (Openwall musl list). Alpine Linux users should apply the security releases that bundle the musl 1.2.7 fix.

Community reactions

The vulnerability was disclosed by musl libc maintainer Rich Felker on the musl and oss-security mailing lists on October 21, 2026, crediting Julien Voisin for the initial private report and Szabolcs Nagy for subsequent analysis (Openwall musl list). The disclosure generated discussion on Lobste.rs, Hacker News, and Bluesky/Mastodon, with community commentary noting the broad impact on musl-based distributions such as Alpine Linux. A blog post on xeiaso.net and a Hacker News thread further amplified community awareness. Alpine Linux issued security releases (3.21.9, 3.22.7, 3.23.7, and 3.24.3) that included patches addressing this and related issues.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

musl

Affected

sid

musl: 1.2.6-2

Fixed

trixie

musl

Affected

Ubuntu

Unknown

bionic (esm-apps)

musl

Unknown

devel

musl

Unknown

focal (esm-apps)

musl

Unknown

jammy

musl

Unknown

jammy (esm-apps)

musl

Unknown

noble

musl

Unknown

noble (esm-apps)

musl

Unknown

resolute

musl

Unknown

Alpine

Fixed

edge

musl: 1.2.6-r6

Fixed

v3.20

musl: 1.2.5-r4

Fixed

v3.21

musl: 1.2.5-r12

Fixed

v3.22

musl: 1.2.5-r13

Fixed

v3.23

musl: 1.2.5-r24

Fixed

Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-134170HIGH8.2
  • Linux Debian logoLinux Debian
  • mongoose
NoNoNov 20, 2026
CVE-2026-134043HIGH7.8
  • Linux Debian logoLinux Debian
  • krita
NoNoNov 20, 2026
CVE-2026-134042HIGH7.8
  • Linux Debian logoLinux Debian
  • krita
NoNoNov 20, 2026
CVE-2026-134041HIGH7.8
  • Linux Debian logoLinux Debian
  • krita
NoNoNov 20, 2026
CVE-2026-134171MEDIUM6.9
  • Linux Debian logoLinux Debian
  • mongoose
NoNoNov 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management