Bug 984639 (CVE-2016-4983) - VUL-1: CVE-2016-4983: dovecot insecure SSL/TLS key and certificate file creation
Summary: VUL-1: CVE-2016-4983: dovecot insecure SSL/TLS key and certificate file creation
Status: RESOLVED FIXED
Alias: CVE-2016-4983
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P4 - Low : Minor
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/170056/
Whiteboard: CVSSv2:SUSE:CVE-2016-4982:2.1:(AV:L/A...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-14 11:57 UTC by Marcus Meissner
Modified: 2017-06-13 09:02 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Meissner 2016-06-14 11:57:26 UTC
Redhat found a race condition between certificate creation and chmod of the keyfile in dovecot

quoting:
from: /usr/libexec/dovecot/mkcert.sh

$OPENSSL req -new -x509 -nodes -config $OPENSSLCONFIG -out $CERTFILE -keyout $KEYFILE -days 365 || exit 2
chown root:root $CERTFILE $KEYFILE
chmod 0600 $CERTFILE $KEYFILE

this can lead to the contents of the file being exposed between the time the file is created and the chmod command runs. I would suggest setting umask 077 first. 


References:
https://bugzilla.redhat.com/show_bug.cgi?id=1346055
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4982
Comment 1 Marcus Meissner 2016-06-14 11:58:15 UTC
(its not really a big race window, but if someone would target it, it coudl be reachable)
Comment 2 Swamp Workflow Management 2016-06-14 22:00:51 UTC
bugbot adjusting priority
Comment 3 Marcus Meissner 2016-06-15 12:31:55 UTC
CVE-2016-4983 is the correct CVE. CVE-2016-4982 was for authd
Comment 4 Marcus Rückert 2016-11-11 14:31:17 UTC
submitted
Comment 5 Swamp Workflow Management 2016-11-22 18:03:35 UTC
openSUSE-SU-2016:2876-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 984639
CVE References: CVE-2016-4983
Sources used:
openSUSE Leap 42.2 (src):    dovecot22-2.2.25-3.1
openSUSE Leap 42.1 (src):    dovecot22-2.2.18-9.1
openSUSE 13.2 (src):    dovecot22-2.2.13-3.7.1
Comment 6 Swamp Workflow Management 2016-11-25 18:08:46 UTC
SUSE-SU-2016:2915-1: An update that solves one vulnerability and has one errata is now available.

Category: security (low)
Bug References: 1003952,984639
CVE References: CVE-2016-4983
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP2 (src):    dovecot22-2.2.13-4.1
SUSE Linux Enterprise Software Development Kit 12-SP1 (src):    dovecot22-2.2.13-4.1
SUSE Linux Enterprise Server for Raspberry Pi 12-SP2 (src):    dovecot22-2.2.13-4.1
SUSE Linux Enterprise Server 12-SP2 (src):    dovecot22-2.2.13-4.1
SUSE Linux Enterprise Server 12-SP1 (src):    dovecot22-2.2.13-4.1
Comment 7 Marcus Meissner 2017-06-13 09:02:48 UTC
released