mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-15 06:17:16 +00:00
python3-twisted: Fix CVE-2026-42304
This patch applies the upstream 26.4.0rc2 backport for CVE-2026-42304. The upstream fix merge is referenced in [1], and the public CVE advisory is referenced in [2]. The individual backported commit links are recorded in the patch headers. [1] https://github.com/twisted/twisted/commit/2d196123264efb0027eecfe1b430be4a9babdbd8 [2] https://github.com/advisories/GHSA-grgv-6hw6-v9g4 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
1 parent
8519105eec
commit
2fb2b9fb1d
7 files changed
+929
No files matched your search
@@ -0,0 +1,30 @@
|
||||
From 094d33d4073368ab1a85fcf63e3b75addb01fd6a Mon Sep 17 00:00:00 2001
|
||||
From: Tomas Illuminati Balbin <dev@tomasilluminati.com>
|
||||
Date: Mon, 20 Apr 2026 09:17:13 -0300
|
||||
Subject: [PATCH] Update src/twisted/names/dns.py
|
||||
|
||||
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
|
||||
|
||||
CVE: CVE-2026-42304
|
||||
Upstream-Status: Backport [https://github.com/twisted/twisted/commit/86e1b5490de5baa8ca284d1e6f4f0ade3e8ad7e0]
|
||||
|
||||
(cherry picked from commit 86e1b5490de5baa8ca284d1e6f4f0ade3e8ad7e0)
|
||||
Signed-off-by: Hetvi Thakar <hthakar@cisco.com>
|
||||
---
|
||||
src/twisted/names/dns.py | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/twisted/names/dns.py b/src/twisted/names/dns.py
|
||||
index 7142d9e75..93e4080bf 100644
|
||||
--- a/src/twisted/names/dns.py
|
||||
+++ b/src/twisted/names/dns.py
|
||||
@@ -2784,8 +2784,7 @@ class Message(tputil.FancyEqMixin):
|
||||
# performed across every name in this message. It is installed on
|
||||
# the context variable so nested record decoders pick it up without
|
||||
# needing to thread it through each signature.
|
||||
- token = _decodeContextVar.set(_DecodeContext())
|
||||
- try:
|
||||
+ with _decodeContextVar.set(_DecodeContext()):
|
||||
self.queries = []
|
||||
for i in range(nqueries):
|
||||
q = Query()
|
||||
Reference in new issue
Block a user