Bug 845350 (CVE-2012-3449)

Summary: CVE-2012-3449 openvswitch: creates world writable directories: /var/lib/openvswitch/pki/*ca/incoming/
Product: [Other] Security Response Reporter: Kurt Seifried <kseifried>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: chrisw, markmc, tgraf
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,public=20120802,reported=20120802,source=internet,cvss2=3.3/AV:L/AC:M/Au:N/C:P/I:P/A:N,fedora-all/openvswitch=affected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-28 10:33:52 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 845351    
Bug Blocks:    

Description Kurt Seifried 2012-08-02 15:05:58 EDT
Andreas Beckmann debian@abeckmann.de reports:

openvswitch-pki creates the following world writable directories during
installation:

    drwx-wx-wx 2 root root 40 Aug  1 05:32 /var/lib/openvswitch/pki/controllerca/incoming
    drwx-wx-wx 2 root root 40 Aug  1 05:32 /var/lib/openvswitch/pki/switchca/incoming

Even if an ordinary local user cannot list the contents of the
directory, he may correctly derive/guess filenames (unless they are
exclusively $(mktemp)) and delete and replace files in there.

I don't know how openvswitch-pki works, how it uses this directory,
what probelms could possibly arise out of this.

References: 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683665

Please note on Fedora 16 and 17 run the command:

/usr/bin/ovs-pki --force init

to create the directories.
Comment 1 Kurt Seifried 2012-08-02 15:06:39 EDT
Created openvswitch tracking bugs for this issue

Affects: fedora-all [bug 845351]
Comment 2 Thomas Graf 2012-11-19 08:56:45 EST
Fixes pushed to all affected Fedora versions.
Comment 3 Thomas Graf 2013-02-28 10:33:52 EST
See comment #c2