CVE-2026-40200 Details
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).
A stack-based buffer overflow vulnerability has been identified in musl libc versions 0.7.10 prior to 1.2.6. The issue arises in the qsort function when sorting very large arrays, specifically those exceeding approximately seven million elements on 32-bit platforms. This vulnerability is caused by a logic error in the implementation of double-word primitives, which leads to memory corruption by allowing writes past the end of a stack-based buffer. On 64-bit platforms, the vulnerability is not practical as the element threshold for exploitation is excessively high.
Users are advised to upgrade to musl libc version 1.2.7 or apply the available patch.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 10, 2026CISA-ADP
Assessed Apr 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2026/04/10/13 | CVE | |
| https://musl.libc.org/releases.html | [email protected] | AdvisoryBundleRemedyVendor |
| https://www.openwall.com/lists/oss-security/2026/04/10/13 | [email protected] | Mailing ListTechnical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-670 | Always-Incorrect Control Flow Implementation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| musl libc | >= 0.7.10, <= 1.2.6 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 10, 2026 | CVE Modified | CVE |
| Apr 10, 2026 | New CVE Received | [email protected] |
Volerion