public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug localedata/17187] New: Out-of-bounds NUL write in iconv_open
@ 2014-07-21 11:43 fweimer at redhat dot com
  2014-07-29 18:53 ` [Bug localedata/17187] " fweimer at redhat dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: fweimer at redhat dot com @ 2014-07-21 11:43 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 17187
           Summary: Out-of-bounds NUL write in iconv_open
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
                CC: libc-locales at sourceware dot org
             Flags: security?

Tavis Ormandy reported that iconv_open mishandles // transliteration
specifiers:

http://www.openwall.com/lists/oss-security/2014/07/14/1

The cause is in __gconv_translit_find:

          cp = __mempcpy (__stpcpy ((char *) newp->fname, runp->name),
                  trans->name, name_len);
          if (need_so)
        memcpy (cp, ".so", sizeof (".so"));

cp points *after* the NUL terminator, so the memcpy call does not actually
append ".so", but copies four bytes starting after the terminating NUL
character, not changing the string at all—and writing a single NUL byte after
the end of the buffer.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-25871-listarch-glibc-bugs=sources.redhat.com@sourceware.org Mon Jul 21 12:18:22 2014
Return-Path: <glibc-bugs-return-25871-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 2634 invoked by alias); 21 Jul 2014 12:18:22 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 2561 invoked by uid 48); 21 Jul 2014 12:18:17 -0000
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug localedata/17187] Out-of-bounds NUL write in iconv_open
Date: Mon, 21 Jul 2014 12:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: localedata
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fweimer at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: fweimer at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags: security?
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-17187-131-ULa1fqk3cv@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-17187-131@http.sourceware.org/bugzilla/>
References: <bug-17187-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-07/txt/msg00654.txt.bz2
Content-length: 401

https://sourceware.org/bugzilla/show_bug.cgi?id\x17187

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-02-23 15:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-21 11:43 [Bug localedata/17187] New: Out-of-bounds NUL write in iconv_open fweimer at redhat dot com
2014-07-29 18:53 ` [Bug localedata/17187] " fweimer at redhat dot com
2014-08-08  9:59 ` fweimer at redhat dot com
2014-08-13  6:10 ` [Bug localedata/17187] Out-of-bounds NUL write in iconv_open (CVE-2014-5119) fweimer at redhat dot com
2014-08-26 18:08 ` cvs-commit at gcc dot gnu.org
2014-08-26 18:09 ` fweimer at redhat dot com
2015-01-16 16:59 ` cvs-commit at gcc dot gnu.org
2015-01-16 17:02 ` cvs-commit at gcc dot gnu.org
2015-01-29 18:50 ` cvs-commit at gcc dot gnu.org
2015-02-23 14:23 ` cvs-commit at gcc dot gnu.org
2015-02-23 15:02 ` cvs-commit at gcc dot gnu.org

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).