CVE-2026-40200
published high CVSS 3.1 · 8.1musl: musl libc: Arbitrary code execution and denial of service via stack-based memory corruption in qsort
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| musl-libc | — | musl0.7.10 through 1.2.6 · Other versions: unknown | Affected | Not stated | mitre |
| Alpine Linux | edge | musl | Fixed | 1.2.6-r2 | Package fix record |
| Alpine Linux | v3.19 | musl | Fixed | 1.2.4_git20230717-r6 | Package fix record |
| Alpine Linux | v3.20 | musl | Fixed | 1.2.5-r3 | Package fix record |
| Alpine Linux | v3.21 | musl | Fixed | 1.2.5-r11 | Package fix record |
| Alpine Linux | v3.22 | musl | Fixed | 1.2.5-r12 | Package fix record |
| Alpine Linux | v3.23 | musl | Fixed | 1.2.5-r23 | Package fix record |
| Alpine Linux | v3.24 | musl | Fixed | 1.2.6-r2 | Package fix record |
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- mitre · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| musl-libc | musl | 0.7.10 through 1.2.6 (affected · semver)Default: unknown | mitre · cna |
Weaknesses
1- CWE-670 CWE-670 Always-Incorrect Control Flow Implementation
References
3Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0b1a56102baec63e915e54ccf120bafabc92bf355e77b2ebd9b4cb2c755da481
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record