Bug 845426 (CVE-2012-3466)

Summary: CVE-2012-3466 gnome-keyring: improper caching of passwords/passphrase
Product: [Other] Security Response Reporter: Kurt Seifried <kseifried>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: debarshir, tbzatek, walters
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,public=20120802,reported=20120802,source=internet,cvss2=2.6/AV:L/AC:H/Au:N/C:P/I:P/A:N,fedora-all/gnome-keyring=affected
Fixed In Version: gnome-keyring-3.4.1-3.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-21 03:04:19 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 846904    
Bug Blocks: 845428    

Description Kurt Seifried 2012-08-03 00:39:52 EDT
Julien Cristau <jcristau@debian.org> reports:

Package: gnome-keyring
Version: 3.4.1-4
Severity: grave
Tags: security
Justification: user security hole

At some point gnome-keyring seemed to obey the configuration asking it
to stop caching passphrases after a while.  It no longer does.

$ gsettings list-recursively org.gnome.crypto.cache
org.gnome.crypto.cache gpg-cache-authorize false
org.gnome.crypto.cache gpg-cache-method 'idle'
org.gnome.crypto.cache gpg-cache-ttl 600

Yet I'm never asked for the passphrase again.

Comment 1 Kurt Seifried 2012-08-03 01:14:44 EDT
I have tested this on Fedora 17, trying "idle", "timeout" and "session" int he org.gnome.crypto.cache gpg-cache-method value. The "idle" and "timeout" values do not appear to work as they should, after the timeout I was able to use GPG without entering my password. To test:

gsettings set org.gnome.crypto.cache gpg-cache-method 'idle'
gsettings set org.gnome.crypto.cache gpg-cache-ttl 60

then use gpg/gpg2 to sign something, you should be prompted for your gpg password. Then leave it idle, the session should timeout after 60 seconds. Try signing something again, you are not prompted for the password.
Comment 4 Huzaifa S. Sidhpurwala 2012-08-09 01:11:27 EDT
Upstream patches available at:
Comment 5 Huzaifa S. Sidhpurwala 2012-08-09 01:23:12 EDT
Created gnome-keyring tracking bugs for this issue

Affects: fedora-all [bug 846904]
Comment 7 Huzaifa S. Sidhpurwala 2012-08-21 03:05:05 EDT

Not Vulnerable. This issue does not affect the version of gnome-keyring as shipped with Red Hat Enterprise Linux 5 and 6.