CVE-2026-40200

musl: musl libc: Arbitrary code execution and denial of service via stack-based memory corruption in qsort

Published Apr 10, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title musl: musl libc: Arbitrary code execution and denial of service via stack-based memory corruption in qsort
Weaknesses CWE-190
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
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).
First Time appeared Musl-libc
Musl-libc musl
Weaknesses CWE-670
CPEs cpe:2.3:a:musl-libc:musl:*:*:*:*:*:*:*:*
Vendors & Products Musl-libc
Musl-libc musl
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 14, 2026, 2:32 PM
Reserved
Apr 10, 2026, 12:00 AM
Status
Deferred
Published
Apr 10, 2026, 5:17 PM
Modified
Jun 17, 2026, 10:44 AM
Severity
Important
Public date
Apr 10, 2026, 12:00 AM