cve.bz

CVE-2026-6042 musl libc: Improper Resource Shutdown or Release

4.8 mediumEPSS 0.2%

Medium (4.8) in musl libc. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 15th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-04-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-404 Improper Resource Shutdown or Release
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-6042 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-6042?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-6042?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-6042 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
musl libc1.2.0
musl libc1.2.1
musl libc1.2.2
musl libc1.2.3
musl libc1.2.4
musl libc1.2.5
musl libc1.2.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12muslno fix listedDEBIAN-CVE-2026-6042
Debian13musl1.2.5-3.1~deb13u1DEBIAN-CVE-2026-6042
Debian14musl1.2.5-3.1DEBIAN-CVE-2026-6042
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 6 moremuslno fix listedUBUNTU-CVE-2026-6042
Alpinev3.19musl1.2.4_git20230717-r6ALPINE-CVE-2026-6042
Alpinev3.20musl1.2.5-r2ALPINE-CVE-2026-6042
Alpinev3.21musl1.2.5-r10ALPINE-CVE-2026-6042
Alpinev3.22musl1.2.5-r11ALPINE-CVE-2026-6042
Alpinev3.23musl1.2.5-r22ALPINE-CVE-2026-6042
Alpinev3.24musl1.2.6-r1ALPINE-CVE-2026-6042
Alpaquita23musl-default1.2.4-r14BELL-CVE-2026-6042
Alpaquita23musl-perf1.2.4-r10BELL-CVE-2026-6042
Alpaquita25musl-default1.2.5-r15BELL-CVE-2026-6042
Alpaquita25musl-perf1.2.5-r16BELL-CVE-2026-6042
Alpaquitastreammusl-perf, musl-default1.2.6-r2BELL-CVE-2026-6042
BellSoft Hardened Containers23musl-default1.2.4-r14BELL-CVE-2026-6042
BellSoft Hardened Containers23musl-perf1.2.4-r10BELL-CVE-2026-6042
BellSoft Hardened Containers25musl-default1.2.5-r15BELL-CVE-2026-6042
BellSoft Hardened Containers25musl-perf1.2.5-r16BELL-CVE-2026-6042
BellSoft Hardened Containersstreammusl-perf, musl-default1.2.6-r2BELL-CVE-2026-6042

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A MODERATE flaw in musl libc's `iconv` function, specifically within the GB18030 4-byte Decoder, allows a local attacker to trigger a Denial of Service. This vulnerability arises from inefficient algorithmic complexity when processing specific manipulations. Red Hat Enterprise Linux does not use musl libc as its default C library, limiting direct impact to environments or applications that explicitly utilize musl libc.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-6042.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • jensnesten/CVE-2026-6042-PoC Harbor Check: matches CVE 0 stars, C, created
    Proof of concept and end-to-end test of Algorithmic Complexity DoS in musl libc 0.8.0-1.2.6 assigned CVE-2026-6042

Attack patterns (CAPEC)

  • CAPEC-125 Flooding Likelihood: High · Severity: Medium
  • CAPEC-130 Excessive Allocation Likelihood: Medium · Severity: Medium
  • CAPEC-131 Resource Leak Exposure Likelihood: Medium · Severity: Medium
  • CAPEC-494 TCP Fragmentation
  • CAPEC-495 UDP Fragmentation
  • CAPEC-496 ICMP Fragmentation
  • CAPEC-666 BlueSmacking Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON