Always-Incorrect Control Flow Implementation Affecting musl package, versions [0.7.10,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-MUSL-16122206
  • published22 Apr 2026
  • disclosed10 Apr 2026
  • creditHankins

Introduced: 10 Apr 2026

CVE-2026-40200  (opens in a new tab)
CWE-670  (opens in a new tab)

How to fix?

There is no fixed version for musl.

Overview

Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation in the qsort() function when processing very large arrays due to incorrectly implemented double-word primitives. An attacker can cause stack-based memory corruption by providing input that results in the number of elements exceeding approximately seven million on 32-bit platforms.

Note:

In the absence of the patched version, vendor provided an official patch for this issue.

CVSS Base Scores

version 4.0
version 3.1