util-linux (script) command hardlink can be used to overwrite files
| util-linux-script-hardlink (7718) |
Description:
The util-linux (script) command could allow a local attacker to overwrite files. An attacker could set hardlinks from the typescript log file to any file on the system, which would be overwritten once a root user executes the script command.
*CVSS:
| Base Score: | 2.5 |
| Access Vector: | Local |
| Access Complexity: | Low |
| Authentication: | Not Required |
| Confidentiality Impact: | None |
| Integrity Impact: | Partial |
| Availability Impact: | None |
| Temporal Score: | 1.8 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
File Manipulation
Remedy:
Upgrade to the latest version of util-linux (2.11n or later), available from the Linux Kernel Archives FTP site. See References.
For Red Hat Linux:
Refer to RHSA-2005:782-12 for patch, upgrade, or suggested workaround information. See References.
References:
- BugTraq Mailing List, Wed Dec 12 2001 - 17:22:43 CST: Silly 'script' hardlink bug.
- BugTraq Mailing List, Wed Dec 12 2001 - 17:22:43 CST: Silly 'script' hardlink bug - fixed.
- Linux Kernel Archives FTP site: /pub/linux/utils/util-linux/.
- ASA-2006-014: util-linux and mount security update (RHSA-2005-782)
- BID-16280: Util-Linux Script Command Arbitrary File Overwrite Vulnerability
- CVE-2001-1494: script command in the util-linux package before 2.11n allows local users to overwrite arbitrary files by setting a hardlink from the typescript log file to any file on the system, then having root execute the script command.
- RHSA-2005-782: util-linux and mount security update
- SA16785: util-linux umount "-r" Re-Mounting Security Issue
- SA18502: Avaya Products util-linux / mount Security Issue and Vulnerability
Platforms Affected:
- Kernel util-linux
- RedHat Enterprise Linux 2.1 AS
- RedHat Enterprise Linux 2.1 ES
- RedHat Enterprise Linux 2.1 WS
- RedHat Enterprise Linux 3 Desktop
- RedHat Enterprise Linux 3 WS
- RedHat Enterprise Linux 3 ES
- RedHat Enterprise Linux 3 AS
- RedHat Enterprise Linux 4 Desktop
- RedHat Enterprise Linux 4 AS
- RedHat Enterprise Linux 4 WS
- RedHat Enterprise Linux 4 ES
- RedHat Linux Advanced Workstation 2.1 Itanium
Reported:
Dec 12, 2001
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
