Red Hat Linux General Security Advisory

 
Red Hat, Inc. Security Advisory
Synopsis New ed packages available

Advisory ID RHSA-2000:123-01

Issue Date 2000-12-06

Updated On 2000-12-06

Product Red Hat Linux

Keywords ed mktemp mkstemp /tmp

Cross References N/A



1. Topic:

The ed editor used files in /tmp in an insecure fashion. It was possible for local users to exploit this vulnerability to modify files that they normally could not and gain elevated privilege.

2. Problem description:

The ed executable creates files in /tmp with predictable names. By using various symlink attacks, it is possible to have ed write to files it should not, change the permissions of various files, etc.

3. Bug IDs fixed: (see bugzilla for more information)

21470 - ed uses mktemp + fopen for scratch files

4. Relevant releases/architectures:

Red Hat Linux 5.2 - i386, alpha, sparc
Red Hat Linux 6.0 - i386, alpha, sparc
Red Hat Linux 6.1 - i386, alpha, sparc
Red Hat Linux 6.2 - i386, alpha, sparc
Red Hat Linux 7.0 - i386, alpha

5. RPMs required:

Red Hat Linux 5.2:

alpha:
ftp://updates.redhat.com/5.2/en/os/alpha/ed-0.2-19.5x.alpha.rpm
ftp://updates.redhat.com/5.2/en/os/alpha/ed-0.2-19.5x.alpha.rpm

sparc:
ftp://updates.redhat.com/5.2/en/os/sparc/ed-0.2-19.5x.sparc.rpm
ftp://updates.redhat.com/5.2/en/os/sparc/ed-0.2-19.5x.sparc.rpm

i386:
ftp://updates.redhat.com/5.2/en/os/i386/ed-0.2-19.5x.i386.rpm
ftp://updates.redhat.com/5.2/en/os/i386/ed-0.2-19.5x.i386.rpm

sources:
ftp://updates.redhat.com/5.2/en/os/SRPMS/ed-0.2-19.5x.src.rpm
ftp://updates.redhat.com/5.2/en/os/SRPMS/ed-0.2-19.5x.src.rpm

Red Hat Linux 6.0:

sparc:
ftp://updates.redhat.com/6.0/en/os/sparc/ed-0.2-19.6x.sparc.rpm
ftp://updates.redhat.com/6.0/en/os/sparc/ed-0.2-19.6x.sparc.rpm

i386:
ftp://updates.redhat.com/6.0/en/os/i386/ed-0.2-19.6x.i386.rpm
ftp://updates.redhat.com/6.0/en/os/i386/ed-0.2-19.6x.i386.rpm

alpha:
ftp://updates.redhat.com/6.0/en/os/alpha/ed-0.2-19.6x.alpha.rpm
ftp://updates.redhat.com/6.0/en/os/alpha/ed-0.2-19.6x.alpha.rpm

sources:
ftp://updates.redhat.com/6.0/en/os/SRPMS/ed-0.2-19.6x.src.rpm
ftp://updates.redhat.com/6.0/en/os/SRPMS/ed-0.2-19.6x.src.rpm

Red Hat Linux 6.1:

alpha:
ftp://updates.redhat.com/6.1/en/os/alpha/ed-0.2-19.6x.alpha.rpm
ftp://updates.redhat.com/6.1/en/os/alpha/ed-0.2-19.6x.alpha.rpm

sparc:
ftp://updates.redhat.com/6.1/en/os/sparc/ed-0.2-19.6x.sparc.rpm
ftp://updates.redhat.com/6.1/en/os/sparc/ed-0.2-19.6x.sparc.rpm

i386:
ftp://updates.redhat.com/6.1/en/os/i386/ed-0.2-19.6x.i386.rpm
ftp://updates.redhat.com/6.1/en/os/i386/ed-0.2-19.6x.i386.rpm

sources:
ftp://updates.redhat.com/6.1/en/os/SRPMS/ed-0.2-19.6x.src.rpm
ftp://updates.redhat.com/6.1/en/os/SRPMS/ed-0.2-19.6x.src.rpm

Red Hat Linux 6.2:

alpha:
ftp://updates.redhat.com/6.2/en/os/alpha/ed-0.2-19.6x.alpha.rpm
ftp://updates.redhat.com/6.2/en/os/alpha/ed-0.2-19.6x.alpha.rpm

sparc:
ftp://updates.redhat.com/6.2/en/os/sparc/ed-0.2-19.6x.sparc.rpm
ftp://updates.redhat.com/6.2/en/os/sparc/ed-0.2-19.6x.sparc.rpm

i386:
ftp://updates.redhat.com/6.2/en/os/i386/ed-0.2-19.6x.i386.rpm
ftp://updates.redhat.com/6.2/en/os/i386/ed-0.2-19.6x.i386.rpm

sources:
ftp://updates.redhat.com/6.2/en/os/SRPMS/ed-0.2-19.6x.src.rpm
ftp://updates.redhat.com/6.2/en/os/SRPMS/ed-0.2-19.6x.src.rpm

Red Hat Linux 7.0:

alpha:
ftp://updates.redhat.com/7.0/en/os/alpha/ed-0.2-19.alpha.rpm

i386:
ftp://updates.redhat.com/7.0/en/os/i386/ed-0.2-19.i386.rpm

sources:
ftp://updates.redhat.com/7.0/en/os/SRPMS/ed-0.2-19.src.rpm

6. Solution:

For each RPM for your particular architecture, run:

    rpm -Fvh [filename]

where filename is the name of the RPM.

7. Verification:

MD5 sum                           Package Name
-------------------------------------------------------------------------
e87aafb1feef31ab80d5a55313cf76b4  5.2/en/os/SRPMS/ed-0.2-19.5x.src.rpm
c2ff59030a1d2c9cdf7040facda48a0b  5.2/en/os/alpha/ed-0.2-19.5x.alpha.rpm
86a43f6d2b10c284f36c5d9776a56789  5.2/en/os/i386/ed-0.2-19.5x.i386.rpm
b7ac2a44c3ea17f78d5313a3113f98c3  5.2/en/os/sparc/ed-0.2-19.5x.sparc.rpm
e80cdbeebc4cf4d7a8b8765b02540c2e  6.0/en/os/SRPMS/ed-0.2-19.6x.src.rpm
779b42a553a66a3cf422ffe8e87bb2fb  6.0/en/os/alpha/ed-0.2-19.6x.alpha.rpm
7c584e3600331b81e8caa2422722ccae  6.0/en/os/i386/ed-0.2-19.6x.i386.rpm
007fc8f22b6cc144b3b2703744da8483  6.0/en/os/sparc/ed-0.2-19.6x.sparc.rpm
e80cdbeebc4cf4d7a8b8765b02540c2e  6.1/en/os/SRPMS/ed-0.2-19.6x.src.rpm
779b42a553a66a3cf422ffe8e87bb2fb  6.1/en/os/alpha/ed-0.2-19.6x.alpha.rpm
7c584e3600331b81e8caa2422722ccae  6.1/en/os/i386/ed-0.2-19.6x.i386.rpm
007fc8f22b6cc144b3b2703744da8483  6.1/en/os/sparc/ed-0.2-19.6x.sparc.rpm
e80cdbeebc4cf4d7a8b8765b02540c2e  6.2/en/os/SRPMS/ed-0.2-19.6x.src.rpm
779b42a553a66a3cf422ffe8e87bb2fb  6.2/en/os/alpha/ed-0.2-19.6x.alpha.rpm
7c584e3600331b81e8caa2422722ccae  6.2/en/os/i386/ed-0.2-19.6x.i386.rpm
007fc8f22b6cc144b3b2703744da8483  6.2/en/os/sparc/ed-0.2-19.6x.sparc.rpm
f619f60ddcbeedc016b434e172b9bddb  7.0/en/os/SRPMS/ed-0.2-19.src.rpm
f511af62ec15ef65dd1104683e7d39db  7.0/en/os/alpha/ed-0.2-19.alpha.rpm
6186b80b1deba06a1d3d99e30e2270d0  7.0/en/os/i386/ed-0.2-19.i386.rpm

These packages are GPG signed by Red Hat, Inc. for security. Our key is available at:
http://www.redhat.com/about/contact.html

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 --nogpg filename

Note that you need RPM >= 3.0 to check GnuPG keys.

8. References:

N/A