{"vuid":"VU#426456","idnumber":"426456","name":"gpm creates temporary files insecurely","keywords":["gpm","race","symlink","temporary","tmp"],"overview":"gpm version 1.19.3, which usually runs as root, is vulnerable due to a flaw that allows a local user to exploit a race condition to corrupt files that gpm uses.","clean_desc":"gpm (General Purpose Mouse) is a program that lets you use the mouse in console mode when not using XWindows. It is usually included in Linux distributions, and can be started from the command line or in the startup script /etc/rc.d/rc.local. A vulnerability in gpm version 1.19.3 allows a local user to exploit a race condition to corrupt files that gpm uses. The flaw exists because gpm creates files in the /tmp directory using predictable filenames without checking whether a file with that name already exists. Malicious local users can therefore create a symbolic link to a file that will be used by gpm. When gpm is run, the creation of the file fails (since it already exists) and gpm uses the symbolically linked file for its processing. The malicious user can then overwrite or append to the file as it is being used by the privileged gpm program.","impact":"Malicious users can destroy the integrity of or deny access to files processed by gpm, which usually runs as root.","resolution":"Upgrade affected Linux distributions.","workarounds":"","sysaffected":"","thanks":"Thanks to Greg Kroah-Hartman of WireX for discovering this vulnerability. Thanks also to BugTraq for a good description of the underlying problem.","author":"This document was written by Andy Moore.","public":["http://www.securityfocus.com/bid/2188","http://download.immunix.org/ImmunixOS/7.0-beta/updates/IMNX-2000-70-016-01","http://archives.neohapsis.com/archives/linux/immunix/2001-q1/0010.html","http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2001-0116","http://www.linux-mandrake.com/en/security/2001/MDKSA-2001-006.php3?dis=6"],"cveids":["CVE-2001-0116"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2001-01-12T18:18:34Z","publicdate":"2001-01-10T00:00:00Z","datefirstpublished":"2001-06-08T15:38:02Z","dateupdated":"2001-06-22T13:40:35Z","revision":13,"vrda_d1_directreport":"","vrda_d1_population":"","vrda_d1_impact":"","cam_widelyknown":"15","cam_exploitation":"0","cam_internetinfrastructure":"3","cam_population":"15","cam_impact":"7","cam_easeofexploitation":"15","cam_attackeraccessrequired":"5","cam_scorecurrent":"2.6578125","cam_scorecurrentwidelyknown":"3.39609375","cam_scorecurrentwidelyknownexploited":"6.34921875","ipprotocol":"","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":2.6578125,"vulnote":null}