Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654746 (CVE-2018-10380) - <kde-plasma/kwallet-pam-5.11.5-r1: Access to privileged files possible (CVE-2018-10380)
Summary: <kde-plasma/kwallet-pam-5.11.5-r1: Access to privileged files possible (CVE-2...
Status: RESOLVED FIXED
Alias: CVE-2018-10380
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo Security
URL: https://cve.mitre.org/cgi-bin/cvename...
Whiteboard: B1 [noglsa cve]
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-03 15:14 UTC by Nils Freydank
Modified: 2018-05-08 15:18 UTC (History)
1 user (show)

See Also:
Package list:
kde-plasma/kwallet-pam-5.11.5-r1
Runtime testing required: ---
stable-bot: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Freydank 2018-05-03 15:14:19 UTC
Upstream announced a security issue related to kwallet-pam <5.12.6 (5.12.5 is the lates released version so far). The linked upstream advisory contains links to patches for plasma 5.12 and 5.8:

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

Plasma 5.8
    https://commits.kde.org/kwallet-pam/99abc7fde21f40cc6da5feb6ee766cc46fcca1f8
    https://commits.kde.org/kwallet-pam/802f305d81f8771c4f4a8bd7fd0e368ffc6f9b3b

Reproducible: Always
Comment 1 Andreas Sturmlechner gentoo-dev 2018-05-03 15:22:44 UTC
See also: https://marc.info/?l=kde-announce&m=152534806103730&w=2
Comment 2 Georgy Yakovlev archtester gentoo-dev 2018-05-03 18:21:23 UTC
at lest gentoo-sources set

 fs.protected_hardlinks = 1
 fs.protected_symlinks = 1

by default

so this should not be possible to exploit this vulnerability.


users of vanilla-sources or other kernels may be affected though
Comment 3 Andreas Sturmlechner gentoo-dev 2018-05-04 19:14:15 UTC
Apparently these security fixes are currently causing regressions:

https://bugs.kde.org/show_bug.cgi?id=393856
https://bugs.archlinux.org/task/58446
https://bugs.launchpad.net/ubuntu/+source/kwallet-pam/+bug/1769187
Comment 4 Larry the Git Cow gentoo-dev 2018-05-05 11:28:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1744b94bb12908e35666a1322d06615b7f7657b

commit f1744b94bb12908e35666a1322d06615b7f7657b
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-05-05 11:16:14 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-05-05 11:16:14 +0000

    kde-plasma/kwallet-pam: Fix CVE-2018-10380
    
    Bug: https://bugs.gentoo.org/654746
    Package-Manager: Portage-2.3.32, Repoman-2.3.9

 .../kwallet-pam-5.11.5-CVE-2018-10380-1.patch      | 206 +++++++++++++++++++++
 .../kwallet-pam-5.11.5-CVE-2018-10380-2.patch      | 135 ++++++++++++++
 .../kwallet-pam-5.11.5-CVE-2018-10380-3.patch      |  54 ++++++
 .../kwallet-pam/kwallet-pam-5.11.5-r1.ebuild       |  35 ++++
 .../kwallet-pam/kwallet-pam-5.12.5-r1.ebuild       |  35 ++++
 5 files changed, 465 insertions(+)
Comment 5 Andreas Sturmlechner gentoo-dev 2018-05-06 11:07:41 UTC
Arches, please stabilise.
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2018-05-07 00:25:32 UTC
x86 stable
Comment 7 Agostino Sarubbo gentoo-dev 2018-05-07 09:01:47 UTC
amd64 stable.

Maintainer(s), please cleanup.
Security, please add it to the existing request, or file a new one.
Comment 8 D'juan McDonald (domhnall) 2018-05-07 16:31:03 UTC
New GLSA request file. Please add to CVETool. 


Gentoo Security Advocate
(jmbailey/mbailey_j)
Comment 9 Larry the Git Cow gentoo-dev 2018-05-07 17:01:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6087f8347b5df6cf69ce7b51780787737f2ad4ee

commit 6087f8347b5df6cf69ce7b51780787737f2ad4ee
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-05-07 17:01:34 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-05-07 17:01:34 +0000

    kde-plasma/kwallet-pam: Cleanup vulnerable
    
    Bug: https://bugs.gentoo.org/654746
    Package-Manager: Portage-2.3.36, Repoman-2.3.9

 kde-plasma/kwallet-pam/kwallet-pam-5.11.5.ebuild | 33 ------------------------
 kde-plasma/kwallet-pam/kwallet-pam-5.12.5.ebuild | 33 ------------------------
 2 files changed, 66 deletions(-)
Comment 10 Aaron Bauman (RETIRED) gentoo-dev 2018-05-08 15:18:35 UTC
This is mitigated by the default kernel sources which are Gentoo security supported.

@kde, thanks for patching so quickly as usual!