Bug 1180502

Summary: kwallet: incorrect kwalletd CBC encryption handling
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jreznik, kevin, ltinkl, rdieter, rnovacek, than
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: KDE Applications 14.12.1, KDE Frameworks 5.6.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-09 10:39:27 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: 1048169, 1180503    
Bug Blocks: 1180504    

Description Vasyl Kaigorodov 2015-01-09 10:15:36 UTC
Until KDE Applications 14.12.0, kwalletd incorrectly handled CBC encryption blocks when encrypting secrets in kwl files. The secrets were still encrypted, but the result binary data corresponded to an ECB encrypted block instead of CBC.
The ECB encryption algorithm, even if it'll scramble user data, it'll produce same encrypted byte sequence for the same input text. As a result, attackers may eventually find-out the encrypted text.

Upstream patches: 
- kde-runtime KWallet:
  http://quickgit.kde.org/?p=kde-runtime.git&a=commit&h=14a8232d0b5b1bc5e0ad922292c6b5a1c501165c
- KDE Frameworks 5 KWallet:
  http://quickgit.kde.org/?p=kwallet.git&a=commit&h=6e588d795e6631c3c9d84d85fd3884a159b45849

External References:

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

Comment 1 Vasyl Kaigorodov 2015-01-09 10:15:52 UTC
Created kwallet tracking bugs for this issue:

Affects: fedora-all [bug 1180503]

Comment 2 Vasyl Kaigorodov 2015-01-09 10:39:27 UTC

*** This bug has been marked as a duplicate of bug 1048168 ***