Ubuntu Security Notice 1172-1 - It was discovered that logrotate incorrectly handled the creation of new log files. Local users could possibly read log files if they were opened before permissions were in place. This issue only affected Ubuntu 8.04 LTS. It was discovered that logrotate incorrectly handled certain log file names when used with the shred option. Local attackers able to create log files with specially crafted filenames could use this issue to execute arbitrary code. This issue only affected Ubuntu 10.04 LTS, 10.10, and 11.04. Various other issues were also addressed.
eada5edc859cb5636e8793b60962d15ddf0ebab2fd051d849946102d688dc9bc
==========================================================================
Ubuntu Security Notice USN-1172-1
July 21, 2011
logrotate vulnerabilities
==========================================================================
A security issue affects these releases of Ubuntu and its derivatives:
- Ubuntu 11.04
- Ubuntu 10.10
- Ubuntu 10.04 LTS
- Ubuntu 8.04 LTS
Summary:
An attacker could cause logrotate to run programs, stop working, or read
and write arbitrary files.
Software Description:
- logrotate: Log rotation utility
Details:
It was discovered that logrotate incorrectly handled the creation of new
log files. Local users could possibly read log files if they were opened
before permissions were in place. This issue only affected Ubuntu 8.04 LTS.
(CVE-2011-1098)
It was discovered that logrotate incorrectly handled certain log file
names when used with the shred option. Local attackers able to create log
files with specially crafted filenames could use this issue to execute
arbitrary code. This issue only affected Ubuntu 10.04 LTS, 10.10, and
11.04. (CVE-2011-1154)
It was discovered that logrotate incorrectly handled certain malformed log
filenames. Local attackers able to create log files with specially crafted
filenames could use this issue to cause logrotate to stop processing log
files, resulting in a denial of service. (CVE-2011-1155)
It was discovered that logrotate incorrectly handled symlinks and hard
links when processing log files. A local attacker having write access to
a log file directory could use this issue to overwrite or read arbitrary
files. This issue only affected Ubuntu 8.04 LTS. (CVE-2011-1548)
Update instructions:
The problem can be corrected by updating your system to the following
package versions:
Ubuntu 11.04:
logrotate 3.7.8-6ubuntu3.1
Ubuntu 10.10:
logrotate 3.7.8-6ubuntu1.1
Ubuntu 10.04 LTS:
logrotate 3.7.8-4ubuntu2.2
Ubuntu 8.04 LTS:
logrotate 3.7.1-3ubuntu0.8.04.1
In general, a standard system update will make all the necessary changes.
References:
http://www.ubuntu.com/usn/usn-1172-1
CVE-2011-1098, CVE-2011-1154, CVE-2011-1155, CVE-2011-1548
Package Information:
https://launchpad.net/ubuntu/+source/logrotate/3.7.8-6ubuntu3.1
https://launchpad.net/ubuntu/+source/logrotate/3.7.8-6ubuntu1.1
https://launchpad.net/ubuntu/+source/logrotate/3.7.8-4ubuntu2.2
https://launchpad.net/ubuntu/+source/logrotate/3.7.1-3ubuntu0.8.04.1