Bug 668219 - Input to regcomp is not filtered and can cause stack overflow
Summary: Input to regcomp is not filtered and can cause stack overflow
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: grep
Version: rawhide
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ea506271ebbdf30a5ac6a652992...
: 668221 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-09 08:09 UTC by xset1980
Modified: 2011-09-16 09:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-16 09:39:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (162.50 KB, text/plain)
2011-01-09 08:09 UTC, xset1980
no flags Details
Reproducer (201 bytes, text/plain)
2011-01-19 15:34 UTC, Jaroslav Škarvada
no flags Details

Description xset1980 2011-01-09 08:09:27 UTC
abrt version: 1.1.14
architecture: i686
Attached file: backtrace
cmdline: grep -E .*{10,}{10,}{10,}{10,}{10,}
component: grep
crash_function: _int_malloc
executable: /bin/grep
kernel: 2.6.35.10
package: grep-2.6.3-1.fc13
rating: 4
reason: Process /bin/grep was killed by signal 11 (SIGSEGV)
release: Fedora release 13 (Goddard)
time: 1294560435
uid: 500

comment
-----
CVE-2010-4051, CVE-2010-4052

not only affected ubuntu 10.10, Slackware 13, gentoo, FreeBSD 8.1 and netBSD 5.1, too Fedora 13.

How to reproduce
-----
1.Open terminal
2.grep -E ".*{10,}{10,}{10,}{10,}{10,}"
3.Violación de segmento (`core' generado)

Comment 1 xset1980 2011-01-09 08:09:35 UTC
Created attachment 472402 [details]
File: backtrace

Comment 2 Jaroslav Škarvada 2011-01-19 12:16:19 UTC
*** Bug 668221 has been marked as a duplicate of this bug. ***

Comment 3 Jaroslav Škarvada 2011-01-19 15:31:49 UTC
Thanks for reporting.

Comment 4 Jaroslav Škarvada 2011-01-19 15:34:36 UTC
Created attachment 474297 [details]
Reproducer

Comment 5 Jaroslav Škarvada 2011-01-19 15:51:50 UTC
Rassigning to grep according to comments in bug #645859.

Comment 6 xset1980 2011-01-21 09:04:06 UTC
(In reply to comment #3)
> Thanks for reporting.

you are welcome, is a pleasure report a bug and help to fedora team

Comment 7 Bug Zapper 2011-05-30 12:03:50 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 8 xset1980 2011-09-15 10:04:48 UTC
@Jaroslav Škarvada

The bug is persistent in Fedora 15 too.

Comment 9 Jaroslav Škarvada 2011-09-15 15:56:57 UTC
This is not security issue according to bug 645859 comment 6.

CCed Paolo to get his opinion whether this is planned to be fixed in grep upstream.

Comment 10 Paolo Bonzini 2011-09-15 16:06:57 UTC
No.

Comment 11 Jaroslav Škarvada 2011-09-16 09:39:35 UTC
Closing according to comment 9, comment 10.


Note You need to log in before you can comment on or make changes to this bug.