CWE
NVD-CWE-Other 362
Advisory Published
CVE Published
Updated

CVE-2002-0638: Race Condition

First published: Mon 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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Mandrakesoft Mandrake Single Network Firewall=7.2
Mandrake Linux=7.2
Red Hat Linux=6.1
Mandrake Linux=8.2
Red Hat Linux=7.0
Red Hat Linux=6.2
Mandrake Linux=7.0
Red Hat Linux=6.1
Red Hat Linux=6.0
Red Hat Linux=6.1
Red Hat Linux=7.2
Mandrake Linux=8.1
Red Hat Linux=6.2
Mandriva Linux Corporate Server=1.0.1
Mandrake Linux=7.1
Red Hat Linux=7.3
HP Secure OS=1.0
Red Hat Linux=7.0
Red Hat Linux=7.2
Mandrake Linux=8.1
Red Hat Linux=6.2
Mandrake Linux=8.0
Red Hat Linux=7.1
Red Hat Linux=7.1
Red Hat Linux=6.0
Red Hat Linux=6.0
Mandrake Linux=8.0
Red Hat Linux=7.2
Red Hat Linux=7.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

  • Can local users exploit CVE-2002-0638?

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203