diff mbox series

[meta-networking,wrynose,5/32] unbound: patch CVE-2026-32792

Message ID 20260910230932.173913-5-ankur.tyagi85@gmail.com
State Under Review
Delegated to: Anuj Mittal
Headers show
Series [meta-oe,wrynose,1/32] zabbix: ignore multiple CVEs | expand

Commit Message

Ankur Tyagi Sept. 10, 2026, 11:09 p.m. UTC
From: Ankur Tyagi <ankur.tyagi85@gmail.com>

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

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../unbound/unbound/CVE-2026-32792.patch      | 31 +++++++++++++++++++
 .../recipes-support/unbound/unbound_1.24.2.bb |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 meta-networking/recipes-support/unbound/unbound/CVE-2026-32792.patch
diff mbox series

Patch

diff --git a/meta-networking/recipes-support/unbound/unbound/CVE-2026-32792.patch b/meta-networking/recipes-support/unbound/unbound/CVE-2026-32792.patch
new file mode 100644
index 0000000000..5b1a248979
--- /dev/null
+++ b/meta-networking/recipes-support/unbound/unbound/CVE-2026-32792.patch
@@ -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) {
diff --git a/meta-networking/recipes-support/unbound/unbound_1.24.2.bb b/meta-networking/recipes-support/unbound/unbound_1.24.2.bb
index 3adc98621e..1225cb99c2 100644
--- a/meta-networking/recipes-support/unbound/unbound_1.24.2.bb
+++ b/meta-networking/recipes-support/unbound/unbound_1.24.2.bb
@@ -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"