Always-Incorrect Control Flow Implementation Affecting musl package, versions <1.2.5-r12


Severity

Recommended
low

Based on default assessment until relevant scores are available.

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-ALPINE322-MUSL-16008606
  • published13 Apr 2026
  • disclosed10 Apr 2026

Introduced: 10 Apr 2026

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

How to fix?

Upgrade Alpine:3.22 musl to version 1.2.5-r12 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream musl package and not the musl package as distributed by Alpine. See How to fix? for Alpine:3.22 relevant fixed versions and status.

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).