Skip to navigation

Security Advisory Moderate: logrotate security update

Advisory: RHSA-2011:0407-1
Type: Security Advisory
Severity: Moderate
Issued on: 2011-03-31
Last updated on: 2011-03-31
Affected Products: Red Hat Enterprise Linux Desktop (v. 6)
Red Hat Enterprise Linux HPC Node (v. 6)
Red Hat Enterprise Linux Server (v. 6)
Red Hat Enterprise Linux Server EUS (v. 6.0.z)
Red Hat Enterprise Linux Workstation (v. 6)
CVEs (cve.mitre.org): CVE-2011-1098
CVE-2011-1154
CVE-2011-1155

Details

An updated logrotate package that fixes multiple security issues is now
available for Red Hat Enterprise Linux 6.

The Red Hat Security Response Team has rated this update as having moderate
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.

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.


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

Updated packages

Red Hat Enterprise Linux Desktop (v. 6)

SRPMS:
logrotate-3.7.8-12.el6_0.1.src.rpm
File outdated by:  RHBA-2013:1095
    MD5: d4807afff89e971b339c588f186c1640
SHA-256: 5a8ad4c7085d549e1fe737f4d4acf29e72862c609dd96c8149d7cbd58046642d
 
IA-32:
logrotate-3.7.8-12.el6_0.1.i686.rpm
File outdated by:  RHBA-2013:1095
    MD5: b339f75e9736527dda9a3559b1ac7f84
SHA-256: 2bbe4744d46d224977539165285afe45497e24c24daabef04c5f1aa91f7b6639
logrotate-debuginfo-3.7.8-12.el6_0.1.i686.rpm
File outdated by:  RHBA-2013:1095
    MD5: fe026b889b3bf7bdaebf4e25599d511b
SHA-256: bbf6cbbb411f82d99356893697be74110de14e1e185404cd1ae8bd408008f670
 
x86_64:
logrotate-3.7.8-12.el6_0.1.x86_64.rpm
File outdated by:  RHBA-2013:1095
    MD5: 086bb1f01253ca7e25b1d4af40070bf1
SHA-256: eb492744ec5b5f53aaf114bf64f4d695049c3e7ddadbbd6c77c0626e934bd49d
logrotate-debuginfo-3.7.8-12.el6_0.1.x86_64.rpm
File outdated by:  RHBA-2013:1095
    MD5: 92fd0d5a4854351330e85ab16e3a46d7
SHA-256: 0287273e74013b63c7105043aa894ca95833856106b1e0a454188377d84acc38
 
Red Hat Enterprise Linux HPC Node (v. 6)

SRPMS:
logrotate-3.7.8-12.el6_0.1.src.rpm
File outdated by:  RHBA-2013:1095
    MD5: d4807afff89e971b339c588f186c1640
SHA-256: 5a8ad4c7085d549e1fe737f4d4acf29e72862c609dd96c8149d7cbd58046642d
 
x86_64:
logrotate-3.7.8-12.el6_0.1.x86_64.rpm
File outdated by:  RHBA-2013:1095
    MD5: 086bb1f01253ca7e25b1d4af40070bf1
SHA-256: eb492744ec5b5f53aaf114bf64f4d695049c3e7ddadbbd6c77c0626e934bd49d
logrotate-debuginfo-3.7.8-12.el6_0.1.x86_64.rpm
File outdated by:  RHBA-2013:1095
    MD5: 92fd0d5a4854351330e85ab16e3a46d7
SHA-256: 0287273e74013b63c7105043aa894ca95833856106b1e0a454188377d84acc38
 
Red Hat Enterprise Linux Server (v. 6)

SRPMS:
logrotate-3.7.8-12.el6_0.1.src.rpm
File outdated by:  RHBA-2013:1095
    MD5: d4807afff89e971b339c588f186c1640
SHA-256: 5a8ad4c7085d549e1fe737f4d4acf29e72862c609dd96c8149d7cbd58046642d
 
IA-32:
logrotate-3.7.8-12.el6_0.1.i686.rpm
File outdated by:  RHBA-2013:1095
    MD5: b339f75e9736527dda9a3559b1ac7f84
SHA-256: 2bbe4744d46d224977539165285afe45497e24c24daabef04c5f1aa91f7b6639
logrotate-debuginfo-3.7.8-12.el6_0.1.i686.rpm
File outdated by:  RHBA-2013:1095
    MD5: fe026b889b3bf7bdaebf4e25599d511b
SHA-256: bbf6cbbb411f82d99356893697be74110de14e1e185404cd1ae8bd408008f670
 
PPC:
logrotate-3.7.8-12.el6_0.1.ppc64.rpm
File outdated by:  RHBA-2013:1095
    MD5: 89058a260cd8ee39af932f273e6836e6
SHA-256: d742d13a0108a57378bcaa8f4be6b069bd17cb7a31e7bf3f478b3fa6d74acc4e
logrotate-debuginfo-3.7.8-12.el6_0.1.ppc64.rpm
File outdated by:  RHBA-2013:1095
    MD5: ecb25f9a89fbd216f0c03dbe29b2d71c
SHA-256: 26ed3b1f72efcb66c77129f56c58d961b174ff4838cea5661ef37f155b3a1fe2
 
s390x:
logrotate-3.7.8-12.el6_0.1.s390x.rpm
File outdated by:  RHBA-2013:1095
    MD5: 73ed64145cef597acab1dddd3c9c2624
SHA-256: f0f042a82eea6997be23140a859b9727e33ee19fb54babcab51eb580fa117812
logrotate-debuginfo-3.7.8-12.el6_0.1.s390x.rpm
File outdated by:  RHBA-2013:1095
    MD5: a736eef9604e6fe208ff9650a52e1397
SHA-256: 64ebae8394f551be8459115c637f017027e6ee4aca9d1950a7c6c89c93483025
 
x86_64:
logrotate-3.7.8-12.el6_0.1.x86_64.rpm
File outdated by:  RHBA-2013:1095
    MD5: 086bb1f01253ca7e25b1d4af40070bf1
SHA-256: eb492744ec5b5f53aaf114bf64f4d695049c3e7ddadbbd6c77c0626e934bd49d
logrotate-debuginfo-3.7.8-12.el6_0.1.x86_64.rpm
File outdated by:  RHBA-2013:1095
    MD5: 92fd0d5a4854351330e85ab16e3a46d7
SHA-256: 0287273e74013b63c7105043aa894ca95833856106b1e0a454188377d84acc38
 
Red Hat Enterprise Linux Server EUS (v. 6.0.z)

SRPMS:
logrotate-3.7.8-12.el6_0.1.src.rpm
File outdated by:  RHBA-2013:1095
    MD5: d4807afff89e971b339c588f186c1640
SHA-256: 5a8ad4c7085d549e1fe737f4d4acf29e72862c609dd96c8149d7cbd58046642d
 
IA-32:
logrotate-3.7.8-12.el6_0.1.i686.rpm     MD5: b339f75e9736527dda9a3559b1ac7f84
SHA-256: 2bbe4744d46d224977539165285afe45497e24c24daabef04c5f1aa91f7b6639
logrotate-debuginfo-3.7.8-12.el6_0.1.i686.rpm     MD5: fe026b889b3bf7bdaebf4e25599d511b
SHA-256: bbf6cbbb411f82d99356893697be74110de14e1e185404cd1ae8bd408008f670
 
PPC:
logrotate-3.7.8-12.el6_0.1.ppc64.rpm     MD5: 89058a260cd8ee39af932f273e6836e6
SHA-256: d742d13a0108a57378bcaa8f4be6b069bd17cb7a31e7bf3f478b3fa6d74acc4e
logrotate-debuginfo-3.7.8-12.el6_0.1.ppc64.rpm     MD5: ecb25f9a89fbd216f0c03dbe29b2d71c
SHA-256: 26ed3b1f72efcb66c77129f56c58d961b174ff4838cea5661ef37f155b3a1fe2
 
s390x:
logrotate-3.7.8-12.el6_0.1.s390x.rpm     MD5: 73ed64145cef597acab1dddd3c9c2624
SHA-256: f0f042a82eea6997be23140a859b9727e33ee19fb54babcab51eb580fa117812
logrotate-debuginfo-3.7.8-12.el6_0.1.s390x.rpm     MD5: a736eef9604e6fe208ff9650a52e1397
SHA-256: 64ebae8394f551be8459115c637f017027e6ee4aca9d1950a7c6c89c93483025
 
x86_64:
logrotate-3.7.8-12.el6_0.1.x86_64.rpm     MD5: 086bb1f01253ca7e25b1d4af40070bf1
SHA-256: eb492744ec5b5f53aaf114bf64f4d695049c3e7ddadbbd6c77c0626e934bd49d
logrotate-debuginfo-3.7.8-12.el6_0.1.x86_64.rpm     MD5: 92fd0d5a4854351330e85ab16e3a46d7
SHA-256: 0287273e74013b63c7105043aa894ca95833856106b1e0a454188377d84acc38
 
Red Hat Enterprise Linux Workstation (v. 6)

SRPMS:
logrotate-3.7.8-12.el6_0.1.src.rpm
File outdated by:  RHBA-2013:1095
    MD5: d4807afff89e971b339c588f186c1640
SHA-256: 5a8ad4c7085d549e1fe737f4d4acf29e72862c609dd96c8149d7cbd58046642d
 
IA-32:
logrotate-3.7.8-12.el6_0.1.i686.rpm
File outdated by:  RHBA-2013:1095
    MD5: b339f75e9736527dda9a3559b1ac7f84
SHA-256: 2bbe4744d46d224977539165285afe45497e24c24daabef04c5f1aa91f7b6639
logrotate-debuginfo-3.7.8-12.el6_0.1.i686.rpm
File outdated by:  RHBA-2013:1095
    MD5: fe026b889b3bf7bdaebf4e25599d511b
SHA-256: bbf6cbbb411f82d99356893697be74110de14e1e185404cd1ae8bd408008f670
 
x86_64:
logrotate-3.7.8-12.el6_0.1.x86_64.rpm
File outdated by:  RHBA-2013:1095
    MD5: 086bb1f01253ca7e25b1d4af40070bf1
SHA-256: eb492744ec5b5f53aaf114bf64f4d695049c3e7ddadbbd6c77c0626e934bd49d
logrotate-debuginfo-3.7.8-12.el6_0.1.x86_64.rpm
File outdated by:  RHBA-2013:1095
    MD5: 92fd0d5a4854351330e85ab16e3a46d7
SHA-256: 0287273e74013b63c7105043aa894ca95833856106b1e0a454188377d84acc38
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

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]


References



These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

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