cve-2002-0638
Vulnerability from cvelistv5
Published
2003-04-02 05:00
Modified
2024-08-08 02:56
Severity ?
EPSS score ?
Summary
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.
References
{ containers: { adp: [ { providerMetadata: { dateUpdated: "2024-08-08T02:56:38.516Z", orgId: "af854a3a-2127-422b-91ae-364da2661108", shortName: "CVE", }, references: [ { name: "CSSA-2002-043.0", tags: [ "vendor-advisory", "x_refsource_CALDERA", "x_transferred", ], url: "ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2002-043.0.txt", }, { name: "5344", tags: [ "vdb-entry", "x_refsource_BID", "x_transferred", ], url: "http://www.securityfocus.com/bid/5344", }, { name: "utillinux-chfn-race-condition(9709)", tags: [ "vdb-entry", "x_refsource_XF", "x_transferred", ], url: "http://www.iss.net/security_center/static/9709.php", }, { name: "MDKSA-2002:047", tags: [ "vendor-advisory", "x_refsource_MANDRAKE", "x_transferred", ], url: "http://www.linux-mandrake.com/en/security/2002/MDKSA-2002-047.php", }, { name: "RHSA-2002:132", tags: [ "vendor-advisory", "x_refsource_REDHAT", "x_transferred", ], url: "http://rhn.redhat.com/errata/RHSA-2002-132.html", }, { name: "VU#405955", tags: [ "third-party-advisory", "x_refsource_CERT-VN", "x_transferred", ], url: "http://www.kb.cert.org/vuls/id/405955", }, { name: "20020729 [VulnWatch] RAZOR advisory: Linux util-linux chfn local root vulnerability", tags: [ "mailing-list", "x_refsource_VULNWATCH", "x_transferred", ], url: "http://archives.neohapsis.com/archives/bugtraq/2002-07/0357.html", }, { name: "CLA-2002:523", tags: [ "vendor-advisory", "x_refsource_CONECTIVA", "x_transferred", ], url: "http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000523", }, { name: "HPSBTL0207-054", tags: [ "vendor-advisory", "x_refsource_HP", "x_transferred", ], url: "http://online.securityfocus.com/advisories/4320", }, { name: "20020730 TSLSA-2002-0064 - util-linux", tags: [ "mailing-list", "x_refsource_BUGTRAQ", "x_transferred", ], url: "http://archives.neohapsis.com/archives/bugtraq/2002-07/0396.html", }, { name: "20020729 RAZOR advisory: Linux util-linux chfn local root vulnerability", tags: [ "mailing-list", "x_refsource_BUGTRAQ", "x_transferred", ], url: "http://marc.info/?l=bugtraq&m=102795787713996&w=2", }, { name: "RHSA-2002:137", tags: [ "vendor-advisory", "x_refsource_REDHAT", "x_transferred", ], url: "http://www.redhat.com/support/errata/RHSA-2002-137.html", }, { name: "5164", tags: [ "vdb-entry", "x_refsource_OSVDB", "x_transferred", ], url: "http://www.osvdb.org/5164", }, ], title: "CVE Program Container", }, ], cna: { affected: [ { product: "n/a", vendor: "n/a", versions: [ { status: "affected", version: "n/a", }, ], }, ], datePublic: "2002-07-29T00:00:00", descriptions: [ { lang: "en", value: "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.", }, ], problemTypes: [ { descriptions: [ { description: "n/a", lang: "en", type: "text", }, ], }, ], providerMetadata: { dateUpdated: "2003-03-21T00:00:00", orgId: "8254265b-2729-46b6-b9e3-3dfca2d5bfca", shortName: "mitre", }, references: [ { name: "CSSA-2002-043.0", tags: [ "vendor-advisory", "x_refsource_CALDERA", ], url: "ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2002-043.0.txt", }, { name: "5344", tags: [ "vdb-entry", "x_refsource_BID", ], url: "http://www.securityfocus.com/bid/5344", }, { name: "utillinux-chfn-race-condition(9709)", tags: [ "vdb-entry", "x_refsource_XF", ], url: "http://www.iss.net/security_center/static/9709.php", }, { name: "MDKSA-2002:047", tags: [ "vendor-advisory", "x_refsource_MANDRAKE", ], url: "http://www.linux-mandrake.com/en/security/2002/MDKSA-2002-047.php", }, { name: "RHSA-2002:132", tags: [ "vendor-advisory", "x_refsource_REDHAT", ], url: "http://rhn.redhat.com/errata/RHSA-2002-132.html", }, { name: "VU#405955", tags: [ "third-party-advisory", "x_refsource_CERT-VN", ], url: "http://www.kb.cert.org/vuls/id/405955", }, { name: "20020729 [VulnWatch] RAZOR advisory: Linux util-linux chfn local root vulnerability", tags: [ "mailing-list", "x_refsource_VULNWATCH", ], url: "http://archives.neohapsis.com/archives/bugtraq/2002-07/0357.html", }, { name: "CLA-2002:523", tags: [ "vendor-advisory", "x_refsource_CONECTIVA", ], url: "http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000523", }, { name: "HPSBTL0207-054", tags: [ "vendor-advisory", "x_refsource_HP", ], url: "http://online.securityfocus.com/advisories/4320", }, { name: "20020730 TSLSA-2002-0064 - util-linux", tags: [ "mailing-list", "x_refsource_BUGTRAQ", ], url: "http://archives.neohapsis.com/archives/bugtraq/2002-07/0396.html", }, { name: "20020729 RAZOR advisory: Linux util-linux chfn local root vulnerability", tags: [ "mailing-list", "x_refsource_BUGTRAQ", ], url: "http://marc.info/?l=bugtraq&m=102795787713996&w=2", }, { name: "RHSA-2002:137", tags: [ "vendor-advisory", "x_refsource_REDHAT", ], url: "http://www.redhat.com/support/errata/RHSA-2002-137.html", }, { name: "5164", tags: [ "vdb-entry", "x_refsource_OSVDB", ], url: "http://www.osvdb.org/5164", }, ], x_legacyV4Record: { CVE_data_meta: { ASSIGNER: "cve@mitre.org", ID: "CVE-2002-0638", STATE: "PUBLIC", }, affects: { vendor: { vendor_data: [ { product: { product_data: [ { product_name: "n/a", version: { version_data: [ { version_value: "n/a", }, ], }, }, ], }, vendor_name: "n/a", }, ], }, }, data_format: "MITRE", data_type: "CVE", data_version: "4.0", description: { description_data: [ { lang: "eng", value: "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.", }, ], }, problemtype: { problemtype_data: [ { description: [ { lang: "eng", value: "n/a", }, ], }, ], }, references: { reference_data: [ { name: "CSSA-2002-043.0", refsource: "CALDERA", url: "ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2002-043.0.txt", }, { name: "5344", refsource: "BID", url: "http://www.securityfocus.com/bid/5344", }, { name: "utillinux-chfn-race-condition(9709)", refsource: "XF", url: "http://www.iss.net/security_center/static/9709.php", }, { name: "MDKSA-2002:047", refsource: "MANDRAKE", url: "http://www.linux-mandrake.com/en/security/2002/MDKSA-2002-047.php", }, { name: "RHSA-2002:132", refsource: "REDHAT", url: "http://rhn.redhat.com/errata/RHSA-2002-132.html", }, { name: "VU#405955", refsource: "CERT-VN", url: "http://www.kb.cert.org/vuls/id/405955", }, { name: "20020729 [VulnWatch] RAZOR advisory: Linux util-linux chfn local root vulnerability", refsource: "VULNWATCH", url: "http://archives.neohapsis.com/archives/bugtraq/2002-07/0357.html", }, { name: "CLA-2002:523", refsource: "CONECTIVA", url: "http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000523", }, { name: "HPSBTL0207-054", refsource: "HP", url: "http://online.securityfocus.com/advisories/4320", }, { name: "20020730 TSLSA-2002-0064 - util-linux", refsource: "BUGTRAQ", url: "http://archives.neohapsis.com/archives/bugtraq/2002-07/0396.html", }, { name: "20020729 RAZOR advisory: Linux util-linux chfn local root vulnerability", refsource: "BUGTRAQ", url: "http://marc.info/?l=bugtraq&m=102795787713996&w=2", }, { name: "RHSA-2002:137", refsource: "REDHAT", url: "http://www.redhat.com/support/errata/RHSA-2002-137.html", }, { name: "5164", refsource: "OSVDB", url: "http://www.osvdb.org/5164", }, ], }, }, }, }, cveMetadata: { assignerOrgId: "8254265b-2729-46b6-b9e3-3dfca2d5bfca", assignerShortName: "mitre", cveId: "CVE-2002-0638", datePublished: "2003-04-02T05:00:00", dateReserved: "2002-06-27T00:00:00", dateUpdated: "2024-08-08T02:56:38.516Z", state: "PUBLISHED", }, dataType: "CVE_RECORD", dataVersion: "5.1", "vulnerability-lookup:meta": { nvd: "{\"cve\":{\"id\":\"CVE-2002-0638\",\"sourceIdentifier\":\"cve@mitre.org\",\"published\":\"2002-08-12T04:00:00.000\",\"lastModified\":\"2025-04-03T01:03:51.193\",\"vulnStatus\":\"Deferred\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"},{\"lang\":\"es\",\"value\":\"setpwnam.c en el paquete util-linux, como se incluye en Red Hat Linux 7.3 y antieriores, y en otros sistemas operativos, no bloquea adecuadamente un fichero temporal cuando se modifica /etc/passwd, lo que puede permitir a usuarios locales ganar privilegios mediante una compleja condición de carrera que usa un descriptor de fichero abierto en utilidades como chfn y chsh.\"}],\"metrics\":{\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:L/AC:H/Au:N/C:C/I:C/A:C\",\"baseScore\":6.2,\"accessVector\":\"LOCAL\",\"accessComplexity\":\"HIGH\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"COMPLETE\",\"integrityImpact\":\"COMPLETE\",\"availabilityImpact\":\"COMPLETE\"},\"baseSeverity\":\"MEDIUM\",\"exploitabilityScore\":1.9,\"impactScore\":10.0,\"acInsufInfo\":false,\"obtainAllPrivilege\":true,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":false}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-Other\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:mandrakesoft:mandrake_single_network_firewall:7.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"7A188467-3856-4599-A2CD-BD2655974B63\"}]}]},{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:hp:secure_os:1.0:*:linux:*:*:*:*:*\",\"matchCriteriaId\":\"B345284D-6842-47C0-B823-B5DDC30CC8A6\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:mandrakesoft:mandrake_linux:7.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"E4853E92-5E0A-47B9-A343-D5BEE87D2C27\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:mandrakesoft:mandrake_linux:7.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"3EC1FF5D-5EAB-44D5-B281-770547C70D68\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:mandrakesoft:mandrake_linux:7.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"0A8FBD5A-2FD0-43CD-AC4B-1D6984D336FE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:mandrakesoft:mandrake_linux:8.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"4371A667-18E1-4C54-B2E1-6F885F22F213\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:mandrakesoft:mandrake_linux:8.0:*:ppc:*:*:*:*:*\",\"matchCriteriaId\":\"5B28763D-8F4B-45E5-82FA-AB7E54C18EBF\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:mandrakesoft:mandrake_linux:8.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"205EF72B-7334-4AE0-9CA6-D2E8E5910C8E\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:mandrakesoft:mandrake_linux:8.1:*:ia64:*:*:*:*:*\",\"matchCriteriaId\":\"613A22EC-D93C-48B0-B97C-3E0DDFBD0B62\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:mandrakesoft:mandrake_linux:8.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"DEB99324-3062-426F-8E2F-44DC3A7ADB2A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:mandrakesoft:mandrake_linux_corporate_server:1.0.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"97E09AD9-F057-4264-88BB-A8A18C1B1246\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:6.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"2DFA94D5-0139-490C-8257-0751FE9FBAE4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:6.0:*:alpha:*:*:*:*:*\",\"matchCriteriaId\":\"6931FB54-A163-4CE3-BBD9-D345AA0977A6\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:6.0:*:sparc:*:*:*:*:*\",\"matchCriteriaId\":\"5ABD1331-277C-4C31-8186-978243C62255\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:6.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"2EC4D3AB-38FA-4D44-AF5C-2DCD15994E76\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:6.1:*:alpha:*:*:*:*:*\",\"matchCriteriaId\":\"C89454B9-4F45-4A42-A06D-ED42D893C544\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:6.1:*:sparc:*:*:*:*:*\",\"matchCriteriaId\":\"1E64093E-7D53-4238-95C3-48ED5A0FFD97\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:6.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"0633B5A6-7A88-4A96-9462-4C09D124ED36\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:6.2:*:alpha:*:*:*:*:*\",\"matchCriteriaId\":\"344610A8-DB6D-4407-9304-916C419F648C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:6.2:*:sparc:*:*:*:*:*\",\"matchCriteriaId\":\"64775BEF-2E53-43CA-8639-A7E54F6F4222\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:7.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"29B186E5-7C2F-466E-AA4A-8F2B618F8A14\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:7.0:*:alpha:*:*:*:*:*\",\"matchCriteriaId\":\"FD6576E2-9F26-4857-9F28-F51899F1EF48\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:7.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"1D46E093-1C68-43BB-B281-12117EC8DE0F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:7.1:*:alpha:*:*:*:*:*\",\"matchCriteriaId\":\"7F3FAAB3-7A8A-42E5-9DCE-E4A843CED1B9\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:7.1:*:ia64:*:*:*:*:*\",\"matchCriteriaId\":\"ED36543D-C21B-4B4B-A6AD-6E19B08B5DD7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:7.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"E562907F-D915-4030-847A-3C6834A80D4E\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:7.2:*:alpha:*:*:*:*:*\",\"matchCriteriaId\":\"6EAAC51F-9DC5-4026-8147-1B74975D6183\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:7.2:*:ia64:*:*:*:*:*\",\"matchCriteriaId\":\"9D47D6FE-56A9-42CF-9A9B-AEE272C061F7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:redhat:linux:7.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"138985E6-5107-4E8B-A801-C3D5FE075227\"}]}]}],\"references\":[{\"url\":\"ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2002-043.0.txt\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://archives.neohapsis.com/archives/bugtraq/2002-07/0357.html\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://archives.neohapsis.com/archives/bugtraq/2002-07/0396.html\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000523\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://marc.info/?l=bugtraq&m=102795787713996&w=2\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://online.securityfocus.com/advisories/4320\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://rhn.redhat.com/errata/RHSA-2002-132.html\",\"source\":\"cve@mitre.org\",\"tags\":[\"Patch\",\"Vendor Advisory\"]},{\"url\":\"http://www.iss.net/security_center/static/9709.php\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://www.kb.cert.org/vuls/id/405955\",\"source\":\"cve@mitre.org\",\"tags\":[\"Patch\",\"Third Party Advisory\",\"US Government Resource\"]},{\"url\":\"http://www.linux-mandrake.com/en/security/2002/MDKSA-2002-047.php\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://www.osvdb.org/5164\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://www.redhat.com/support/errata/RHSA-2002-137.html\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://www.securityfocus.com/bid/5344\",\"source\":\"cve@mitre.org\"},{\"url\":\"ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2002-043.0.txt\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://archives.neohapsis.com/archives/bugtraq/2002-07/0357.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://archives.neohapsis.com/archives/bugtraq/2002-07/0396.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000523\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://marc.info/?l=bugtraq&m=102795787713996&w=2\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://online.securityfocus.com/advisories/4320\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://rhn.redhat.com/errata/RHSA-2002-132.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Vendor Advisory\"]},{\"url\":\"http://www.iss.net/security_center/static/9709.php\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://www.kb.cert.org/vuls/id/405955\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Third Party Advisory\",\"US Government Resource\"]},{\"url\":\"http://www.linux-mandrake.com/en/security/2002/MDKSA-2002-047.php\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://www.osvdb.org/5164\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://www.redhat.com/support/errata/RHSA-2002-137.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"http://www.securityfocus.com/bid/5344\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}", }, }
Log in or create an account to share your comment.
Security Advisory comment format.
This schema specifies the format of a comment related to a security advisory.
Title of the comment
Description of the comment
Loading…
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.