Vulnerability · Published Apr 10, 2026 · Assigned by mitre

CVE-2026-40200

High 8.1

In plain English

A high-severity security flaw in musl from musl-libc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 6% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.2%top 94.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

An issue was discovered in musl libc 0.7.10 through 1.2.6. Stack-based memory corruption can occur during qsort of very large arrays, due to incorrectly implemented double-word primitives. The number of elements must exceed about seven million, i.e., the 32nd Leonardo number on 32-bit platforms (or the 64th Leonardo number on 64-bit platforms, which is not practical).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20musl1.2.5-r3ALPINE-CVE-2026-40200
Alpine:v3.21musl1.2.5-r11ALPINE-CVE-2026-40200
Alpine:v3.22musl1.2.5-r12ALPINE-CVE-2026-40200
Alpine:v3.23musl1.2.5-r23ALPINE-CVE-2026-40200
Alpine:v3.24musl1.2.6-r2ALPINE-CVE-2026-40200
Debian:12muslno fix listedDEBIAN-CVE-2026-40200
Debian:13musl1.2.5-3.1~deb13u1DEBIAN-CVE-2026-40200
Debian:14musl1.2.5-3.1DEBIAN-CVE-2026-40200
Ubuntu:22.04:LTSmuslno fix listedUBUNTU-CVE-2026-40200
Ubuntu:24.04:LTSmuslno fix listedUBUNTU-CVE-2026-40200
Ubuntu:25.10muslno fix listedUBUNTU-CVE-2026-40200
Ubuntu:26.04:LTSmuslno fix listedUBUNTU-CVE-2026-40200
Ubuntu:26.10muslno fix listedUBUNTU-CVE-2026-40200

Affected products (as reported)

VendorProductVersions
musl-libc musl 0.7.10 – through 1.2.6

Weakness: CWE-670 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

References