From nobody Tue Oct 06 07:44:28 2026 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hzSvJ4wJSz6cVt0 for ; Tue, 06 Oct 2026 07:44:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hzSvJ46hFz4FD4 for ; Tue, 06 Oct 2026 07:44:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791272668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1gFecye/reZZ4ZKJeSHxc3pMomH8Bw4HcUk1Q76w75U=; b=Smkzh9VmwrkkOPeFaBRIcNe+5jlfKqd/h//lIRnAMIZR3rVvDBeVoxy96FnnLxwM7Cnjsb /T/P3Szb0FM5TIIKGVmAWfCCN4Q9NW/kUQisaNcugmsCBlPlvvDhIUu/kCagNcyfHtyX+p BrIWwaFtuRiPRD2rVUx9+zDLIw3gVCL3q7v7u73OkpOrSks034rJ9k/0Tq7uUoMg5ziLkn ayvYOgI2FvBrXDLwMOgkF4d450q5lWD6jfutFht2/B0lEslsO7PEqKdtA/ryvWQxHy9DDF 7FwGfABHQSZlLFy65NRA3RS8RJyO8sflit9+ls+5BzQowniJ27mX8Tb43soOCA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791272668; b=LvK5hRz25VgH97rH4x1xUXp9jduyJbiRXGBCW25fXACc5QaO7kbDcYYvv6qW436eYOnUOh 2Mjbx1QYFnNOUOgwBwcn4FxEiZEypS7mClnnUEal/pRL+ZnvExsfFec7fiRog2N3uL78tj PsMuXKC9CUEmgJ4P4iEUojQ/eXDRMFQNN47NPknF2G1Mqn3qJjF3zXdB208cAhNm1awOPI Ci77eNYLKdxymdKd3iKvBJvaIMjcyW7VCKCPoSIyCD5SghuD+x2AQwi4mk91IefB1StR57 1oxTi0ToMSp1K8KwUoAx9gA1Yji+ORUzsxAPlbFmzTJibWfhQJcfdfW+EZK52A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791272668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1gFecye/reZZ4ZKJeSHxc3pMomH8Bw4HcUk1Q76w75U=; b=mslsc1fwf4cnpv6O9jzC5iEurGvTMwf3JueZ766MkA8seOXcifx+JhTUFxdru9qdYWiG7b xceurF4/E/YLzlFHPNi9ILQnxLp0oNWIllwoDCdvQlaySXa3Dy/UesKGsqTNcd6z0TKEeX TVvlXx15KvGMUvQS2SltZ1cnOgl4f01rFfb2F906yyTjm31KUfwhb2VR8+tV206dhnljwB GKvI1VE+xPoIOHXeG2Zia64UvVhn6DqyULNzd1JzY0ZnNuSiBHJCi1zIbxGemtffFeV7GI ZG7va/j7VLjA5i0zjiT8NByRSuPWqPuLpTRymTEJeEEJa1x/i0uMc5lmccDJUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4hzSvJ2QbQzxnk for ; Tue, 06 Oct 2026 07:44:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6967iSHH024455 for ; Tue, 6 Oct 2026 07:44:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6967iSAl024454 for python@FreeBSD.org; Tue, 6 Oct 2026 07:44:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 299174] devel/py-twisted: Update to 26.4.0 (fixes TLS with py-pyopenssl >= 26.2; CVE-2026-42304) Date: Tue, 06 Oct 2026 07:44:28 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-python@freebsd.org Sender: owner-freebsd-python@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Bugzilla Automation has asked freebsd-python (Nobody) for maintainer-feedback: Bug 299174: devel/py-twisted: Update to 26.4.0 (fixes TLS with py-pyopenssl= >=3D 26.2; CVE-2026-42304) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D299174 --- Description --- devel/py-twisted is still at 25.5.0, which is incompatible with security/py-pyopenssl >=3D 26.2.0 (now in ports and in 2026Q3). pyOpenSSL 26.2.0 made it an error to call any mutating method on an OpenSSL.SSL.Context after that Context has been used to create a Connection (deprecated with a warning since 25.1). Twisted 25.5.0 does exactly that in twisted/protocols/tls.py, TLSMemoryBIOProtocol._createConnection(): if IProtocolNegotiationFactory.providedBy(self.wrappedFactory): protocols =3D self.wrappedFactory.acceptableProtocols() context =3D connection.get_context() _setAcceptableProtocols(context, protocols) # -> ValueError Since the Connection is created before this call, it fails on every handsha= ke for any server whose wrapped factory supports protocol negotiation (ALPN), = e.g. twisted.web / net-im/py-matrix-synapse TLS listeners. The connection is dro= pped and clients see "unexpected eof while reading". Upstream also identified a second mutation in twisted/internet/_sslverify.py when a Context is reused across connections. This is the root cause of bug 297639. Observed with: FreeBSD 15, py312-matrix-synapse-1.151.0_4, py312-twisted-25.5.0, py312-pyopenssl-26.2.0. Upstream fix: Twisted 26.4.0 (2026-05-11), "twisted.internet.ssl and twisted.protocols.tls no longer mutate the pyOpenSSL context after creating pyOpenSSL connections" (https://github.com/twisted/twisted/issues/12500). Twisted 26.4.0 also fixes CVE-2026-42304 (DoS via resource exhaustion during DNS name decompression in twisted.names), which affects all versions before 26.4.0rc2. Please update devel/py-twisted to 26.4.0 or later (and add a vuxml entry for CVE-2026-42304). Consumers should be exp-run, since the TLS internals chang= ed. Workarounds until then: keep security/py-pyopenssl < 26.2.0, or locally wrap the _setAcceptableProtocols() call in tls.py with try/except ValueError (wh= ich disables ALPN, falling back to HTTP/1.1).