cve.bz

CVE-2026-40200 musl-libc musl

8.1 highEPSS 0.2%

High (8.1) in musl-libc musl. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 6th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-670 Always-Incorrect Control Flow Implementation
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40200 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40200?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40200?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40200 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
musl-libc muslfrom 0.7.10 through 1.2.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12muslno fix listedDEBIAN-CVE-2026-40200
Debian13musl1.2.5-3.1~deb13u1DEBIAN-CVE-2026-40200
Debian14musl1.2.5-3.1DEBIAN-CVE-2026-40200
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 6 moremuslno fix listedUBUNTU-CVE-2026-40200
Alpinev3.19musl1.2.4_git20230717-r6ALPINE-CVE-2026-40200
Alpinev3.20musl1.2.5-r3ALPINE-CVE-2026-40200
Alpinev3.21musl1.2.5-r11ALPINE-CVE-2026-40200
Alpinev3.22musl1.2.5-r12ALPINE-CVE-2026-40200
Alpinev3.23musl1.2.5-r23ALPINE-CVE-2026-40200
Alpinev3.24musl1.2.6-r2ALPINE-CVE-2026-40200
Alpaquita23musl-default1.2.4-r14BELL-CVE-2026-40200
Alpaquita23musl-perf1.2.4-r10BELL-CVE-2026-40200
Alpaquita25musl-default1.2.5-r15BELL-CVE-2026-40200
Alpaquita25musl-perf1.2.5-r16BELL-CVE-2026-40200
Alpaquitastreammusl-perf, musl-default1.2.6-r2BELL-CVE-2026-40200
BellSoft Hardened Containers23musl-default1.2.4-r14BELL-CVE-2026-40200
BellSoft Hardened Containers23musl-perf1.2.4-r10BELL-CVE-2026-40200
BellSoft Hardened Containers25musl-default1.2.5-r15BELL-CVE-2026-40200
BellSoft Hardened Containers25musl-perf1.2.5-r16BELL-CVE-2026-40200
BellSoft Hardened Containersstreammusl-perf, musl-default1.2.6-r2BELL-CVE-2026-40200

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

AN IMPORTANT stack-based memory corruption flaw in musl libc's `qsort` function could lead to arbitrary code execution or denial of service. This vulnerability requires a local attacker to provide an extremely large, specially crafted array, exceeding millions of elements, making practical exploitation highly improbable in typical Red Hat environments.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40200.

References

Check your stackJSON