Bug 1561684 (CVE-2014-2312)

Summary: CVE-2014-2312 thermald: privilege escalation in android_main.cpp
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bberg, besser82
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-17 15:24:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1561685, 1561686    
Bug Blocks:    

Description Laura Pardo 2018-03-28 17:05:12 UTC
The main function in android_main.cpp in thermald allows local users to write to arbitrary files via a symlink attack on /tmp/thermald.pid on systems that lack of symlink and hardlink protections in world-writable directories


References:
http://www.openwall.com/lists/oss-security/2014/03/08/4

Comment 1 Laura Pardo 2018-03-28 17:05:40 UTC
Created thermald tracking bugs for this issue:

Affects: fedora-all [bug 1561686]
Affects: epel-7 [bug 1561685]

Comment 2 Benjamin Berg 2019-05-17 15:24:58 UTC
This CVE is specific to code that is only used on Android. In other cases the code in main.cpp is used which creates the PID file in /var/run/thermald, AFAICT there is no privilege escalation there as normal users are unable to write the location.