Description
musl libc before 1.2.7, when an untrusted regular expression is used with regcomp, has multiple integer overflows, possibly leading to incorrect allocation sizes and out-of-bounds heap writes.
Published: 2026-11-05
Score: 8.1 High
EPSS: n/a
KEV: No
Impact: Memory Corruption / Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability arises when an untrusted regular expression is compiled with musl libc’s regcomp before version 1.2.7. The function miscalculates the size of the internal structures, allowing integer overflows that result in out‑of‑bounds heap writes. This corrupts memory and can potentially be used to alter program execution or execute arbitrary code, representing a serious security risk.

Affected Systems

Any system that uses musl libc before 1.2.7 is affected. This includes many lightweight or embedded Linux distributions that rely on musl, as well as any custom applications statically or dynamically linked against versions of musl older than 1.2.7. The exact version boundary is clear: all releases prior to 1.2.7.

Risk and Exploitability

The CVSS score of 8.1 indicates high severity. The EPSS score is not available, and the vulnerability is not listed in CISA's KEV. The likely attack vector involves an attacker supplying a crafted regular expression to an application that uses regcomp. While no proof of exploitation is published, the presence of a heap overflow can lead to remote code execution on vulnerable systems. Administrators should treat this as a high‑risk flaw.

Generated by OpenCVE AI on November 5, 2026 at 16:50 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade musl libc to version 1.2.7 or later, ensuring all components use the updated library.
  • If upgrading immediately is not feasible, audit and restrict any input that passes through regcomp, ensuring only trusted patterns are compiled or reject untrusted expressions.
  • For systems where an upgrade is not possible, enable address space layout randomization and memory protection tools such as stack canaries or coverage-based sanitizers to detect or mitigate memory corruption.

Generated by OpenCVE AI on November 5, 2026 at 16:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 05 Nov 2026 17:30:00 +0000

Type Values Removed Values Added
References

Thu, 05 Nov 2026 17:15:00 +0000

Type Values Removed Values Added
Title Integer Overflows in musl libc's regcomp Leading to Heap Overflows

Thu, 05 Nov 2026 15:30:00 +0000

Type Values Removed Values Added
Description musl libc before 1.2.7, when an untrusted regular expression is used with regcomp, has multiple integer overflows, possibly leading to incorrect allocation sizes and out-of-bounds heap writes.
Weaknesses CWE-190
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-11-05T16:09:17.753Z

Reserved: 2026-10-09T04:31:18.665Z

Link: CVE-2026-107891

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-05T16:17:32.150

Modified: 2026-11-05T17:17:35.287

Link: CVE-2026-107891

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-05T17:00:10Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound