Article View: linux.debian.devel.release
Article #159Bug#1151917: trixie-pu: package dnspython/2.7.0-1 (CVE-2026-114605)
From: Thomas Goirand
Date: Sat, 24 Oct 2026 12:50
Date: Sat, 24 Oct 2026 12:50
174 lines
8677 bytes
8677 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==--
Technical Details
Message-ID:
<NRJm9-7B8l-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Thomas Goirand <zigo@debian.org> Newsgroups: linux.debian.bugs.dist,linux.debian.devel.release Subject: Bug#1151917: trixie-pu: package dnspython/2.7.0-1 (CVE-2026-114605) Date: Sat, 24 Oct 2026 14:50:01 +0200 Message-ID: <NRJm9-7B8l-3@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Oct 24 12:49:13 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.9 Reply-To: Thomas Goirand <zigo@debian.org>, 1151917@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: dnspython@packages.debian.org, debian-release@lists.debian.org X-Debian-Pr-Message: report 1151917 X-Debian-Pr-Package: release.debian.org X-Debian-Pr-Keywords: trixie Content-Type: multipart/mixed; boundary="===============0006755993828501090==" MIME-Version: 1.0 X-Mailer: reportbug 13.2.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998566 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 174 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 24 Oct 2026 14:47:39 +0200 X-Original-Message-ID: <179284605986.476851.8115970589242625212.reportbug@zbuz.infomaniak.ch>