|
|
Message-ID: <20260124015345.GU1827@brightrain.aerifal.cx> Date: Fri, 23 Jan 2026 20:53:47 -0500 From: Rich Felker <dalias@...c.org> To: Richard Howe <rhowe425@...il.com> Cc: musl@...ts.openwall.com Subject: Re: denial-of-service issue in musl’s iconv implementation On Fri, Jan 23, 2026 at 10:17:51AM -0500, Richard Howe wrote: > Hello, > > I am reporting a denial-of-service issue in musl’s iconv implementation. > Summary > > A crafted input passed to iconv() can trigger an internal assertion failure > in gconv(): > > ../iconv/skeleton.c:745: gconv: Assertion `outbuf == outerr' failed > > This causes the process to abort, resulting in a denial of service. > Affected versions > > Tested on musl 1.2.5 (x86_64). > I have not tested earlier versions. > Impact > > This issue allows untrusted input to reliably crash processes using iconv(). > The failure occurs via an internal invariant violation and results in > abort(). > > When musl is rebuilt with assertions disabled (-DNDEBUG), the same input no > longer crashes and does not appear to cause memory corruption, indicating > this is a DoS issue rather than an RCE. > Reproduction > > The issue is reproducible using a simple harness that invokes iconv_open() > and iconv() on attacker‑controlled input. > > Steps: > > 1. > > Build musl normally (assertions enabled). > 2. > > Compile the attached harness against musl. > 3. > > Run the harness with the provided input file. > > The process aborts with the assertion above. > > I am happy to provide: > > - > > the minimal crashing input > - > > the reproduction harness > - > > additional debugging information if needed > > Thank you for your time. It was raised by some folks on our IRC channel that a lot of the above text looks like it may have been machine-generated LLM-slop. In particular, a lot of the statements in it don't seem to apply to musl at all, and the numbered/bulleted lists fit format typical of such slop. If this assessment is correct, for future reference, please do not submit reports of this form. While it hasn't been published anywhere as official policy, our draft "AI policy" is proposed and discussed in this thread: https://www.openwall.com/lists/musl/2024/10/19/3 Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.