CVE-2026-40200
An issue was discovered in musl libc 0.7.10 through 1.2.6. Stack-based memory corruption can...
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).
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.1
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).
- Record
CVE-2026-40200- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-670
- Updated
- 2026-11-02
EUVDEUVD-2026-21496
8.1
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).
- Record
EUVD-2026-21496- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-qrwv-475h-2439
8.1
An issue was discovered in musl libc 0.7.10 through 1.2.6. Stack-based memory corruption can...
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).
- Record
GHSA-qrwv-475h-2439- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-670
- Updated
- 2026-11-02
NVD
8.1
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).
- Record
CVE-2026-40200- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-670
- Updated
- 2026-11-02
OSVALPINE-CVE-2026-40200
8.1
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).
- Record
ALPINE-CVE-2026-40200- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2026-40200
8.1
- Record
BELL-CVE-2026-40200- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
Show 10 moreShow less
OSVDEBIAN-CVE-2026-40200
8.1
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).
- Record
DEBIAN-CVE-2026-40200- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-1927
8.1
musl security update
musl is an implementation of the C standard library built on top of the Linux system call API, including interfaces defined in the base language standard, POSIX, and widely agreed-upon extensions. It is lightweight, fast, simple, free, and strives to be correct in the sense of standards conformance and safety.
Security Fix(es):
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).(CVE-2026-40200)
A security flaw has been discovered in musl libc up to 1.2.6. Affected is the function iconv of the file src/locale/iconv.c of the component GB18030 4-byte Decoder. Performing a manipulation results in inefficient algorithmic complexity. The attack must be initiated from a local position. To fix this issue, it is recommended to deploy a patch.(CVE-2026-6042)
- Record
OESA-2026-1927- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-1928
8.1
musl security update
musl is an implementation of the C standard library built on top of the Linux system call API, including interfaces defined in the base language standard, POSIX, and widely agreed-upon extensions. It is lightweight, fast, simple, free, and strives to be correct in the sense of standards conformance and safety.
Security Fix(es):
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).(CVE-2026-40200)
A security flaw has been discovered in musl libc up to 1.2.6. Affected is the function iconv of the file src/locale/iconv.c of the component GB18030 4-byte Decoder. Performing a manipulation results in inefficient algorithmic complexity. The attack must be initiated from a local position. To fix this issue, it is recommended to deploy a patch.(CVE-2026-6042)
- Record
OESA-2026-1928- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-2087
8.1
musl security update
musl is an implementation of the C standard library built on top of the Linux system call API, including interfaces defined in the base language standard, POSIX, and widely agreed-upon extensions. It is lightweight, fast, simple, free, and strives to be correct in the sense of standards conformance and safety.
Security Fix(es):
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).(CVE-2026-40200)
A security flaw has been discovered in musl libc up to 1.2.6. Affected is the function iconv of the file src/locale/iconv.c of the component GB18030 4-byte Decoder. Performing a manipulation results in inefficient algorithmic complexity. The attack must be initiated from a local position. To fix this issue, it is recommended to deploy a patch.(CVE-2026-6042)
- Record
OESA-2026-2087- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-2088
8.1
musl security update
musl is an implementation of the C standard library built on top of the Linux system call API, including interfaces defined in the base language standard, POSIX, and widely agreed-upon extensions. It is lightweight, fast, simple, free, and strives to be correct in the sense of standards conformance and safety.
Security Fix(es):
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).(CVE-2026-40200)
A security flaw has been discovered in musl libc up to 1.2.6. Affected is the function iconv of the file src/locale/iconv.c of the component GB18030 4-byte Decoder. Performing a manipulation results in inefficient algorithmic complexity. The attack must be initiated from a local position. To fix this issue, it is recommended to deploy a patch.(CVE-2026-6042)
- Record
OESA-2026-2088- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-2178
8.1
musl security update
musl is an implementation of the C standard library built on top of the Linux system call API, including interfaces defined in the base language standard, POSIX, and widely agreed-upon extensions. It is lightweight, fast, simple, free, and strives to be correct in the sense of standards conformance and safety.
Security Fix(es):
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).(CVE-2026-40200)
A security flaw has been discovered in musl libc up to 1.2.6. Affected is the function iconv of the file src/locale/iconv.c of the component GB18030 4-byte Decoder. Performing a manipulation results in inefficient algorithmic complexity. The attack must be initiated from a local position. To fix this issue, it is recommended to deploy a patch.(CVE-2026-6042)
- Record
OESA-2026-2178- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVROOT-OS-ALPINE-315-CVE-2026-40200
7.8
CVE-2026-40200 in musl - Patched by Root
Root has patched CVE-2026-40200 in the musl package for Root:Alpine:3.15. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-315-CVE-2026-40200- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVROOT-OS-ALPINE-317-CVE-2026-40200
7.8
CVE-2026-40200 in musl - Patched by Root
Root has patched CVE-2026-40200 in the musl package for Root:Alpine:3.17. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-317-CVE-2026-40200- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVROOT-OS-ALPINE-318-CVE-2026-40200
7.8
CVE-2026-40200 in musl - Patched by Root
Root has patched CVE-2026-40200 in the musl package for Root:Alpine:3.18. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-318-CVE-2026-40200- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-40200
8.1
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).
- Record
UBUNTU-CVE-2026-40200- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
muslAlpine:v3.19 |
before 1.2.4_git20230717-r6 | 1.2.4_git20230717-r6 |
muslAlpine:v3.20 |
before 1.2.5-r3 | 1.2.5-r3 |
muslAlpine:v3.21 |
before 1.2.5-r11 | 1.2.5-r11 |
muslAlpine:v3.22 |
before 1.2.5-r12 | 1.2.5-r12 |
muslAlpine:v3.23 |
before 1.2.5-r23 | 1.2.5-r23 |
muslAlpine:v3.24 |
before 1.2.6-r2 | 1.2.6-r2 |
musl-defaultAlpaquita:23 |
1.2.3-r11 up to 1.2.4-r14 | 1.2.4-r14 |
musl-perfAlpaquita:23 |
1.2.3-r12 up to 1.2.4-r10 | 1.2.4-r10 |
musl-defaultAlpaquita:25 |
1.2.5-r12 up to 1.2.5-r15 | 1.2.5-r15 |
musl-perfAlpaquita:25 |
1.2.5-r11 up to 1.2.5-r16 | 1.2.5-r16 |
Show 31 moreShow less
| Package | Affected | Fixed |
|---|---|---|
musl-defaultAlpaquita:stream |
1.2.4-r0 up to 1.2.6-r2 | 1.2.6-r2 |
musl-perfAlpaquita:stream |
1.2.4-r1 up to 1.2.6-r2 | 1.2.6-r2 |
musl-defaultBellSoft Hardened Containers:23 |
1.2.3-r11 up to 1.2.4-r14 | 1.2.4-r14 |
musl-perfBellSoft Hardened Containers:23 |
1.2.3-r12 up to 1.2.4-r10 | 1.2.4-r10 |
musl-defaultBellSoft Hardened Containers:25 |
1.2.5-r12 up to 1.2.5-r15 | 1.2.5-r15 |
musl-perfBellSoft Hardened Containers:25 |
1.2.5-r11 up to 1.2.5-r16 | 1.2.5-r16 |
musl-defaultBellSoft Hardened Containers:stream |
1.2.4-r0 up to 1.2.6-r2 | 1.2.6-r2 |
musl-perfBellSoft Hardened Containers:stream |
1.2.4-r1 up to 1.2.6-r2 | 1.2.6-r2 |
muslDebian:12 |
All versions, plus listed versions 1.2.3-11.2.4-11.2.4-21.2.5-11.2.5-1.1 Show 5 moreShow less1.2.5-21.2.5-31.2.5-3.11.2.5-3.1~deb13u11.2.6-1 |
None known |
muslDebian:13 |
before 1.2.5-3.1~deb13u1, plus listed versions 1.2.5-3 |
1.2.5-3.1~deb13u1 |
muslDebian:14 |
before 1.2.5-3.1, plus listed versions 1.2.5-31.2.5-3.1~deb13u1 |
1.2.5-3.1 |
muslopenEuler:24.03-LTS-SP2 From an advisory covering 2 CVEs |
before 1.2.4-6.oe2403sp2 | 1.2.4-6.oe2403sp2 |
muslopenEuler:24.03-LTS-SP3 From an advisory covering 2 CVEs |
before 1.2.4-6.oe2403sp3 | 1.2.4-6.oe2403sp3 |
muslopenEuler:24.03-LTS From an advisory covering 2 CVEs |
before 1.2.4-6.oe2403 | 1.2.4-6.oe2403 |
muslopenEuler:24.03-LTS-SP1 From an advisory covering 2 CVEs |
before 1.2.4-6.oe2403sp1 | 1.2.4-6.oe2403sp1 |
muslopenEuler:22.03-LTS-SP4 From an advisory covering 2 CVEs |
before 1.2.3-4.oe2203sp4 | 1.2.3-4.oe2203sp4 |
muslRoot:Alpine:3.15 |
before 1.2.2-r90071 | 1.2.2-r900711.2.2-r90072 |
rootio-muslRoot:Alpine:3.15 |
before 1.2.2-r90071 | 1.2.2-r900711.2.2-r90072 |
muslRoot:Alpine:3.17 |
before 1.2.3-r50071 | 1.2.3-r500711.2.3-r600721.2.3-r60073 |
rootio-muslRoot:Alpine:3.17 |
before 1.2.3-r50071 | 1.2.3-r500711.2.3-r600721.2.3-r60073 |
muslRoot:Alpine:3.18 |
before 1.2.4-r30071 | 1.2.4-r300711.2.4-r30072 |
rootio-muslRoot:Alpine:3.18 |
before 1.2.4-r30071 | 1.2.4-r300711.2.4-r30072 |
muslUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 0.9.14-20.9.14-2ubuntu10.9.15-10.9.15-1ubuntu0.1~esm10.9.15-1ubuntu0.1~esm2 |
None known |
muslUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 1.1.9-11.1.9-1ubuntu0.1~esm21.1.9-1ubuntu0.1~esm3 |
None known |
muslUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 1.1.16-31.1.18-11.1.19-11.1.19-1ubuntu0.1~esm1 |
None known |
muslUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 1.1.23-2build11.1.24-11.1.24-1ubuntu0.1~esm1 |
None known |
muslUbuntu:22.04:LTS |
All versions, plus listed versions 1.2.2-11.2.2-4 |
None known |
muslUbuntu:24.04:LTS |
All versions, plus listed versions 1.2.3-11.2.4-2 |
None known |
muslUbuntu:25.10 |
All versions, plus listed versions 1.2.5-21.2.5-3 |
None known |
muslUbuntu:26.10 |
All versions, plus listed versions 1.2.5-3build11.2.6-1 |
None known |
muslUbuntu:26.04:LTS |
All versions, plus listed versions 1.2.5-31.2.5-3build1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-40200 is a high vulnerability (CVSS 8.1) in Musl-libc Musl, published April 10, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.16%, the 5th percentile. Fixed in musl 1.2.4_git20230717-r6.
References
musl.libc.org/releases.html
openwall.com/lists/oss-security/2026/04/10/13
nvd.nist.gov/vuln/detail/CVE-2026-40200
github.com/advisories/GHSA-qrwv-475h-2439
security.alpinelinux.org/vuln/CVE-2026-40200
docs.bell-sw.com/security/cves/CVE-2026-40200
Show 9 moreShow less
security-tracker.debian.org/tracker/CVE-2026-40200
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-1927
nvd.nist.gov/vuln/detail/CVE-2026-6042
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-1928
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2087
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2088
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2178
ubuntu.com/security/CVE-2026-40200
cve.org/CVERecord?id=CVE-2026-40200