grep 2.22 infinite loop

Bug #1526548 reported by Seth Arnold
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grep (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Christian Boltz discovered that grep 2.22 can be sent into an infinite loop. 2.21 does not have this issue. The reproducer we have available so far:

grep -obUa -P '\x04\x08\x00profile\x00\x07' /etc/apparmor.d/cache/*

Probably one of the files in that directory will report infinite output in the style of:

# grep -obUa -P '\x04\x08\x00profile\x00\x07' cache--usr.sbin.smbldap-useradd
16profile
27801profile
27801profile
27801profile
27801profile
27801profile
...

Thanks

Revision history for this message
Seth Arnold (seth-arnold) wrote :
Revision history for this message
Seth Arnold (seth-arnold) wrote :
tags: added: block-proposed
Revision history for this message
Matthias Klose (doko) wrote :

fix included in -1ubuntu1

tags: removed: block-proposed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grep - 2.22-1ubuntu2

---------------
grep (2.22-1ubuntu2) xenial; urgency=medium

  * Mark tests/long-pattern-perf as expensive, instead of lowering the
    build options (patch taken from upstream).

 -- Matthias Klose <email address hidden> Wed, 10 Feb 2016 17:22:07 +0100

Changed in grep (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.