From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4fFYgX3t41z34LY for ; Tue, 17 Feb 2026 09:07:20 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4fFYgS5lzjz2xHh for ; Tue, 17 Feb 2026 09:07:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4fFYgR69wcz2C; Tue, 17 Feb 2026 09:07:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1771319235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=CamPpEaOh4t6msKUw8UgM7WmCp6j0MvvtjshYN/Xuvw=; b=sjc/EI0jpwpVlQhYQjg8KGy8g9pPDENyBm/lDIQSX9S1WQ63ecBXJpEqs/6fv64CEcBkag RF2tTpfCcExgq3laVAX26f4+VzIIjaqtbnqRroLsgjhPUqRH8/7YzwoXoVWOTY6Up6GSD0 xYpvS13pCm6L/5hgFG3V0E6aMmIPws+KRFurnei0ycGQvv43aOzdzWKQOrGy4PK5QRXfx6 ek7f/jmJg572QNWNNb9P793G8QDnG+/jwlS4F21+xyPFlC4dX4XH1qtGRUELc6eefcFWvh DeyJPba6QMqB0pkoKlZaryfgxu7XNCHNzyjhX1+WmOFezZyn8Hl/xhlyfL3w4w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1771319235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=CamPpEaOh4t6msKUw8UgM7WmCp6j0MvvtjshYN/Xuvw=; b=Kr6t/HfwKwneyXUd3qJfp53aZES+zRGZGTQkPqrGaHQzPvDM44El/yRAmgR782TnnJ1CE8 rB2MG4zTgnIbf9AA== From: ummeegge To: development@lists.ipfire.org Cc: ummeegge Subject: [PATCH] RPZ: ignore ZONEMD records to prevent root priming failure Date: Tue, 17 Feb 2026 09:07:07 +0000 Message-ID: <20260217090707.492743-1-ummeegge@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes RPZ zones with apex ZONEMD RR (type 63) create phantom QNAME trigger for root zone (.) after strip_dname_origin(), breaking DNSSEC priming: "rpz: applied [dbl-ads] . rpz-local-data . DNSKEY IN" Fixes: https://github.com/NLnetLabs/unbound/issues/1404 Signed-off-by: Erik Kapfer --- lfs/unbound | 5 +++++ src/patches/unbound-rpz-ignore-zonemd.patch | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/patches/unbound-rpz-ignore-zonemd.patch diff --git a/lfs/unbound b/lfs/unbound index 5df07f965..bab323c2b 100644 --- a/lfs/unbound +++ b/lfs/unbound @@ -70,6 +70,11 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + + # Apply unbound RPZ ZONEMD fix. + # Fix should be included in one of the following versions + cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/unbound-rpz-ignore-zonemd.patch + cd $(DIR_APP) && \ ./configure \ --prefix=/usr \ diff --git a/src/patches/unbound-rpz-ignore-zonemd.patch b/src/patches/unbound-rpz-ignore-zonemd.patch new file mode 100644 index 000000000..c761e52a8 --- /dev/null +++ b/src/patches/unbound-rpz-ignore-zonemd.patch @@ -0,0 +1,21 @@ +Subject: [PATCH] RPZ: ignore ZONEMD records to prevent root priming failure + +RPZ zones with apex ZONEMD RR (type 63) create phantom QNAME trigger for root +zone (.) after strip_dname_origin(), breaking DNSSEC priming: +"rpz: applied [dbl-ads] . rpz-local-data . DNSKEY IN" + +Fixes: https://github.com/NLnetLabs/unbound/issues/1404 +Tested-on: unbound-1.24.2 + +diff -Nur unbound-1.24.2.orig/services/rpz.c unbound-1.24.2/services/rpz.c +--- unbound-1.24.2.orig/services/rpz.c 2025-11-26 10:16:06.000000000 +0000 ++++ unbound-1.24.2/services/rpz.c 2026-02-16 10:00:46.973582336 +0000 +@@ -160,6 +160,7 @@ + case LDNS_RR_TYPE_NSEC: + case LDNS_RR_TYPE_NSEC3: + case LDNS_RR_TYPE_NSEC3PARAM: ++ case LDNS_RR_TYPE_ZONEMD: + return 1; + default: + break; + -- 2.43.0