Bug 1104455 (CVE-2014-0476) - CVE-2014-0476 chkrootkit: local privilege escalation
Summary: CVE-2014-0476 chkrootkit: local privilege escalation
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2014-0476
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1104456 1104457
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-04 04:14 UTC by Murray McAllister
Modified: 2023-05-12 04:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 05:40:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Murray McAllister 2014-06-04 04:14:07 UTC
A quoting issue was found in chkrootkit which would lead to a file in /tmp/ being executed, if /tmp/ was mounted without the noexec option. chkrootkit is typically run as the root user. A local attacker could use this flaw to escalate their privileges.

The problematic part was:

file_port=$file_port $i

Which is changed to file_port="$file_port $i" to fix the issue. From the Debian diff:

--- chkrootkit-0.49.orig/debian/patches/CVE-2014-0476.patch
+++ chkrootkit-0.49/debian/patches/CVE-2014-0476.patch
@@ -0,0 +1,13 @@
+Index: chkrootkit/chkrootkit
+===================================================================
+--- chkrootkit.orig/chkrootkit
++++ chkrootkit/chkrootkit
+@@ -117,7 +117,7 @@ slapper (){
+    fi
+    for i in ${SLAPPER_FILES}; do
+       if [ -f ${i} ]; then
+-       file_port=$file_port $i
++       file_port="$file_port $i"
+          STATUS=1
+       fi
+    done

Acknowledgements:

Red Hat would like to thank Thomas Stangner for reporting this issue.

Comment 1 Murray McAllister 2014-06-04 04:15:43 UTC
Created chkrootkit tracking bugs for this issue:

Affects: fedora-all [bug 1104456]
Affects: epel-all [bug 1104457]


Note You need to log in before you can comment on or make changes to this bug.