
CVE catalog
CVE-2026-40200
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
- Severity
- High · CVSS 8.1
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.16% · Oct 25, 2026
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).
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | musl | sid | 1.2.6-1 | fixed |
| Debian | musl | forky | 1.2.6-1 | fixed |
| Debian | musl | trixie | 1.2.5-3.1~deb13u1 | fixed |
| Debian | musl | bookworm | 1.2.3-1 | vulnerable |
| Cpe | musl | Not reported | Not reported | vulnerable |
| Alpine | musl | 3.19 | 1.2.4_git20230717-r6 | fixed |
| Alpine | musl | 3.20 | 1.2.5-r3 | fixed |
| Alpine | musl | 3.21 | 1.2.5-r11 | fixed |
| Alpine | musl | 3.22 | 1.2.5-r12 | fixed |
| Alpine | musl | 3.23 | 1.2.5-r23 | fixed |
| Alpine | musl | 3.24 | 1.2.6-r2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | musl | source | sid | 1.2.5-3.1 | not yet assigned | Not reported | [1133372] |
| Debian | musl | source | forky | 1.2.5-3.1 | not yet assigned | Not reported | [1133372] |
| Debian | musl | source | trixie | 1.2.5-3.1~deb13u1 | not yet assigned | Not reported | [1133372] |
| Debian | musl | source | bookworm | (unfixed) | not yet assigned | Not reported | [1133372] |
| Alpine | musl | apk | 3.19 | 1.2.4_git20230717-r6 | Not reported | ALPINE-CVE-2026-40200 | Not reported |
| Alpine | musl | apk | 3.20 | 1.2.5-r3 | Not reported | ALPINE-CVE-2026-40200 | Not reported |
| Alpine | musl | apk | 3.21 | 1.2.5-r11 | Not reported | ALPINE-CVE-2026-40200 | Not reported |
| Alpine | musl | apk | 3.22 | 1.2.5-r12 | Not reported | ALPINE-CVE-2026-40200 | Not reported |
| Alpine | musl | apk | 3.23 | 1.2.5-r23 | Not reported | ALPINE-CVE-2026-40200 | Not reported |
| Alpine | musl | apk | 3.24 | 1.2.6-r2 | Not reported | ALPINE-CVE-2026-40200 | Not reported |
Notes
[bookworm] musl: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [musl]Affected
Details (2)
1.2.3-1· amd64 · bookwormAffected
nvd · musl · debian · bookworm; nvd · musl · debian · 12
1.2.3-1· arm64 · bookwormAffected
nvd · musl · debian · bookworm; nvd · musl · debian · 12
- [musl-dev]Affected
Source package: [musl]
Details (2)
1.2.3-1· amd64 · bookwormAffected
nvd · musl · debian · bookworm; nvd · musl · debian · 12
1.2.3-1· arm64 · bookwormAffected
nvd · musl · debian · bookworm; nvd · musl · debian · 12
- [musl-tools]Affected
Source package: [musl]
Details (2)
1.2.3-1· amd64 · bookwormAffected
nvd · musl · debian · bookworm; nvd · musl · debian · 12
1.2.3-1· arm64 · bookwormAffected
nvd · musl · debian · bookworm; nvd · musl · debian · 12
[Debian 13 (Trixie)]
- [musl]Fixed
Details (2)
1.2.5-3.1~deb13u1· amd64 · trixieFixed · Fixed:
1.2.5-3.1~deb13u1nvd · musl · debian · 13
1.2.5-3.1~deb13u1· arm64 · trixieFixed · Fixed:
1.2.5-3.1~deb13u1nvd · musl · debian · 13
- [musl-dev]Fixed
Source package: [musl]
Details (2)
1.2.5-3.1~deb13u1· amd64 · trixieFixed · Fixed:
1.2.5-3.1~deb13u1nvd · musl · debian · 13
1.2.5-3.1~deb13u1· arm64 · trixieFixed · Fixed:
1.2.5-3.1~deb13u1nvd · musl · debian · 13
- [musl-tools]Fixed
Source package: [musl]
Details (2)
1.2.5-3.1~deb13u1· amd64 · trixieFixed · Fixed:
1.2.5-3.1~deb13u1nvd · musl · debian · 13
1.2.5-3.1~deb13u1· arm64 · trixieFixed · Fixed:
1.2.5-3.1~deb13u1nvd · musl · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2026-40200]
- [https://osv.dev/vulnerability/ALPINE-CVE-2026-40200]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-40200]
- [https://security-tracker.debian.org/tracker/CVE-2026-40200]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40200.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]