CVE-2026-6042
musl libc GB18030 4-byte Decoder iconv.c iconv algorithmic complexity
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.8
musl libc GB18030 4-byte Decoder iconv.c iconv algorithmic complexity
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.
- Record
CVE-2026-6042- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C - CVSS 3.0
- 3.3 Low
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C - CVSS 2.0
- 1.7
AV:L/AC:L/Au:S/C:N/I:N/A:P/E:ND/RL:OF/RC:C - Weakness
- CWE-407, CWE-404
- Updated
- 2026-11-02
EUVDEUVD-2026-21354
4.8
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.
- Record
EUVD-2026-21354- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-2qh3-3rmv-x43w
4.8
A security flaw has been discovered in musl libc up to 1.2.6. Affected is the function iconv of...
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.
- Record
GHSA-2qh3-3rmv-x43w- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-404
- Updated
- 2026-11-02
NVD
4.8
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.
- Record
CVE-2026-6042- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - CVSS 2.0
- 1.7 Low
AV:L/AC:L/Au:S/C:N/I:N/A:P - Weakness
- CWE-404, CWE-407
- Updated
- 2026-11-02
OSVALPINE-CVE-2026-6042
4.8
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.
- Record
ALPINE-CVE-2026-6042- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Updated
- 2026-11-02
OSVBELL-CVE-2026-6042
3.3
- Record
BELL-CVE-2026-6042- CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2026-6042
4.8
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.
- Record
DEBIAN-CVE-2026-6042- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - 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-317-CVE-2026-6042
5.5
CVE-2026-6042 in musl - Patched by Root
Root has patched CVE-2026-6042 in the musl package for Root:Alpine:3.17. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-317-CVE-2026-6042- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-6042
4.8
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.
- Record
UBUNTU-CVE-2026-6042- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - 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-r2 | 1.2.5-r2 |
muslAlpine:v3.21 |
before 1.2.5-r10 | 1.2.5-r10 |
muslAlpine:v3.22 |
before 1.2.5-r11 | 1.2.5-r11 |
muslAlpine:v3.23 |
before 1.2.5-r22 | 1.2.5-r22 |
muslAlpine:v3.24 |
before 1.2.6-r1 | 1.2.6-r1 |
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 27 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.17 |
before 1.2.3-r60072 | 1.2.3-r600721.2.3-r60073 |
rootio-muslRoot:Alpine:3.17 |
before 1.2.3-r60072 | 1.2.3-r600721.2.3-r60073 |
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 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | jensnesten/CVE-2026-6042-PoC | 2026-04-14 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-6042 is a medium vulnerability (CVSS 4.8) in Musl Libc, published April 10, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.24%, the 14th percentile. Fixed in musl 1.2.4_git20230717-r6.
References
vuldb.com/vuln/356620
vuldb.com/vuln/356620/cti
vuldb.com/submit/796352
openwall.com/lists/oss-security/2026/04/02/10
openwall.com/lists/oss-security/2026/04/03/2
openwall.com/lists/oss-security/2026/04/09/19
Show 13 moreShow less
nvd.nist.gov/vuln/detail/CVE-2026-6042
github.com/advisories/GHSA-2qh3-3rmv-x43w
security.alpinelinux.org/vuln/CVE-2026-6042
docs.bell-sw.com/security/cves/CVE-2026-6042
security-tracker.debian.org/tracker/CVE-2026-6042
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-1927
nvd.nist.gov/vuln/detail/CVE-2026-40200
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-6042
cve.org/CVERecord?id=CVE-2026-6042