CVE-2002-0638: Race Condition

Published Aug 12, 2002
·
Updated

setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other operating systems, does not properly lock a temporary file when modifying /etc/passwd, which may allow local users to gain privileges via a complex race condition that uses an open file descriptor in utility programs such as chfn and chsh.

Affected Software

29 affected components
Mandrakesoft Mandrake Single Network Firewall=7.2
Mandrakesoft Mandrake Linux=7.2
redhat Linux=6.1
Mandrakesoft Mandrake Linux=8.2
redhat Linux=7.0
redhat Linux=6.2
Mandrakesoft Mandrake Linux=7.0
redhat Linux=6.1
redhat Linux=6.0
redhat Linux=6.1
redhat Linux=7.2
Mandrakesoft Mandrake Linux=8.1
redhat Linux=6.2
Mandrakesoft Mandrake Linux Corporate Server=1.0.1
Mandrakesoft Mandrake Linux=7.1
redhat Linux=7.3
HP Secure OS=1.0
redhat Linux=7.0
redhat Linux=7.2
Mandrakesoft Mandrake Linux=8.1
redhat Linux=6.2
Mandrakesoft Mandrake Linux=8.0
redhat Linux=7.1
redhat Linux=7.1
redhat Linux=6.0
redhat Linux=6.0
Mandrakesoft Mandrake Linux=8.0
redhat Linux=7.2
redhat Linux=7.1

Event History

Aug 12, 2002
CVE Published
04:00 AM
Apr 2, 2003
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2002-0638?

CVE-2002-0638 is considered to have a low to medium severity due to its exploitation requiring a complex race condition.

2

How do I fix CVE-2002-0638?

To fix CVE-2002-0638, ensure you apply the appropriate patches or updates as provided by your operating system vendor.

3

Which operating systems are affected by CVE-2002-0638?

CVE-2002-0638 affects various versions of Red Hat Linux, Mandrake Linux, and HP Secure OS.

4

Can local users exploit CVE-2002-0638?

Yes, local users may exploit CVE-2002-0638 through a race condition when modifying /etc/passwd.

5

Is CVE-2002-0638 a critical vulnerability?

No, CVE-2002-0638 is not classified as critical but can lead to privilege escalation under certain conditions.

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