Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40200: CWE-670 Always-Incorrect Control Flow Implementation in musl-libc musl

0
High
VulnerabilityCVE-2026-40200cvecve-2026-40200cwe-670
Published: Fri Apr 10 2026 (04/10/2026, 00:00:00 UTC)
Source: CVE Database V5
Vendor/Project: musl-libc
Product: 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

AILast updated: 04/10/2026, 17:50:46 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses