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 4hzSvJ60xXz6cVqY 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 4hzSvJ4v5Hz4F7j 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; bh=9CRvXCb/DpeDj0RsfilfvZZ90rmcR7csv6rCnrLIeU0=; b=r0ZqJWLKYm5JG6whSziJcS6zVp6BdYr7FxRTLB8MLNY9q+jZX/b67ujjStD1pjuzrqgNNh rEPdmm2USG+Xq3MGq1251txe3++NCJwPuqMW/5VPmi9njYD6/xIyF4F0/I0nUJfioyXkUf bADE3wEvduEPu5kO62h+1j0IqZIvCPvLx/ZRh3zcd/7Zd4oP+r8SVrxzCTVb5qI5rKwAZl ClB6CDm/JAb7h66tggukZ/DXZAIa24HfIWmjIq7PKAjTB2ZChGvytAC2wxE5rzI6mglFJS 8zPW9dRsCbUP56ibO1NDq05YBt/ckxyun25nPeUaex/QZ/2KR6BXoRPFZwV8jA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791272668; b=iA1TXq4AvaiUVk4k4VetcA2+rOHVdblgBfqMI3AIM5tLssQwW8HzHmG5BNPW2ZHz9rot9s QbU/GMwBNEVvWf3QxGD2W7ietFGUhdW71Q+xPE95tMEfOCon/2VWNn7ChiXocSeYDXtXD3 xvcZX/d0PpfklZ/QKTvSAVtAHthN8xmFBw21rAMjKIurslEhzUVsW+aFt1cNviqoa+10Co VFAG8TeVAsvj/s625hzBzlGrcbBNBBZ7Z3Fh24nrl1tYXp1Coc2sFOqWBLsYeK/zQZnTmx TCDsJnwh6ZWuCodsWe7N+wnUQ31E9ny3wvpUzDl9j4FwOvD5Myi068uRsyBBTQ== 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; bh=9CRvXCb/DpeDj0RsfilfvZZ90rmcR7csv6rCnrLIeU0=; b=bG1TzSGzQZRiQAf/oq9hzqa8R011ex8FGlpIYaKZbx9/urvE0bCvMD0Pmy6GUenezgP3L7 5zrwi49/lCfvBRefN9Nvhu4QL5+FEY6zAL3uA3Levh8ubkR0YDfhYdncWu5nfC6njIbl1I qqNudrYX9n3ggecbJdg4nWcoJLxh4WfejOASG63eirkzGTg9TCPKnlj0tUYsYN+zTEKmqs uke1knG7TvVD0ztRArLDl+HLxUSkDN97KYUb8pJlsxlAsI1zddtwBWJb3xOS+mhkXT3uBF HML0L+/N6o36i5R4mJ2LVZzoC668f5Qcnzy5JXE1ic0Hgt0qXjTpBOBGhfn2Hg== 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 4hzSvJ3PzZzxnl 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 6967iSnj024461 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 6967iS77024459 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 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [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-Reason: CC AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: vladimir.bychik.dev@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D299174 Bug ID: 299174 Summary: devel/py-twisted: Update to 26.4.0 (fixes TLS with py-pyopenssl >=3D 26.2; CVE-2026-42304) Product: Ports & Packages Version: Latest Hardware: Any URL: https://github.com/twisted/twisted/issues/12500 OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: vladimir.bychik.dev@gmail.com Assignee: python@FreeBSD.org CC: Flags: maintainer-feedback?(python@FreeBSD.org) 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). --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=