public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/28524] Conversion from ISO-2022-JP-3 with iconv may emit spurious NUL character on state reset
Date: Mon, 08 Nov 2021 17:54:16 +0000	[thread overview]
Message-ID: <bug-28524-131-pAPwzJOkvL@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28524-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=28524

--- Comment #6 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Nikita Popov from comment #4)
> "the bug cannot be invoked through user input and requires iconv to be
> invoked with NULL inbuf"
> I never claimed opposite. I mentioned "certain use patterns" where reset
> operation on iconv state should ensue. But, considering the importance of
> the GLIBC project, I believe the issue in question is worth fixing.

Just to provide some context: We are trying to explain here why this isn't a
*security* bug (it has been flagged as a security issue elsewhere, presumably
by accident because it was a regression introduced by a security fix). Of
course it's a bug, and thank you for reporting and fixing it!

Without concrete evidence of application impact, I think this bug is just glibc
computing an incorrect result. Any bug could theoretically introduce an
application vulnerability, but we have to draw a line somewhere because
otherwise the distinction between security and non-security bugs becomes
meaningless.

As far as I understand it, this issue can only occur if the input sequence does
not return to the initial shift state, which is already partially corrupted. 
Otherwise there isn't any work left to do for the do_flush case in
iconv/skeleton.c, and the bug does not materialize at all.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-11-08 17:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-01 17:48 [Bug libc/28524] New: " npv1310 at gmail dot com
2021-11-02 10:13 ` [Bug libc/28524] " fweimer at redhat dot com
2021-11-04  5:18 ` npv1310 at gmail dot com
2021-11-04 19:32 ` fweimer at redhat dot com
2021-11-05 21:32 ` sam at gentoo dot org
2021-11-08 16:30 ` siddhesh at sourceware dot org
2021-11-08 17:24 ` npv1310 at gmail dot com
2021-11-08 17:37 ` siddhesh at sourceware dot org
2021-11-08 17:54 ` fweimer at redhat dot com [this message]
2023-05-22 19:01 ` bruno at clisp dot org
2023-05-22 19:04 ` bruno at clisp dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28524-131-pAPwzJOkvL@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).