First published: Wed Jun 02 2010(Updated: )
Created <span class="bz_obsolete"><a href="attachment.cgi?id=418879" name="attach_418879" title="SRPM for testing this bug">attachment 418879</a> <a href="attachment.cgi?id=418879&action=edit" title="SRPM for testing this bug">[details]</a></span> SRPM for testing this bug Description of problem: When RPM replaces an executable, it does not clear the setuid and setgid bits of the old file. Thus, if a user made a hard link to the old executable, he/she will still be able to run it with elevated privileges. This is bad if it was replaced because it had a vulnerability. The problem seems to occur only when executables are replaced, not when they are erased. This is the same bug that was previously noted in dpkg: <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=225692">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=225692</a> Version-Release number of selected component (if applicable): rpm-4.8.0-14.fc13.x86_64 How reproducible: Always Steps to Reproduce: 1. Rebuild the attached SRPM twice, once with -D 'rel 1' and once with -D 'rel 2'. 2. mkdir /tmp/rpm-setuid-test 3. rpm -i rpm-setuid-test-0-1.fc13.$(rpm -E '%{_build_arch}').rpm 4. ln /usr/bin/rpm-setuid-test /tmp/rpm-setuid-test/ 5. rpm -U rpm-setuid-test-0-2.fc13.$(rpm -E '%{_build_arch}').rpm 6. ls -l /tmp/rpm-setuid-test/rpm-setuid-test Actual results: The old executable is setuid. Expected results: The old executable is not setuid.
Affected Software | Affected Version | How to fix |
---|---|---|
RPM Package Manager |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity level of REDHAT-BUG-598775 is currently classified based on its potential impact on the RPM Package Manager.
To resolve REDHAT-BUG-598775, implement the provided source RPM for testing as recommended in the associated bug report.
REDHAT-BUG-598775 affects systems using the RPM Package Manager.
There are no official workarounds for REDHAT-BUG-598775; users should monitor for updates from Red Hat.
More information about REDHAT-BUG-598775 can be found in the official Red Hat Bugzilla reports.