From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35224 invoked by alias); 19 Mar 2015 14:53:12 -0000 Mailing-List: contact glibc-bugs-regex-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sourceware.org Received: (qmail 35072 invoked by uid 48); 19 Mar 2015 14:53:08 -0000 From: "fweimer at redhat dot com" To: glibc-bugs-regex@sourceware.org Subject: [Bug regex/18040] use-after-free in regexec/get_subexp Date: Thu, 19 Mar 2015 14:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: regex X-Bugzilla-Version: 2.21 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: cc Message-ID: In-Reply-To: References: 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: 2015-03/txt/msg00004.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D18040 Florian Weimer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fweimer at redhat dot com --- Comment #1 from Florian Weimer --- Is it possible to trigger this without REG_EXTENDED and a back reference? (=E2=80=9C\1=E2=80=9D in an ERE makes behavior undefined according to POSIX= .) --=20 You are receiving this mail because: You are on the CC list for the bug. >>From glibc-bugs-regex-return-677-listarch-glibc-bugs-regex=sources.redhat.com@sourceware.org Thu Mar 19 15:54:32 2015 Return-Path: Delivered-To: listarch-glibc-bugs-regex@sources.redhat.com Received: (qmail 125860 invoked by alias); 19 Mar 2015 15:54:32 -0000 Mailing-List: contact glibc-bugs-regex-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sourceware.org Delivered-To: mailing list glibc-bugs-regex@sourceware.org Received: (qmail 125795 invoked by uid 48); 19 Mar 2015 15:54:24 -0000 From: "konstantin.s.serebryany at gmail dot com" To: glibc-bugs-regex@sourceware.org Subject: [Bug regex/18040] use-after-free in regexec/get_subexp Date: Thu, 19 Mar 2015 15:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: regex X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: konstantin.s.serebryany at gmail 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: Message-ID: In-Reply-To: References: 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: 2015-03/txt/msg00005.txt.bz2 Content-length: 525 https://sourceware.org/bugzilla/show_bug.cgi?id=3D18040 --- Comment #2 from Kostya Serebryany --- (In reply to Florian Weimer from comment #1) > Is it possible to trigger this without REG_EXTENDED and a back reference? >=20 > (=E2=80=9C\1=E2=80=9D in an ERE makes behavior undefined according to POS= IX.) I don't think I've seen this w/o REG_EXTENDED, but let me re-run the fuzzer with cflags=3D0 --=20 You are receiving this mail because: You are on the CC list for the bug. >>From glibc-bugs-regex-return-678-listarch-glibc-bugs-regex=sources.redhat.com@sourceware.org Thu Mar 19 16:17:25 2015 Return-Path: Delivered-To: listarch-glibc-bugs-regex@sources.redhat.com Received: (qmail 48904 invoked by alias); 19 Mar 2015 16:17:25 -0000 Mailing-List: contact glibc-bugs-regex-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sourceware.org Delivered-To: mailing list glibc-bugs-regex@sourceware.org Received: (qmail 48700 invoked by uid 48); 19 Mar 2015 16:17:21 -0000 From: "konstantin.s.serebryany at gmail dot com" To: glibc-bugs-regex@sourceware.org Subject: [Bug regex/18037] infinite recursion (stack overflow) in regexec.c (sift_states_bkref->sift_states_backward->update_cur_sifted_state) Date: Thu, 19 Mar 2015 16:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: regex X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: konstantin.s.serebryany at gmail 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: 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: 2015-03/txt/msg00006.txt.bz2 Content-length: 385 https://sourceware.org/bugzilla/show_bug.cgi?id=18037 --- Comment #1 from Kostya Serebryany --- Happens also without REG_EXTENDED: #include int main() { regex_t r; if (!regcomp(&r, "^9*\\(\\)\\1\\+\\+", 0)) regexec(&r, "foo.*bar", 0, 0, 0); } -- You are receiving this mail because: You are on the CC list for the bug.