Skip to navigation Skip to main content

Utilities

  • Subscriptions
  • Downloads
  • Containers
  • Support Cases
Red Hat Customer Portal
  • Subscriptions
  • Downloads
  • Containers
  • Support Cases
  • Products & Services

    Products

    Support

    • Production Support
    • Development Support
    • Product Life Cycles

    Services

    • Consulting
    • Technical Account Management
    • Training & Certifications

    Documentation

    • Red Hat Enterprise Linux
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenStack Platform
    • Red Hat OpenShift Container Platform
    All Documentation

    Ecosystem Catalog

    • Red Hat Partner Ecosystem
    • Partner Resources
  • Tools

    Tools

    • Troubleshoot a product issue
    • Packages
    • Errata

    Customer Portal Labs

    • Configuration
    • Deployment
    • Security
    • Troubleshoot
    All labs

    Red Hat Insights

    Increase visibility into IT operations to detect and resolve technical issues before they impact your business.

    Learn More
    Go to Insights
  • Security

    Red Hat Product Security Center

    Engage with our Red Hat Product Security team, access security updates, and ensure your environments are not exposed to any known security vulnerabilities.

    Product Security Center

    Security Updates

    • Security Advisories
    • Red Hat CVE Database
    • Security Labs

    Keep your systems secure with Red Hat's specialized responses to security vulnerabilities.

    View Responses

    Resources

    • Security Blog
    • Security Measurement
    • Severity Ratings
    • Backporting Policies
    • Product Signing (GPG) Keys
  • Community

    Customer Portal Community

    • Discussions
    • Private Groups
    Community Activity

    Customer Events

    • Red Hat Convergence
    • Red Hat Summit

    Stories

    • Red Hat Subscription Value
    • You Asked. We Acted.
    • Open Source Communities
Or troubleshoot an issue.

Select Your Language

  • English
  • 한국어
  • 日本語
  • 中文 (中国)

Infrastructure and Management

  • Red Hat Enterprise Linux
  • Red Hat Virtualization
  • Red Hat Identity Management
  • Red Hat Directory Server
  • Red Hat Certificate System
  • Red Hat Satellite
  • Red Hat Subscription Management
  • Red Hat Update Infrastructure
  • Red Hat Insights
  • Red Hat Ansible Automation Platform

Cloud Computing

  • Red Hat OpenShift
  • Red Hat CloudForms
  • Red Hat OpenStack Platform
  • Red Hat OpenShift Container Platform
  • Red Hat OpenShift Data Science
  • Red Hat OpenShift Online
  • Red Hat OpenShift Dedicated
  • Red Hat Advanced Cluster Security for Kubernetes
  • Red Hat Advanced Cluster Management for Kubernetes
  • Red Hat Quay
  • Red Hat CodeReady Workspaces
  • Red Hat OpenShift Service on AWS

Storage

  • Red Hat Gluster Storage
  • Red Hat Hyperconverged Infrastructure
  • Red Hat Ceph Storage
  • Red Hat OpenShift Data Foundation

Runtimes

  • Red Hat Runtimes
  • Red Hat JBoss Enterprise Application Platform
  • Red Hat Data Grid
  • Red Hat JBoss Web Server
  • Red Hat Single Sign On
  • Red Hat support for Spring Boot
  • Red Hat build of Node.js
  • Red Hat build of Thorntail
  • Red Hat build of Eclipse Vert.x
  • Red Hat build of OpenJDK
  • Red Hat build of Quarkus

Integration and Automation

  • Red Hat Integration
  • Red Hat Fuse
  • Red Hat AMQ
  • Red Hat 3scale API Management
  • Red Hat JBoss Data Virtualization
  • Red Hat Process Automation
  • Red Hat Process Automation Manager
  • Red Hat Decision Manager
All Products
Red Hat Product Errata RHSA-2015:1447 - Security Advisory
Issued:
2015-07-22
Updated:
2015-07-22

RHSA-2015:1447 - Security Advisory

  • Overview
  • Updated Packages

Synopsis

Low: grep security, bug fix, and enhancement update

Type/Severity

Security Advisory: Low

Red Hat Insights patch analysis

Identify and remediate systems affected by this advisory.

View affected systems

Topic

Updated grep packages that fix two security issues, several bugs, and add
various enhancements are now available for Red Hat Enterprise Linux 6.

Red Hat Product Security has rated this update as having Low security
impact. Common Vulnerability Scoring System (CVSS) base scores, which give
detailed severity ratings, are available for each vulnerability from the
CVE links in the References section.

Description

The grep utility searches through textual input for lines that contain a
match to a specified pattern and then prints the matching lines. The GNU
grep utilities include grep, egrep, and fgrep.

An integer overflow flaw, leading to a heap-based buffer overflow, was
found in the way grep parsed large lines of data. An attacker able to trick
a user into running grep on a specially crafted data file could use this
flaw to crash grep or, potentially, execute arbitrary code with the
privileges of the user running grep. (CVE-2012-5667)

A heap-based buffer overflow flaw was found in the way grep processed
certain pattern and text combinations. An attacker able to trick a user
into running grep on specially crafted input could use this flaw to crash
grep or, potentially, read from uninitialized memory. (CVE-2015-1345)

The grep packages have been upgraded to upstream version 2.20, which
provides a number of bug fixes and enhancements over the previous version.
Notably, the speed of various operations has been improved significantly.
Now, the recursive grep utility uses the fts function of the gnulib library
for directory traversal, so that it can handle much larger directories
without reporting the "File name too long" error message, and it can
operate faster when dealing with large directory hierarchies. (BZ#982215,
BZ#1064668, BZ#1126757, BZ#1167766, BZ#1171806)

This update also fixes the following bugs:

  • Prior to this update, the \w and \W symbols were inconsistently matched

to the [:alnum:] character class. Consequently, regular expressions that used \w
and \W in some cases had incorrect results. An upstream patch which fixes the
matching problem has been applied, and \w is now matched to the [_[:alnum:]]
character and \W to the [^_[:alnum:]] character consistently. (BZ#799863)

  • Previously, the "--fixed-regexp" command-line option was not included in

the grep(1) manual page. Consequently, the manual page was inconsistent
with the built-in help of the grep utility. To fix this bug, grep(1) has
been updated to include a note informing the user that "--fixed-regexp" is
an obsolete option. Now, the built-in help and manual page are consistent
regarding the "--fixed-regexp" option. (BZ#1103270)

  • Previously, the Perl Compatible Regular Expression (PCRE) library did not

work correctly when matching non-UTF-8 text in UTF-8 mode. Consequently, an
error message about invalid UTF-8 byte sequence characters was returned.
To fix this bug, patches from upstream have been applied to the PCRE
library and the grep utility. As a result, PCRE now skips non-UTF-8
characters as non-matching text without returning any error message.
(BZ#1193030)

All grep users are advised to upgrade to these updated packages, which
correct these issues and add these enhancements.

Solution

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

For details on how to apply this update, refer to:

https://access.redhat.com/articles/11258

Affected Products

  • Red Hat Enterprise Linux Server 6 x86_64
  • Red Hat Enterprise Linux Server 6 i386
  • Red Hat Enterprise Linux Server - Extended Life Cycle Support 6 x86_64
  • Red Hat Enterprise Linux Server - Extended Life Cycle Support 6 i386
  • Red Hat Enterprise Linux Workstation 6 x86_64
  • Red Hat Enterprise Linux Workstation 6 i386
  • Red Hat Enterprise Linux Desktop 6 x86_64
  • Red Hat Enterprise Linux Desktop 6 i386
  • Red Hat Enterprise Linux for IBM z Systems 6 s390x
  • Red Hat Enterprise Linux for Power, big endian 6 ppc64
  • Red Hat Enterprise Linux for Scientific Computing 6 x86_64
  • Red Hat Enterprise Linux Server from RHUI 6 x86_64
  • Red Hat Enterprise Linux Server from RHUI 6 i386
  • Red Hat Enterprise Linux Server - Extended Life Cycle Support (for IBM z Systems) 6 s390x

Fixes

  • BZ - 799863 - inconsistent \w and [[:alnum:]] behaviour
  • BZ - 889935 - CVE-2012-5667 grep: Integer overflow leading to heap-based buffer-overflow when reading large lines
  • BZ - 982215 - word boundary error near an utf8 character
  • BZ - 1103270 - undocumented option --fixed-regexp
  • BZ - 1167766 - grep Abandons (with core dump in some systems) when invoked with recurse and perl switches
  • BZ - 1171806 - grep matches lowercase when only searching for uppercase range
  • BZ - 1183651 - CVE-2015-1345 grep: heap buffer overrun

CVEs

  • CVE-2015-1345
  • CVE-2012-5667

References

  • https://access.redhat.com/security/updates/classification/#low
Note: More recent versions of these packages may be available. Click a package name for more details.

Red Hat Enterprise Linux Server 6

SRPM
grep-2.20-3.el6.src.rpm SHA-256: 4b8b5872572ac546cca1387e6518504932d4c1c4e601de6c281d42a27933dc9c
x86_64
grep-2.20-3.el6.x86_64.rpm SHA-256: b6db72fa00a92b4c669e99bb04b37f30ed34e1c0cbdab1cd8e13e256b6343c72
grep-debuginfo-2.20-3.el6.x86_64.rpm SHA-256: 123084813564697ffbcc1f8961ee29efaf358d631cb0a709a2151cb24e5e3d81
i386
grep-2.20-3.el6.i686.rpm SHA-256: 0c745ffd598f11e4b3b509261caffd2b76a5865baaa20e170ccf2182a6371c97
grep-debuginfo-2.20-3.el6.i686.rpm SHA-256: 675ac86d24da62ca1fb59afbceb453b3664da90e83e703a0918d1f36720dca1b

Red Hat Enterprise Linux Server - Extended Life Cycle Support 6

SRPM
grep-2.20-3.el6.src.rpm SHA-256: 4b8b5872572ac546cca1387e6518504932d4c1c4e601de6c281d42a27933dc9c
x86_64
grep-2.20-3.el6.x86_64.rpm SHA-256: b6db72fa00a92b4c669e99bb04b37f30ed34e1c0cbdab1cd8e13e256b6343c72
grep-debuginfo-2.20-3.el6.x86_64.rpm SHA-256: 123084813564697ffbcc1f8961ee29efaf358d631cb0a709a2151cb24e5e3d81
i386
grep-2.20-3.el6.i686.rpm SHA-256: 0c745ffd598f11e4b3b509261caffd2b76a5865baaa20e170ccf2182a6371c97
grep-debuginfo-2.20-3.el6.i686.rpm SHA-256: 675ac86d24da62ca1fb59afbceb453b3664da90e83e703a0918d1f36720dca1b

Red Hat Enterprise Linux Workstation 6

SRPM
grep-2.20-3.el6.src.rpm SHA-256: 4b8b5872572ac546cca1387e6518504932d4c1c4e601de6c281d42a27933dc9c
x86_64
grep-2.20-3.el6.x86_64.rpm SHA-256: b6db72fa00a92b4c669e99bb04b37f30ed34e1c0cbdab1cd8e13e256b6343c72
grep-debuginfo-2.20-3.el6.x86_64.rpm SHA-256: 123084813564697ffbcc1f8961ee29efaf358d631cb0a709a2151cb24e5e3d81
i386
grep-2.20-3.el6.i686.rpm SHA-256: 0c745ffd598f11e4b3b509261caffd2b76a5865baaa20e170ccf2182a6371c97
grep-debuginfo-2.20-3.el6.i686.rpm SHA-256: 675ac86d24da62ca1fb59afbceb453b3664da90e83e703a0918d1f36720dca1b

Red Hat Enterprise Linux Desktop 6

SRPM
grep-2.20-3.el6.src.rpm SHA-256: 4b8b5872572ac546cca1387e6518504932d4c1c4e601de6c281d42a27933dc9c
x86_64
grep-2.20-3.el6.x86_64.rpm SHA-256: b6db72fa00a92b4c669e99bb04b37f30ed34e1c0cbdab1cd8e13e256b6343c72
grep-debuginfo-2.20-3.el6.x86_64.rpm SHA-256: 123084813564697ffbcc1f8961ee29efaf358d631cb0a709a2151cb24e5e3d81
i386
grep-2.20-3.el6.i686.rpm SHA-256: 0c745ffd598f11e4b3b509261caffd2b76a5865baaa20e170ccf2182a6371c97
grep-debuginfo-2.20-3.el6.i686.rpm SHA-256: 675ac86d24da62ca1fb59afbceb453b3664da90e83e703a0918d1f36720dca1b

Red Hat Enterprise Linux for IBM z Systems 6

SRPM
grep-2.20-3.el6.src.rpm SHA-256: 4b8b5872572ac546cca1387e6518504932d4c1c4e601de6c281d42a27933dc9c
s390x
grep-2.20-3.el6.s390x.rpm SHA-256: da94fdb76d89991131fc655efb6d43b0a3782b15691359f152265be3312d11c4
grep-debuginfo-2.20-3.el6.s390x.rpm SHA-256: 668374a2c2cc716b7cef06abab5515d9bbb36ad3e456d7974b4b833cad7b6468

Red Hat Enterprise Linux for Power, big endian 6

SRPM
grep-2.20-3.el6.src.rpm SHA-256: 4b8b5872572ac546cca1387e6518504932d4c1c4e601de6c281d42a27933dc9c
ppc64
grep-2.20-3.el6.ppc64.rpm SHA-256: 1d4445d142a434dbd0c5c705b2f0722ccdd3590da8d8a239d3c2055f49588575
grep-debuginfo-2.20-3.el6.ppc64.rpm SHA-256: a233550a41b9549dbaac53b2dbd5f9a862eca7a2b16b4230e304e8cf3072ca5f

Red Hat Enterprise Linux for Scientific Computing 6

SRPM
grep-2.20-3.el6.src.rpm SHA-256: 4b8b5872572ac546cca1387e6518504932d4c1c4e601de6c281d42a27933dc9c
x86_64
grep-2.20-3.el6.x86_64.rpm SHA-256: b6db72fa00a92b4c669e99bb04b37f30ed34e1c0cbdab1cd8e13e256b6343c72
grep-debuginfo-2.20-3.el6.x86_64.rpm SHA-256: 123084813564697ffbcc1f8961ee29efaf358d631cb0a709a2151cb24e5e3d81

Red Hat Enterprise Linux Server from RHUI 6

SRPM
grep-2.20-3.el6.src.rpm SHA-256: 4b8b5872572ac546cca1387e6518504932d4c1c4e601de6c281d42a27933dc9c
x86_64
grep-2.20-3.el6.x86_64.rpm SHA-256: b6db72fa00a92b4c669e99bb04b37f30ed34e1c0cbdab1cd8e13e256b6343c72
grep-debuginfo-2.20-3.el6.x86_64.rpm SHA-256: 123084813564697ffbcc1f8961ee29efaf358d631cb0a709a2151cb24e5e3d81
i386
grep-2.20-3.el6.i686.rpm SHA-256: 0c745ffd598f11e4b3b509261caffd2b76a5865baaa20e170ccf2182a6371c97
grep-debuginfo-2.20-3.el6.i686.rpm SHA-256: 675ac86d24da62ca1fb59afbceb453b3664da90e83e703a0918d1f36720dca1b

Red Hat Enterprise Linux Server - Extended Life Cycle Support (for IBM z Systems) 6

SRPM
grep-2.20-3.el6.src.rpm SHA-256: 4b8b5872572ac546cca1387e6518504932d4c1c4e601de6c281d42a27933dc9c
s390x
grep-2.20-3.el6.s390x.rpm SHA-256: da94fdb76d89991131fc655efb6d43b0a3782b15691359f152265be3312d11c4
grep-debuginfo-2.20-3.el6.s390x.rpm SHA-256: 668374a2c2cc716b7cef06abab5515d9bbb36ad3e456d7974b4b833cad7b6468

The Red Hat security contact is secalert@redhat.com. More contact details at https://access.redhat.com/security/team/contact/.

Red Hat

Quick Links

  • Downloads
  • Subscriptions
  • Support Cases
  • Customer Service
  • Product Documentation

Help

  • Contact Us
  • Customer Portal FAQ
  • Log-in Assistance

Site Info

  • Trust Red Hat
  • Browser Support Policy
  • Accessibility
  • Awards and Recognition
  • Colophon

Related Sites

  • redhat.com
  • developers.redhat.com
  • connect.redhat.com
  • cloud.redhat.com

About

  • Red Hat Subscription Value
  • About Red Hat
  • Red Hat Jobs
Copyright © 2022 Red Hat, Inc.
  • Privacy Statement
  • Customer Portal Terms of Use
  • All Policies and Guidelines
Red Hat Summit
Twitter