Bug 2067273 - dnsmasq fails validation on GOSTHASH digests
Summary: dnsmasq fails validation on GOSTHASH digests
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: dnsmasq
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Petr Menšík
QA Contact: rhel-cs-infra-services-qe
URL: https://rootcanary.org/test.html
Whiteboard:
Depends On: 1945293 1956873 2067270
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-23 17:24 UTC by Petr Menšík
Modified: 2022-12-08 16:04 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2067270
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
gost disable patch (2.21 KB, patch)
2022-03-23 17:26 UTC, Petr Menšík
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-116533 0 None None None 2022-03-23 17:48:15 UTC

Description Petr Menšík 2022-03-23 17:24:05 UTC
+++ This bug was initially created as a clone of Bug #2067270 +++

Description of problem:
When dnssec validation is enabled and trust anchor filled, dnsmasq does not pass all algorithms on rootcanary.org/test. Digest 3(gosthash94) fails with SERVFAIL instead of INSECURE. Nettle on Fedora/RHEL has GOST implementation disabled, but it has no way to 

Version-Release number of selected component (if applicable):
dnsmasq-2.86-5.fc35.x86_64

How reproducible:
always

Steps to Reproduce:
1. enable dnssec and trust anchor
2. start dnsmasq
3. use local dnsmasq as resolver
4. visit https://rootcanary.org/test.html

Actual results:
All GOST algorithms fail with SERVFAIL. If GOST is disabled explicitly, it should fail with 

Expected results:
Names like secure.d3a7n3.rootcanary.net should either be INSECURE or VALID, but current result is bogus.


Additional info:

--- Additional comment from Petr Menšík on 2022-03-23 18:23:15 CET ---

GOST support in Fedora or RHEL is unwanted. Possible fix would be explicitly disabling its support from dnsmasq.

Comment 1 Petr Menšík 2022-03-23 17:26:29 UTC
Created attachment 1867932 [details]
gost disable patch

Makes GOST digest and key algorithm unsupported, therefore it makes it pass without ad flag and validation result is INSECURE.

Patch for 2.85

Comment 2 Petr Menšík 2022-03-23 17:37:39 UTC
Alternative fix would be switching to OpenSSL backend (bug #1956873), which handles GOST algorithm well.

Comment 4 Petr Menšík 2022-11-10 17:07:30 UTC
Proposed candidate patch:
https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2022q4/016686.html


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