REDHAT-BUG-598775: Medium severity RPM RPM vulnerability

Published Jun 2, 2010
·
Updated

Created attachment 418879 [details] 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: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=225692

Version-Release number of selected component (if applicable): rpm-4.8.0-14.fc13.x8664

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 '%{buildarch}').rpm 4. ln /usr/bin/rpm-setuid-test /tmp/rpm-setuid-test/ 5. rpm -U rpm-setuid-test-0-2.fc13.$(rpm -E '%{buildarch}').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

1 affected component
RPM RPM

Event History

Jun 2, 2010
Data Sourced
via Red Hat·02:37 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-598775?

The severity level of REDHAT-BUG-598775 is currently classified based on its potential impact on the RPM Package Manager.

2

How do I fix REDHAT-BUG-598775?

To resolve REDHAT-BUG-598775, implement the provided source RPM for testing as recommended in the associated bug report.

3

What systems are impacted by REDHAT-BUG-598775?

REDHAT-BUG-598775 affects systems using the RPM Package Manager.

4

Is there any workaround for REDHAT-BUG-598775?

There are no official workarounds for REDHAT-BUG-598775; users should monitor for updates from Red Hat.

5

Where can I find more information about REDHAT-BUG-598775?

More information about REDHAT-BUG-598775 can be found in the official Red Hat Bugzilla reports.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203