Red Hat: 2011:0407-01: logrotate: Moderate Advisory
Summary
The logrotate utility simplifies the administration of multiple log files,
allowing the automatic rotation, compression, removal, and mailing of log
files.
A shell command injection flaw was found in the way logrotate handled the
shred directive. A specially-crafted log file could cause logrotate to
execute arbitrary commands with the privileges of the user running
logrotate (root, by default). Note: The shred directive is not enabled by
default. (CVE-2011-1154)
A race condition flaw was found in the way logrotate applied permissions
when creating new log files. In some specific configurations, a local
attacker could use this flaw to open new log files before logrotate applies
the final permissions, possibly leading to the disclosure of sensitive
information. (CVE-2011-1098)
An input sanitization flaw was found in logrotate. A log file with a
specially-crafted file name could cause logrotate to abort when attempting
to process that file a subsequent time. (CVE-2011-1155)
All logrotate users should upgrade to this updated package, which contains
backported patches to resolve these issues.
Summary
Solution
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.
This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/kb/docs/DOC-11259
References
https://www.redhat.com/security/data/cve/CVE-2011-1098.html https://www.redhat.com/security/data/cve/CVE-2011-1154.html https://www.redhat.com/security/data/cve/CVE-2011-1155.html https://access.redhat.com/security/updates/classification/#moderate
Package List
Red Hat Enterprise Linux Desktop (v. 6):
Source:
i386:
logrotate-3.7.8-12.el6_0.1.i686.rpm
logrotate-debuginfo-3.7.8-12.el6_0.1.i686.rpm
x86_64:
logrotate-3.7.8-12.el6_0.1.x86_64.rpm
logrotate-debuginfo-3.7.8-12.el6_0.1.x86_64.rpm
Red Hat Enterprise Linux HPC Node (v. 6):
Source:
x86_64:
logrotate-3.7.8-12.el6_0.1.x86_64.rpm
logrotate-debuginfo-3.7.8-12.el6_0.1.x86_64.rpm
Red Hat Enterprise Linux Server (v. 6):
Source:
i386:
logrotate-3.7.8-12.el6_0.1.i686.rpm
logrotate-debuginfo-3.7.8-12.el6_0.1.i686.rpm
ppc64:
logrotate-3.7.8-12.el6_0.1.ppc64.rpm
logrotate-debuginfo-3.7.8-12.el6_0.1.ppc64.rpm
s390x:
logrotate-3.7.8-12.el6_0.1.s390x.rpm
logrotate-debuginfo-3.7.8-12.el6_0.1.s390x.rpm
x86_64:
logrotate-3.7.8-12.el6_0.1.x86_64.rpm
logrotate-debuginfo-3.7.8-12.el6_0.1.x86_64.rpm
Red Hat Enterprise Linux Workstation (v. 6):
Source:
i386:
logrotate-3.7.8-12.el6_0.1.i686.rpm
logrotate-debuginfo-3.7.8-12.el6_0.1.i686.rpm
x86_64:
logrotate-3.7.8-12.el6_0.1.x86_64.rpm
logrotate-debuginfo-3.7.8-12.el6_0.1.x86_64.rpm
These packages are GPG signed by Red Hat for security. Our key and
details on how to verify the signature are available from
https://access.redhat.com/security/team/key/#package
Topic
An updated logrotate package that fixes multiple security issues is nowavailable for Red Hat Enterprise Linux 6.The Red Hat Security Response Team has rated this update as having moderatesecurity impact. Common Vulnerability Scoring System (CVSS) base scores,which give detailed severity ratings, are available for each vulnerabilityfrom the CVE links in the References section.
Topic
Relevant Releases Architectures
Red Hat Enterprise Linux Desktop (v. 6) - i386, x86_64
Red Hat Enterprise Linux HPC Node (v. 6) - x86_64
Red Hat Enterprise Linux Server (v. 6) - i386, ppc64, s390x, x86_64
Red Hat Enterprise Linux Workstation (v. 6) - i386, x86_64
Bugs Fixed
680796 - CVE-2011-1154 logrotate: Shell command injection by using the shred configuration directive
680797 - CVE-2011-1155 logrotate: DoS due improper escaping of file names within 'write state' action
680798 - CVE-2011-1098 logrotate: TOCTOU race condition by creation of new files (between opening the file and moment, final permissions have been applied) [information disclosure]