Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package dnsmasq for openSUSE:Factory checked 
in at 2026-11-27 19:40:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dnsmasq (Old)
 and      /work/SRC/openSUSE:Factory/.dnsmasq.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dnsmasq"

Fri Nov 27 19:40:41 2026 rev:110 rq:1400549 version:2.93

Changes:
--------
--- /work/SRC/openSUSE:Factory/dnsmasq/dnsmasq.changes  2026-11-04 
19:42:29.007935968 +0100
+++ /work/SRC/openSUSE:Factory/.dnsmasq.new.1340718/dnsmasq.changes     
2026-11-27 19:41:33.286097272 +0100
@@ -1,0 +2,7 @@
+Tue Nov 24 16:51:15 UTC 2026 - Reinhard Max <[email protected]>
+
+- CVE-2026-133730, bsc#1291656: Use-after-free of the relay header
+  in relay_upstream6() when a large DHCPv6 message causes the
+  output buffer to be reallocated (dnsmasq-CVE-2026-133730.patch).
+
+-------------------------------------------------------------------

New:
----
  dnsmasq-CVE-2026-133730.patch

----------(New B)----------
  New:  in relay_upstream6() when a large DHCPv6 message causes the
  output buffer to be reallocated (dnsmasq-CVE-2026-133730.patch).
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dnsmasq.spec ++++++
--- /var/tmp/diff_new_pack.InS0VY/_old  2026-11-27 19:41:34.200135297 +0100
+++ /var/tmp/diff_new_pack.InS0VY/_new  2026-11-27 19:41:34.202135380 +0100
@@ -45,6 +45,7 @@
 Patch3:         dnsmasq-CVE-2026-93008.patch
 Patch4:         dnsmasq-CVE-2026-93009.patch
 Patch5:         dnsmasq-CVE-2026-93011.patch
+Patch6:         dnsmasq-CVE-2026-133730.patch
 BuildRequires:  dbus-1-devel
 BuildRequires:  dos2unix
 BuildRequires:  libnettle-devel


++++++ dnsmasq-CVE-2026-133730.patch ++++++
From: Reinhard Max <[email protected]>
Date: Tue, 24 Nov 2026 10:00:00 +0000
Subject: [PATCH] Fix use-after-free of relay header in relay_upstream6()

CVE-2026-133730, bsc#1291656

relay_upstream6() keeps a pointer to the RELAY-FORW header at the
start of daemon->outpacket, then appends the CLIENT_MAC and
RELAY_MSG options with put_opt6(). If the relayed message does not
fit into the current buffer, expand_buf() reallocs it, so header
then points to freed memory. The link-address is later written
through that stale pointer for every matching relay. A client
sending a large DHCPv6 message to a relay interface can thereby
corrupt the heap and crash dnsmasq.

Get the header pointer again after the buffer has been filled.
---
 src/rfc3315.c | 5 +++++
 1 file changed, 5 insertions(+)

--- a/src/rfc3315.c
+++ b/src/rfc3315.c
@@ -2217,6 +2217,11 @@ int relay_upstream6(int iface_index, ssi
   o = new_opt6(OPTION6_RELAY_MSG);
   put_opt6(inbuff, sz);
   end_opt6(o);
+
+  /* The put_opt6() calls above may have reallocated the output
+     buffer, which leaves header pointing to freed memory. The
+     header is at the start of the buffer, so find it again. */
+  header = daemon->outpacket.iov_base;
   
   for (; relay; relay = relay->next)
     if (relay->iface_index != 0 && relay->iface_index == iface_index)

Reply via email to