Logo
vulnerabilityCVE-2026-40200
Name
CVE-2026-40200
Source
NVD ( link)Debian ( link)
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).
Published Date
Updated Date
Workaround
-
Advisories

Analysis#


Affected Component
Analysis
musl
Patched

Vulnerability Ratings#


8.1
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
1.2.6
Patched
yocto
kirkstone
1.2.3+gitX
Not Affected
yocto
master
1.2.6+git
Not Affected
yocto
scarthgap
1.2.4+git
Not Affected

Resolved with patches#


musl (buildroot:2025.02.x)

#
Title
Author
Resolve
1
qsort: fix leonardo heap corruption from bug in doubleword
Rich Felker <dalias@aerifal.cx>
CVE-2026-40200
2
qsort: hard-preclude oob array writes independent of any
Rich Felker <dalias@aerifal.cx>
CVE-2026-40200
3
qsort: fix shift UB in shl and shr
Luca Kellermann <mailto.luca.kellermann@gmail.com>
CVE-2026-40200

musl (buildroot:master)

#
Title
Author
Resolve
1
qsort: fix leonardo heap corruption from bug in doubleword
Rich Felker <dalias@aerifal.cx>
CVE-2026-40200
2
qsort: hard-preclude oob array writes independent of any
Rich Felker <dalias@aerifal.cx>
CVE-2026-40200
3
qsort: fix shift UB in shl and shr
Luca Kellermann <mailto.luca.kellermann@gmail.com>
CVE-2026-40200