From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31134 invoked by alias); 21 Jul 2014 11:43:31 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 31047 invoked by uid 48); 21 Jul 2014 11:43:27 -0000 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug localedata/17187] New: Out-of-bounds NUL write in iconv_open Date: Mon, 21 Jul 2014 11:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security? X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg00653.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D17187 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 =3D __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=E2=80=94and writing a single NUL = byte after the end of the buffer. --=20 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: 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: List-Subscribe: List-Post: List-Help: , 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" 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: In-Reply-To: References: 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=17187 Florian Weimer 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.