CVE-2010-2059: High severity RPM RPM vulnerability

Published Jun 1, 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.

Other sources

lib/fsm.c in RPM 4.8.0 and unspecified 4.7.x and 4.6.x versions, and RPM before 4.4.3, does not properly reset the metadata of an executable file during replacement of the file in an RPM package upgrade, which might allow local users to gain privileges by creating a hard link to a vulnerable (1) setuid or (2) setgid file.

Affected Software

95 affected componentsFixes available
redhat/rpm<0:4.3.3-33_nonptl.el4_8.1
0:4.3.3-33_nonptl.el4_8.1
redhat/rpm<0:4.4.2.3-20.el5_5.1
0:4.4.2.3-20.el5_5.1
RPM RPM=2.3.5
RPM RPM=4.4.2.1
RPM RPM=1.4.3
RPM RPM=3.0.1
RPM RPM=4.1
RPM RPM=2.2.3.11
RPM RPM=2.4.4
RPM RPM=2.3.8
RPM RPM=2.0.6
RPM RPM=1.4.4
RPM RPM=4.4.2
RPM RPM=1.4.2\/a
RPM RPM=2.4.1
RPM RPM=2.4.9
RPM RPM=2.6.7
RPM RPM=2..4.10
RPM RPM=1.4
RPM RPM=2.0.10
RPM RPM=2.4.5
RPM RPM=4.0.1
RPM RPM=2.2.11
RPM RPM=4.0.4
RPM RPM=2.2.1
RPM RPM=2.0.1
RPM RPM=1.4.2
RPM RPM=3.0.3
RPM RPM=2.0.7
RPM RPM=4.0.2
RPM RPM=2.2.8
RPM RPM=3.0.2
RPM RPM=1.2
RPM RPM=4.0.
RPM RPM=2.1.1
RPM RPM=4.3.3
RPM RPM=2.5.5
RPM RPM=2.0.8
RPM RPM=2.3
RPM RPM=4.4.2.2
RPM RPM=2.4.8
RPM RPM=3.0.4
RPM RPM=2.5.6
RPM RPM=2.0
RPM RPM=2.0.2
RPM RPM=2.3.2
RPM RPM=2.4.3
RPM RPM=2.4.2
RPM RPM=1.4.5
RPM RPM=2.0.11
RPM RPM=3.0.5
RPM RPM=1.3
RPM RPM=2.2.3
RPM RPM=2.2
RPM RPM=2.1.2
RPM RPM=2.3.9
RPM RPM=2.2.4
RPM RPM=2.2.9
RPM RPM=2.5.3
RPM RPM=2.2.6
RPM RPM=2.3.6
RPM RPM=2.5
RPM RPM=2.2.3.10
RPM RPM=2.0.5
RPM RPM=2.4.12
RPM RPM=2.5.4
RPM RPM=1.4.7
RPM RPM=3.0
RPM RPM=1.4.6
RPM RPM=2.5.2
RPM RPM=2.4.11
RPM RPM=2.0.9
RPM RPM=2.1
RPM RPM=2.2.10
RPM RPM=2.3.3
RPM RPM=2.3.7
RPM RPM=2.3.4
RPM RPM<=4.4.2.3
RPM RPM=2.0.4
RPM RPM=1.3.1
RPM RPM=3.0.6
RPM RPM=2.0.3
RPM RPM=2.3.1
RPM RPM=4.0.3
RPM RPM=2.4.6
RPM RPM=2.5.1
RPM RPM=2.2.5
RPM RPM=2.2.2
RPM RPM=2.2.7
RPM RPM=4.8.0
RPM RPM=4.6.0
RPM RPM=4.7.2
RPM RPM=4.7.0
RPM RPM=4.6.1
RPM RPM=4.7.1

Event History

Jun 1, 2010
CVE Published
12:00 AM
Jun 2, 2010
Data Sourced
via Red Hat·02:37 AM
DescriptionSeverityAffected Software
Jun 8, 2010
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
via NVD·06:30 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2010-2059?

CVE-2010-2059 is classified as a medium-severity vulnerability.

2

How do I fix CVE-2010-2059?

To remediate CVE-2010-2059, update the RPM package to a patched version, specifically 0:4.3.3-33_nonptl.el4_8.1 or 0:4.4.2.3-20.el5_5.1 depending on your system.

3

What systems are affected by CVE-2010-2059?

CVE-2010-2059 affects multiple versions of the RPM Package Manager including versions from 1.2 to 4.4.2.3.

4

What type of vulnerability is CVE-2010-2059?

CVE-2010-2059 is a security flaw related to potential privilege escalation.

5

Has CVE-2010-2059 been exploited in the wild?

There have been no widely reported exploits of CVE-2010-2059 in the wild.

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