Bug 1508003

Summary: bind: default rndc key uses insecure hmac-md5
Product: [Fedora] Fedora Reporter: Petr Menšík <pemensik>
Component: bindAssignee: Petr Menšík <pemensik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: mruprich, msehnout, pemensik, thozza, vonsch, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: bind-9.11.1-8.P3.fc27 bind-9.11.1-3.P3.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-15 17:54:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Menšík 2017-10-31 16:34:34 UTC
Description of problem:
When named is first started and /etc/rndc.conf or /etc/rndc.key does not exist, /etc/rndc.key is generated. It uses insecure algorithm hmac-md5, when more secure algorithms are supported.

Version-Release number of selected component (if applicable):
bind-9.10.5-2.P2.fc25.x86_64
bind-9.11.1-2.P3.fc26.x86_64

How reproducible:
always

Steps to Reproduce:
1. dnf install bind
2. rm -f /etc/rndc.conf /etc/rndc.key
3. systemctl restart named
4. grep algorithm /etc/rndc.key

Actual results:
$ grep algorithm /etc/rndc.key 
	algorithm hmac-md5;

Expected results:
$ grep algorithm /etc/rndc.key 
	algorithm hmac-sha256;

Additional info:
All supported versions are affected

Comment 1 Fedora Update System 2017-11-13 19:31:32 UTC
bind-9.10.5-3.P3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b68d7f3b8b

Comment 2 Fedora Update System 2017-11-13 19:31:59 UTC
bind-9.11.1-3.P3.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d9cf76b94f

Comment 3 Fedora Update System 2017-11-13 19:32:26 UTC
bind-9.11.1-8.P3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5acfc0cae5

Comment 4 Fedora Update System 2017-11-14 03:14:23 UTC
bind-9.10.5-3.P3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-b68d7f3b8b

Comment 5 Fedora Update System 2017-11-14 04:10:17 UTC
bind-9.11.1-3.P3.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d9cf76b94f

Comment 6 Fedora Update System 2017-11-14 10:59:01 UTC
bind-9.11.1-8.P3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5acfc0cae5

Comment 7 Fedora Update System 2017-11-15 17:54:17 UTC
bind-9.11.1-8.P3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2017-11-22 02:28:54 UTC
bind-9.11.1-3.P3.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.