CVE-2026-40200: CWE-670 Always-Incorrect Control Flow Implementation in musl-libc musl
CVE-2026-40200 is a high-severity vulnerability in musl libc versions 0. 7. 10 through 1. 2. 6. It involves stack-based memory corruption triggered during the qsort operation on very large arrays due to incorrectly implemented double-word primitives. The issue requires sorting arrays exceeding about seven million elements on 32-bit platforms, or an impractically large number on 64-bit platforms. No official patch or remediation level has been provided yet, and no known exploits are reported in the wild.
AI Analysis
Technical Summary
This vulnerability in musl libc affects versions 0.7.10 through 1.2.6 and arises from an incorrect control flow implementation (CWE-670) in the qsort function. Specifically, stack-based memory corruption can occur when sorting very large arrays (exceeding approximately seven million elements on 32-bit systems) due to mishandling of double-word primitives. The vulnerability has a CVSS 3.1 score of 8.1, indicating high severity, with attack vector local, high attack complexity, no privileges required, no user interaction, and impacts on confidentiality, integrity, and availability. No patch or official remediation guidance is currently available.
Potential Impact
Successful exploitation can lead to stack-based memory corruption, potentially causing arbitrary code execution or denial of service. However, exploitation requires sorting extremely large arrays, which may limit practical attack scenarios. The vulnerability impacts confidentiality, integrity, and availability as per the CVSS vector. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid sorting extremely large arrays with affected musl libc versions or consider using alternative libraries or implementations for such operations.
CVE-2026-40200: CWE-670 Always-Incorrect Control Flow Implementation in musl-libc musl
Description
CVE-2026-40200 is a high-severity vulnerability in musl libc versions 0. 7. 10 through 1. 2. 6. It involves stack-based memory corruption triggered during the qsort operation on very large arrays due to incorrectly implemented double-word primitives. The issue requires sorting arrays exceeding about seven million elements on 32-bit platforms, or an impractically large number on 64-bit platforms. No official patch or remediation level has been provided yet, and no known exploits are reported in the wild.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in musl libc affects versions 0.7.10 through 1.2.6 and arises from an incorrect control flow implementation (CWE-670) in the qsort function. Specifically, stack-based memory corruption can occur when sorting very large arrays (exceeding approximately seven million elements on 32-bit systems) due to mishandling of double-word primitives. The vulnerability has a CVSS 3.1 score of 8.1, indicating high severity, with attack vector local, high attack complexity, no privileges required, no user interaction, and impacts on confidentiality, integrity, and availability. No patch or official remediation guidance is currently available.
Potential Impact
Successful exploitation can lead to stack-based memory corruption, potentially causing arbitrary code execution or denial of service. However, exploitation requires sorting extremely large arrays, which may limit practical attack scenarios. The vulnerability impacts confidentiality, integrity, and availability as per the CVSS vector. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid sorting extremely large arrays with affected musl libc versions or consider using alternative libraries or implementations for such operations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-04-10T00:00:00.000Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d934f31cc7ad14dad772cf
Added to database: 4/10/2026, 5:35:47 PM
Last enriched: 4/10/2026, 5:50:46 PM
Last updated: 4/10/2026, 6:39:55 PM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.