Red Hat 6.0 RHSA-1999:030-02 critical: vixie-cron buffer overflow
Summary
Summary
By creating a crontab that runs with a specially formatted'MAILTO' environment variable, it is possible for local usersto overflow a fixed-length buffer in the cron daemon'scron_popen() function. Since the cron daemon runs as root,it would be theoretcially possible for local users to usethis buffer overflow to gain root privilege.
Also, it was possible to use specially formatted 'MAILTO'environment variables to send commands to sendmail.
(1999-08-27)The original packages released had the following problems:- Some legitimate e-mail addresses in "MAILTO" could be rejected.- The Red Hat Linux 4.2 and 5.2 packages shipped with logrotate scripts that contained options not present in the logrotate that shipped with those versions.- The Red Hat Linux 4.2 (i386 and SPARC) packages did not correctly reset the SIGCHLD handler, causing zombie processes to be created.
Users who experience these problems should upgrade to the newerpackages. There are no known security issues with the previouserrata packages.
Thanks go to Tymm Twillman, Martin Schulze, Pawel Veselov and othersfor noting and providing some fixes for the vulnerabilities.
Solution
For each RPM for your particular architecture, run:
rpm -Uvh filename
where filename is the name of the RPM.
Then restart cron by typing:
/etc/rc.d/init.d/crond restart
9. Verification:
MD5 sum Package Name
804bec06a0f2b25665c9f77b0c03cf4e i386/vixie-cron-3.0.1-38.i386.rpm
fd3e80ae1c8a2ab84bcbcfe338fe8a92 alpha/vixie-cron-3.0.1-38.alpha.rpm
587e2cee6ab190f6bf9d1727b1bc48bc sparc/vixie-cron-3.0.1-38.sparc.rpm
1197fe2e1db1591221a27738c2d812d4 SRPMS/vixie-cron-3.0.1-38.src.rpm
These packages are also PGP signed by Red Hat Inc. for security. Our
key is available at:
You can verify each package with the following command:
rpm --checksig filename
If you only wish to verify that each package has not been corrupted or
tampered with, examine only the md5sum with the following command:
rpm --checksig --nopgp filename
References
Package List
Topic
Topic
A buffer overflow exists in crond, the cron daemon. This
could allow local users to gain privilege.
2. Bug IDs fixed:
4706
Relevant Releases Architectures
Red Hat Linux 6.0, all architectures
4. Obsoleted by:
None
5. Conflicts with:
None
6. RPMs required:
Intel:
vixie-
cron-3.0.1-38.i386.rpm
Alpha:
vixie-cron-3.0.1-38.alpha.rpm
SPARC:
vixie-cron-3.0.1-38.sparc.rpm
Source:
vixie-
cron-3.0.1-38.src.rpm
Architecture neutral:
Bugs Fixed