tmpwatch has a local denial of service and root exploit
| Advisory: | RHSA-2000:080-01 |
|---|---|
| Type: | Security Advisory |
| Severity: | N/A |
| Issued on: | 2000-11-08 |
| Last updated on: | 2000-11-08 |
| Affected Products: | Red Hat Linux 6.2 Red Hat Linux 7.0 |
| CVEs (cve.mitre.org): |
CVE-2000-0816 CVE-2000-0829 |
Details
tmpwatch as shipped in Red Hat Linux 6.1, 6.2, and 7.0 uses fork() to
recursively process subdirectories, enabling a local user to perform a
denial of service attack. Tmpwatch from Red Hat Linux 6.2 and 7.0 also
contains an option to allow it to use the fuser command to check for open
files before removal. It executed fuser in an insecure fashion, allowing a
local root exploit.
The tmpwatch program periodically cleans up files in temporary directories
by removing all files older than a certain age. In Red Hat Linux 6.1, 6.2,
and 7.0, it used fork() to recursively process subdirectories. If a
malicious user created many layers of subdirectories (thousands) in a
temporary directory monitored by tmpwatch, the system process table would
fill up, requiring a reboot.
Additionally, tmpwatch in 6.2 and 7.0 contains an option, "--fuser", that
attempts to user the fuser command to check if a file is in use before
removal. However, it executed fuser with the system() call in an insecure
fashion. A malicious user could construct an environment such that this
provided them a local root shell. Tmpwatch now uses execle() to run fuser.
Solution
rpm -Fvh [filename]
where filename is the name of the RPM.
Updated packages
| Red Hat Linux 6.2 | |
| SRPMS: | |
| tmpwatch-2.6.2-1.6.2.src.rpm File outdated by: RHBA-2001:104 |
MD5: b8a670944cc54fd39c9eefb79f147ec1 |
| Alpha: | |
| tmpwatch-2.6.2-1.6.2.alpha.rpm File outdated by: RHBA-2001:104 |
MD5: 39fe4fbf666e5f9a40503134c05046d8 |
| IA-32: | |
| tmpwatch-2.6.2-1.6.2.i386.rpm File outdated by: RHBA-2001:104 |
MD5: 84609abc355fde23ce878e4d310766f8 |
| Sparc: | |
| tmpwatch-2.6.2-1.6.2.sparc.rpm File outdated by: RHBA-2001:104 |
MD5: f4625e9bc27af011a614eaa146586917 |
| Red Hat Linux 7.0 | |
| SRPMS: | |
| tmpwatch-2.6.2-1.7.src.rpm File outdated by: RHBA-2001:104 |
MD5: 13b3b76170251fd1dd32c0868178d201 |
| IA-32: | |
| tmpwatch-2.6.2-1.7.i386.rpm File outdated by: RHBA-2001:104 |
MD5: 8acf394469c47a98fcc589dd0d73b98c |
Bugs fixed (see bugzilla for more information)
17286 - tmpwatch run from cron allows locale DoS.
References
https://www.redhat.com/security/data/cve/CVE-2000-0829.html
Thanks go to Internet Security System's X-Force team (xforce@iss.net) for
discovering and documenting the local root exploit.
Keywords
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/