Bug 1574852 (CVE-2018-10380)

Summary: CVE-2018-10380 pam-kwallet: Access to privileged files
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: jgrulich, orion, rdieter
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: 2021-10-21 20:02:50 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: 1574853    
Bug Blocks:    

Description Andrej Nemec 2018-05-04 07:46:15 UTC
It was found that kwallet-pam was doing file writing and permission changing as root that with correct timing and use of carefully crafted symbolic links could allow a non privileged user to become the owner of any file on the system.

External References:

https://www.kde.org/info/security/advisory-20180503-1.txt

Upstream patches:

https://commits.kde.org/kwallet-pam/2134dec85ce19d6378d03cddfae9e5e464cb24c0
https://commits.kde.org/kwallet-pam/01d4143fda5bddb6dca37b23304dc239a5fb38b5

Comment 1 Andrej Nemec 2018-05-04 07:46:52 UTC
Created pam-kwallet tracking bugs for this issue:

Affects: epel-7 [bug 1574853]

Comment 2 Fedora Update System 2018-05-14 17:53:18 UTC
pam-kwallet-5.12.5-3.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2018-05-14 18:34:52 UTC
pam-kwallet-5.12.5-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.