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

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.

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

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

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-21 12:20 [Bug localedata/17187] New: Out-of-bounds NUL write in iconv_open fweimer at redhat dot com
2014-07-21 12:20 ` [Bug localedata/17187] " fweimer at redhat dot com
2014-07-29 19:06 ` fweimer at redhat dot com
2014-08-08 10:02 ` fweimer at redhat dot com
2014-08-13  6:11 ` [Bug localedata/17187] Out-of-bounds NUL write in iconv_open (CVE-2014-5119) fweimer at redhat dot com
2014-08-26 18:10 ` cvs-commit at gcc dot gnu.org
2014-08-26 18:10 ` fweimer at redhat dot com
2014-08-28 10:27 ` cvs-commit at gcc dot gnu.org
2014-08-28 11:24 ` cvs-commit at gcc dot gnu.org
2014-08-28 12:04 ` cvs-commit at gcc dot gnu.org
2014-09-05 13:18 ` cvs-commit at gcc dot gnu.org
2014-09-05 13:18 ` cvs-commit at gcc dot gnu.org
2014-09-07 12:23 ` cvs-commit at gcc dot gnu.org
2015-01-16 23:40 ` cvs-commit at gcc dot gnu.org
2015-01-16 23:41 ` cvs-commit at gcc dot gnu.org
2015-01-29 21:35 ` cvs-commit at gcc dot gnu.org
2015-02-23 21:57 ` cvs-commit at gcc dot gnu.org
2015-02-23 21:57 ` 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).