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 RHBA-2009:0481 - Bug Fix Advisory
Issued:
2009-05-14
Updated:
2009-09-02

RHBA-2009:0481 - Bug Fix Advisory

  • Overview
  • Updated Packages

Synopsis

grep bug fix update

Type/Severity

Bug Fix Advisory

Red Hat Insights patch analysis

Identify and remediate systems affected by this advisory.

View affected systems

Topic

An updated grep package that fixes various bugs is now available.

Description

Grep searches through textual input for lines matching a regular
expression.

This updated grep package includes fixes for the following bugs:

  • while searching certain immense binary files in which the newline

character did not appear for large expanses (for hundreds of megabytes of
text, for instance), grep may have missed a subsequent match. Because the
grep utility is not intended to process arbitrarily-long files in this
manner, this updated version now exits with a "line too long" error message
and an appropriate error code under these conditions. (BZ#483073)

  • when operating on particular multi-byte character sets (but not, notably,

UTF-8), grep could enter an infinite loop and become unresponsive. This has
been fixed in this updated package so that grep is once again able to
process these multi-byte character sets without hanging. (BZ#479151)

  • certain output control option combinations could cause the grep tool to

segmentation fault. With this updated package, these combinations work as
expected and no longer cause a segmentation fault. (BZ#452127)

  • the example attached to the "--label" option description was not

illustrative enough: as documented, the option actually had no effect. The
updated package contains an improved example that shows the "--label"
option's utility, both in the manual and info pages. (BZ#484366)

All users of grep are advised to upgrade to this updated package, which
resolves these issues.

Solution

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

This update is available via Red Hat Network. Details on how to use
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/docs/DOC-11259

Affected Products

  • Red Hat Enterprise Linux Server 5 x86_64
  • Red Hat Enterprise Linux Server 5 ia64
  • Red Hat Enterprise Linux Server 5 i386
  • Red Hat Enterprise Linux Workstation 5 x86_64
  • Red Hat Enterprise Linux Workstation 5 i386
  • Red Hat Enterprise Linux Desktop 5 x86_64
  • Red Hat Enterprise Linux Desktop 5 i386
  • Red Hat Enterprise Linux for IBM z Systems 5 s390x
  • Red Hat Enterprise Linux for Power, big endian 5 ppc
  • Red Hat Enterprise Linux Server from RHUI 5 x86_64
  • Red Hat Enterprise Linux Server from RHUI 5 i386

Fixes

  • BZ - 452127 - grep segfaults when using -m and -A
  • BZ - 479151 - fgrep uses 100% of cpu when env var LC_ALL=ko_KR.eucKR
  • BZ - 483073 - grep-mem-exhausted.patch introduces regressions
  • BZ - 484366 - manual gives an incomplete example for --label

CVEs

(none)

References

(none)

Note: More recent versions of these packages may be available. Click a package name for more details.

Red Hat Enterprise Linux Server 5

SRPM
grep-2.5.1-55.el5.src.rpm SHA-256: 53099e31d418da8dcda28d39575f2b2bd882bba1159cfd45135fdfbe15c6abe8
x86_64
grep-2.5.1-55.el5.x86_64.rpm SHA-256: 6f97cc22d952f4fb814b8c75555db633e02646ccb79829ed86390b274b782c21
ia64
grep-2.5.1-55.el5.ia64.rpm SHA-256: 2e4eca308a417eae1f7955571ef017d94d28c9bb245a95331418ed40e8beb862
i386
grep-2.5.1-55.el5.i386.rpm SHA-256: a336e1a3e97f4d22357c5bb08ef715a8a0d22577620f4bb0d72b7f7b0ce16e07

Red Hat Enterprise Linux Workstation 5

SRPM
grep-2.5.1-55.el5.src.rpm SHA-256: 53099e31d418da8dcda28d39575f2b2bd882bba1159cfd45135fdfbe15c6abe8
x86_64
grep-2.5.1-55.el5.x86_64.rpm SHA-256: 6f97cc22d952f4fb814b8c75555db633e02646ccb79829ed86390b274b782c21
i386
grep-2.5.1-55.el5.i386.rpm SHA-256: a336e1a3e97f4d22357c5bb08ef715a8a0d22577620f4bb0d72b7f7b0ce16e07

Red Hat Enterprise Linux Desktop 5

SRPM
grep-2.5.1-55.el5.src.rpm SHA-256: 53099e31d418da8dcda28d39575f2b2bd882bba1159cfd45135fdfbe15c6abe8
x86_64
grep-2.5.1-55.el5.x86_64.rpm SHA-256: 6f97cc22d952f4fb814b8c75555db633e02646ccb79829ed86390b274b782c21
i386
grep-2.5.1-55.el5.i386.rpm SHA-256: a336e1a3e97f4d22357c5bb08ef715a8a0d22577620f4bb0d72b7f7b0ce16e07

Red Hat Enterprise Linux for IBM z Systems 5

SRPM
grep-2.5.1-55.el5.src.rpm SHA-256: 53099e31d418da8dcda28d39575f2b2bd882bba1159cfd45135fdfbe15c6abe8
s390x
grep-2.5.1-55.el5.s390x.rpm SHA-256: a53933a20e34fc944918b22df0141bbfbaa9e6d6d743522e6be04a67dbe8c9e3

Red Hat Enterprise Linux for Power, big endian 5

SRPM
grep-2.5.1-55.el5.src.rpm SHA-256: 53099e31d418da8dcda28d39575f2b2bd882bba1159cfd45135fdfbe15c6abe8
ppc
grep-2.5.1-55.el5.ppc.rpm SHA-256: 7193abb7c83cbaa6578f2679d3765f5fc5642b755b43d8db09b013aec0f3a62b

Red Hat Enterprise Linux Server from RHUI 5

SRPM
grep-2.5.1-55.el5.src.rpm SHA-256: 53099e31d418da8dcda28d39575f2b2bd882bba1159cfd45135fdfbe15c6abe8
x86_64
grep-2.5.1-55.el5.x86_64.rpm SHA-256: 6f97cc22d952f4fb814b8c75555db633e02646ccb79829ed86390b274b782c21
i386
grep-2.5.1-55.el5.i386.rpm SHA-256: a336e1a3e97f4d22357c5bb08ef715a8a0d22577620f4bb0d72b7f7b0ce16e07

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