CVE-2026-40200

Name
CVE-2026-40200
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).
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
cve@mitre.org https://musl.libc.org/releases.html
cve@mitre.org https://www.openwall.com/lists/oss-security/2026/04/10/13
af854a3a-2127-422b-91ae-364da2661108 http://www.openwall.com/lists/oss-security/2026/04/10/13

Match rules

CPE URI Source package Min version Max version

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
musl edge-main 1.2.6-r2 Natanael Copa <ncopa@alpinelinux.org> fixed
musl 3.23-main 1.2.5-r23 Natanael Copa <ncopa@alpinelinux.org> fixed
musl 3.22-main 1.2.5-r12 Natanael Copa <ncopa@alpinelinux.org> fixed
musl 3.21-main 1.2.5-r11 Natanael Copa <ncopa@alpinelinux.org> fixed
musl 3.20-main 1.2.5-r3 Natanael Copa <ncopa@alpinelinux.org> fixed
musl 3.19-main 1.2.4_git20230717-r6 Timo Teräs <timo.teras@iki.fi> fixed