A security advisory disclosed an algorithmic complexity denial-of-service flaw in musl libc's iconv() GB18030 4-byte decoder that can drive extreme CPU consumption with specially crafted input. The bug is caused by a gap-skipping loop that repeatedly performs a linear scan of the 23,940-entry gb18030126 lookup table, allowing a single malicious 4-byte sequence to take about 260 milliseconds to decode instead of roughly 13 microseconds for a benign character, a slowdown of about 19,000x.
The issue affects musl versions 0.8.0 through 1.2.6 and can be exploited remotely against network services that rely on iconv() for character-set conversion; the advisory said a crafted 40 kB payload can take approximately 43 minutes to process. The vulnerability was reported by Jens Jarl Nestén Hansen-Nord and confirmed by musl maintainer Rich Felker, who noted that a patch circulated in the mailing list was only a proposal for testing and not the final fix; a CVE had been requested but was still pending assignment.

See affected versions and whether adversaries are exploiting it.
4 events from the most recent confirmed update back to the earliest known activity.
The musl libc algorithmic complexity denial-of-service vulnerability in the iconv() GB18030 decoder was assigned CVE-2026-6042. The oss-sec follow-up tied the previously disclosed and fixed issue to the new CVE identifier.
An oss-sec advisory publicly disclosed the musl libc GB18030 decoder denial-of-service issue, including performance impact details such as roughly 260 ms to decode a malicious 4-byte sequence versus about 13 microseconds for a benign one, and about 43 minutes to process a 40 kB crafted payload. The advisory noted the issue could be exploited remotely against network services using musl's iconv() for character encoding conversion.
Musl maintainer Rich Felker confirmed the vulnerability and fixed it, while noting in the mailing list thread that one posted patch was only a proposal for testing and not the final correct fix. A CVE had been requested but was still pending assignment at the time of disclosure.
Jens Jarl Nestén Hansen-Nord reported an algorithmic complexity denial-of-service vulnerability in musl libc's iconv() GB18030 4-byte decoder affecting versions 0.8.0 through 1.2.6. The flaw allows specially crafted input to trigger repeated linear scans of the gb18030126 lookup table, causing extreme CPU consumption.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
4 references tracked. Mallory keeps watching after this page renders.
seclists.org
Open sourceseclists.org
Open sourceseclists.org
Open sourceseclists.org
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.