First published: Fri Jun 13 2014(Updated: )
As noted in the SUSE bug report [1], numerous /tmp race conditions exist in ppc64-diag, in particular: rtas_errd/diag_support.c:233: char command[]="/usr/bin/find /proc/device-tree -name status -print > /tmp/get_dt_files"; rtas_errd/diag_support.c:241: fp1 = fopen("/tmp/get_dt_files", "r"); rtas_errd/prrn_hotplug:8:TMPFILE=`mktemp -p /tmp` scripts/ppc64_diag_mkrsrc:126:mkdir "/tmp/diagSEsnap", 0775; scripts/ppc64_diag_mkrsrc:127:$general_eed_file = "/tmp/diagSEsnap/snapH.tar.gz"; In the case of rtas_errd/prrn_hotplug, mktemp is used but is assumed to have succeeded; there is no check for the return value. mktemp should probably be used properly in all of these. I don't know if the data in /tmp/diagSEsnap is sensitive or not, but if it is, the permissions on that directory should probably be tightened up. No CVE(s) have been assigned to these issues as of yet. [1] <a href="https://bugzilla.novell.com/show_bug.cgi?id=882667">https://bugzilla.novell.com/show_bug.cgi?id=882667</a>
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
SUSE Linux Enterprise Server | =11-sp3 | |
Ppc64-diag Project | =2.6.1 | |
Red Hat Enterprise Linux Server | =6.0 | |
Red Hat Enterprise Linux Server | =7.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2014-4038 has a medium severity rating due to its potential for local privilege escalation.
To mitigate CVE-2014-4038, update affected software to the latest versions that patch the race condition vulnerabilities.
CVE-2014-4038 affects specific versions of SUSE Linux Enterprise Server and Red Hat Enterprise Linux.
CVE-2014-4038 is a local privilege escalation vulnerability caused by race conditions in the ppc64-diag software.
Yes, the exploit associated with CVE-2014-4038 typically involves manipulating temporary file permissions.