unbound: patch CVE-2026-32792

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-32792

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
Ankur Tyagi
2026-09-15 10:13:52 +05:30
committed by Anuj Mittal
parent 115d62e043
commit e5bdfcd5ed
2 changed files with 32 additions and 0 deletions
@@ -0,0 +1,31 @@
From 14bb8321708507fe138d3d6e77e51a9b86ea75b8 Mon Sep 17 00:00:00 2001
From: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl>
Date: Wed, 20 May 2026 10:15:30 +0200
Subject: [PATCH] - Fix CVE-2026-32792, Packet of death with DNSCrypt. Thanks
to Andrew Griffiths from 'calif.io' for the report.
(cherry picked from commit a587535c5dd8a5ea8259507152f055be318367df)
CVE: CVE-2026-32792
Upstream-Status: Backport [https://github.com/NLnetLabs/unbound/commit/a587535c5dd8a5ea8259507152f055be318367df]
Dropped changes to the Changelog file.
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
dnscrypt/dnscrypt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dnscrypt/dnscrypt.c b/dnscrypt/dnscrypt.c
index 4902447fd..173484cdf 100644
--- a/dnscrypt/dnscrypt.c
+++ b/dnscrypt/dnscrypt.c
@@ -361,7 +361,7 @@ dnscrypt_server_uncurve(struct dnsc_env* env,
len -= DNSCRYPT_QUERY_HEADER_SIZE;
- while (*sldns_buffer_at(buffer, --len) == 0)
+ while (len>0 && *sldns_buffer_at(buffer, --len) == 0)
;
if (*sldns_buffer_at(buffer, len) != 0x80) {
@@ -15,6 +15,7 @@ SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master;t
file://CVE-2026-42944-1.patch \
file://CVE-2026-42944-2.patch \
file://CVE-2026-42959.patch \
file://CVE-2026-32792.patch \
"
SRCREV = "f6269baa605d31859f28770e01a24e3677e5f82c"