Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1326251 - (CVE-2016-3111) CVE-2016-3111 pulp: Race condition when generating RSA keys for authenticating messages between server and consumers
CVE-2016-3111 pulp: Race condition when generating RSA keys for authenticatin...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20160413,reported=2...
: Security
Depends On: 1326913 1326919
Blocks: 1325942
  Show dependency treegraph
 
Reported: 2016-04-12 05:07 EDT by Adam Mariš
Modified: 2017-01-05 06:14 EST (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
It was found that the private RSA key was created in a directory that is world-readable for a small amount of time. A local user could possibly use this flaw to gain access to the private key information in the file.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-09-19 15:03:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed patch (1.44 KB, patch)
2016-04-12 11:38 EDT, Jeremy Cline
no flags Details | Diff

  None (edit)
Description Adam Mariš 2016-04-12 05:07:22 EDT
It was found that spec file generating RSA keys, used for authenticating messages between server and consumers, as post installation step does this in world-readable directories for a brief moment.

Vulnerable code:

https://github.com/pulp/pulp/blob/master/pulp.spec#L473-L486
https://github.com/pulp/pulp/blob/master/pulp.spec#L894-L903
Comment 1 Adam Mariš 2016-04-12 05:07:31 EDT
Acknowledgments:

Name: Jeremy Cline (Red Hat)
Comment 2 Randy Barlow 2016-04-12 09:29:25 EDT
The Fedora spec file is also vulnerable in this way:

http://pkgs.fedoraproject.org/cgit/rpms/pulp.git/tree/pulp.spec#n317

and

http://pkgs.fedoraproject.org/cgit/rpms/pulp.git/tree/pulp.spec#n620

Additionally, the Fedora spec file fails to protect the key but that is reported in a separate issue:

https://bugzilla.redhat.com/show_bug.cgi?id=1325693
Comment 4 Jeremy Cline 2016-04-12 11:38 EDT
Created attachment 1146522 [details]
Proposed patch
Comment 7 Kurt Seifried 2016-09-19 15:03:05 EDT
This issue has been addressed in the following products:

  Red Hat Satellite 6.2

Via RHSA-2016:1501

Note You need to log in before you can comment on or make changes to this bug.