🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
4 messages
4 total messages Started by Thomas Goirand Sat, 24 Oct 2026 12:50
Bug#1151917: trixie-pu: package dnspython/2.7.0-1 (CVE-2026-114605)
#1908
Author: Thomas Goirand
Date: Sat, 24 Oct 2026 12:50
174 lines
8590 bytes
This is a multi-part MIME message sent by reportbug.


--===============0006755993828501090==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: dnspython@packages.debian.org
Control: affects -1 + src:dnspython
User: release.debian.org@packages.debian.org
Usertags: pu

Hi,

[ Reason ]
I've uploaded dnspython/2.7.0-1+deb13u1 fixing CVE-2026-114605.

[ Impact ]
Possible DoS with current Trixie version.

[ Tests ]
The patch adds a test, ran at package build time.

[ Risks ]
Not much, patch is simple.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Other info ]
Note that autopkgtest are failing, but just right
the previous version (it's not the scope of this
upload to fix this).

Please approve dnspython/2.7.0-1+deb13u1

Cheers,

Thomas Goirand (zigo)

--===============0006755993828501090==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="dnspython_2.7.0-1+deb13u1.debdiff"

diff -Nru dnspython-2.7.0/debian/changelog dnspython-2.7.0/debian/changelog
--- dnspython-2.7.0/debian/changelog	2024-12-01 21:23:40.000000000 +0100
+++ dnspython-2.7.0/debian/changelog	2026-10-24 14:34:30.000000000 +0200
@@ -1,3 +1,13 @@
+dnspython (2.7.0-1+deb13u1) trixie; urgency=medium
+
+  * Backport upstream fix for CVE-2026-114605: limit DNS compression
+    pointer chains to 16 hops to prevent excessive CPU use (denial of
+    service) when parsing untrusted wire-format messages
+    (Closes: #1151842):
+    - 0001-Limit-decompression-to-a-chain-length-of-at-most-16-.patch
+
+ -- Thomas Goirand <zigo@debian.org>  Sat, 24 Oct 2026 14:34:30 +0200
+
 dnspython (2.7.0-1) unstable; urgency=medium
 
   * Team Upload
diff -Nru dnspython-2.7.0/debian/patches/0001-Limit-decompression-to-a-chain-length-of-at-most-16-.patch dnspython-2.7.0/debian/patches/0001-Limit-decompression-to-a-chain-length-of-at-most-16-.patch
--- dnspython-2.7.0/debian/patches/0001-Limit-decompression-to-a-chain-length-of-at-most-16-.patch	1970-01-01 01:00:00.000000000 +0100
+++ dnspython-2.7.0/debian/patches/0001-Limit-decompression-to-a-chain-length-of-at-most-16-.patch	2026-10-24 14:34:30.000000000 +0200
@@ -0,0 +1,92 @@
+Description: Limit decompression to a chain length of at most 16 pointers.
+ A maliciously crafted DNS message may cause dns.name.from_wire_parser()
+ to use excessive CPU for DNS name decompression.  Applications which
+ process untrusted DNS wire form messages with dnspython may be degraded
+ or DoS'd by the extra CPU use required (CVE-2026-114605,
+ GHSA-45c3-73f7-pv4m).
+ .
+ Credit: Evgenios Gkritsis, Constantinos Patsakis and George
+ Stergiopoulos.
+Author: Bob Halley <halley@dnspython.org>
+Date: Sat, 26 Sep 2026 13:38:07 -0700
+Origin: upstream, https://github.com/rthalley/dnspython/commit/b485e460c266540a1a09ca6d8d1d7b685b1d3023
+Bug: https://github.com/rthalley/dnspython/security/advisories/GHSA-45c3-73f7-pv4m
+Bug-Debian: https://bugs.debian.org/1151842
+Last-Update: 2026-10-24
+
+Index: dnspython/dns/name.py
+===================================================================
+--- dnspython.orig/dns/name.py
++++ dnspython/dns/name.py
+@@ -86,6 +86,10 @@ class BadPointer(dns.exception.FormError
+     """A DNS compression pointer points forward instead of backward."""
+ 
+ 
++class PointerChainTooLong(dns.exception.FormError):
++    """A DNS compression pointer chain was too long."""
++
++
+ class BadLabelType(dns.exception.FormError):
+     """The label type in DNS name wire format is unknown."""
+ 
+@@ -1064,6 +1068,9 @@ def from_text(
+     return Name(labels)
+ 
+ 
++MAX_COMPRESSION_POINTER_CHAIN = 16
++
++
+ # we need 'dns.wire.Parser' quoted as dns.name and dns.wire depend on each other.
+ 
+ 
+@@ -1082,6 +1089,7 @@ def from_wire_parser(parser: "dns.wire.P
+ 
+     labels = []
+     biggest_pointer = parser.current
++    hops = 0
+     with parser.restore_furthest():
+         count = parser.get_uint8()
+         while count != 0:
+@@ -1092,6 +1100,9 @@ def from_wire_parser(parser: "dns.wire.P
+                 if current >= biggest_pointer:
+                     raise BadPointer
+                 biggest_pointer = current
++                hops += 1
++                if hops > MAX_COMPRESSION_POINTER_CHAIN:
++                    raise PointerChainTooLong
+                 parser.seek(current)
+             else:
+                 raise BadLabelType
+Index: dnspython/tests/test_name.py
+===================================================================
+--- dnspython.orig/tests/test_name.py
++++ dnspython/tests/test_name.py
+@@ -739,6 +739,28 @@ class NameTestCase(unittest.TestCase):
+ 
+         self.assertRaises(dns.name.BadLabelType, bad)
+ 
++    def testCompressionChainLength(self):
++        # We're going to decode some wire starting two bytes from the end.  At this
++        # position is a pointer which points to four bytes from the end, and it points
++        # to one 6 bytes from the end, etc., until finally the 16th pointer points at
++        # offset zero, which is the root label followed by a byte of padding.  After
++        # all of this useless pointer hopping, we should get the root name.
++        w = b"\x00\x00\xc0\x00\xc0\x02\xc0\x04\xc0\x06\xc0\x08\xc0\x0a\xc0\x0c\xc0\x0e\xc0\x10\xc0\x12\xc0\x14\xc0\x16\xc0\x18\xc0\x1a\xc0\x1c\xc0\x1e"
++        self.assertEqual(len(w), 34)
++        starts = [c for c in w if c == 0xC0]
++        self.assertEqual(len(starts), dns.name.MAX_COMPRESSION_POINTER_CHAIN)
++
++        def bad():
++            # Now we make the wire one pointer longer, which is too long!
++            w1 = w + b"\xc0\x20"
++            self.assertEqual(len(w1), 36)
++            starts = [c for c in w1 if c == 0xC0]
++            self.assertEqual(len(starts), dns.name.MAX_COMPRESSION_POINTER_CHAIN + 1)
++            dns.name.from_wire(w1, 34)
++
++        self.assertEqual(dns.name.from_wire(w, 32)[0], dns.name.from_text("."))
++        self.assertRaises(dns.name.PointerChainTooLong, bad)
++
+     def testParent1(self):
+         n = dns.name.from_text("foo.bar.")
+         self.assertEqual(n.parent(), dns.name.from_text("bar."))
diff -Nru dnspython-2.7.0/debian/patches/series dnspython-2.7.0/debian/patches/series
--- dnspython-2.7.0/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ dnspython-2.7.0/debian/patches/series	2026-10-24 14:34:30.000000000 +0200
@@ -0,0 +1 @@
+0001-Limit-decompression-to-a-chain-length-of-at-most-16-.patch

--===============0006755993828501090==--
Bug#1151917: trixie-pu: package dnspython/2.7.0-1 (CVE-2026-114605)
#1912
Author: Salvatore Bonaccorso
Date: Sat, 24 Oct 2026 14:40
37 lines
2697 bytes
Hi Thomas,

On Sat, Oct 24, 2026 at 02:47:39PM +0200, Thomas Goirand wrote:
> Package: release.debian.org
> Severity: normal
> Tags: trixie
> X-Debbugs-Cc: dnspython@packages.debian.org
> Control: affects -1 + src:dnspython
> User: release.debian.org@packages.debian.org
> Usertags: pu
> 
> Hi,
> 
> [ Reason ]
> I've uploaded dnspython/2.7.0-1+deb13u1 fixing CVE-2026-114605.
> 
> [ Impact ]
> Possible DoS with current Trixie version.
> 
> [ Tests ]
> The patch adds a test, ran at package build time.
> 
> [ Risks ]
> Not much, patch is simple.
> 
> [ Checklist ]
>   [x] *all* changes are documented in the d/changelog
>   [x] I reviewed all changes and I approve them
>   [x] attach debdiff against the package in (old)stable
>   [x] the issue is verified as fixed in unstable

But at time of writing it is yet 2.8.0-6 in unstable and missing the
fix. Do you have an upload pending rebasing to 2.9.0 containing the
fix?

Regards,
Salvatore
Bug#1151917: trixie-pu: package dnspython/2.7.0-1 (CVE-2026-114605)
#2504
Author: Salvatore Bonaccorso
Date: Thu, 29 Oct 2026 06:20
42 lines
3200 bytes
Hi Thomas,

On Sat, Oct 24, 2026 at 04:36:13PM +0200, Salvatore Bonaccorso wrote:
> Hi Thomas,
> 
> On Sat, Oct 24, 2026 at 02:47:39PM +0200, Thomas Goirand wrote:
> > Package: release.debian.org
> > Severity: normal
> > Tags: trixie
> > X-Debbugs-Cc: dnspython@packages.debian.org
> > Control: affects -1 + src:dnspython
> > User: release.debian.org@packages.debian.org
> > Usertags: pu
> > 
> > Hi,
> > 
> > [ Reason ]
> > I've uploaded dnspython/2.7.0-1+deb13u1 fixing CVE-2026-114605.
> > 
> > [ Impact ]
> > Possible DoS with current Trixie version.
> > 
> > [ Tests ]
> > The patch adds a test, ran at package build time.
> > 
> > [ Risks ]
> > Not much, patch is simple.
> > 
> > [ Checklist ]
> >   [x] *all* changes are documented in the d/changelog
> >   [x] I reviewed all changes and I approve them
> >   [x] attach debdiff against the package in (old)stable
> >   [x] the issue is verified as fixed in unstable
> 
> But at time of writing it is yet 2.8.0-6 in unstable and missing the
> fix. Do you have an upload pending rebasing to 2.9.0 containing the
> fix?

Friendly ping? (The fix is yet missing in unstable).

Regards,
Salvatore
Bug#1151917: dnspython 2.7.0-1+deb13u1 flagged for acceptance
#3439
Author: Adam D Barratt
Date: Fri, 06 Nov 2026 13:30
17 lines
2048 bytes
package release.debian.org
tags 1151917 = trixie pending
thanks

Hi,

The upload referenced by this bug report has been flagged for acceptance into the proposed-updates queue for Debian trixie.

Thanks for your contribution!

Upload details
==============

Package: dnspython
Version: 2.7.0-1+deb13u1

Explanation: fix denial of service issue [CVE-2026-114605]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads