← CVECheck
HomeVulnerabilities

CVE-2002-0638 — MEDIUM severity vulnerability (setpwnam.c in the util-linux package, as included in Red Hat)

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 c

CVE IDCVE-2002-0638
SeverityMEDIUM
CVSS score6.2
CVSS vectorAV:L/AC:H/Au:N/C:C/I:C/A:C
CWENVD-CWE-Other
StatusModified
Published2002-08-12
Last modified2026-04-16
Descriptionsetpwnam.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.
SourceNIST National Vulnerability Database

🔍 Search all vulnerabilities →