From patchwork Mon Nov 30 16:31:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106537 Received: from mail-dl1-f53.google.com (mail-dl1-f53.google.com [74.125.82.53]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.36133.1796056328606630080 for ; Mon, 30 Nov 2026 08:32:08 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=e7aTgKFc; spf=pass (domain: gmail.com, ip: 74.125.82.53, mailfrom: raj.khem@gmail.com) Received: by mail-dl1-f53.google.com with SMTP id a92af1059eb24-1b5b93bdc2dso762277c88.0 for ; Mon, 30 Nov 2026 08:32:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796056328; x=1796661128; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RGPN0pGmmDqpmm+jlr29jzVdsN5n7ZhEAQJyY0lps8M=; b=e7aTgKFc3g/vLr6pmfw07uO8lV/aI1jgJX7JnEOLHA/BwyrhXliot1sylYswOcOpMw O5wFGXczACVGGZ4Stcx4BDGF3VRcG8irNV4ZsUQmzUFYlmrMl+EAO9fFIoJpfzZjaM8X 9iqQcTbT30AuhEnyX5w4U3HgwjxdRsLliWZ7A0fCnXXPYPozUr9GC5Yg1tT4SolK7E46 h8Hfwmpm18TQXCXimJRxPcMD9y9BL4EcFF5IMuZvbGUXiwwi1tfLCeKR6DzU3XvcEWaJ BCQX+ezJVqPewAJJbkScD4kUTn+vHuZwKYjcBbBmSJ1F3c0wc1gUEw/DOY7vBgHwW8Uf 9VIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796056328; x=1796661128; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=RGPN0pGmmDqpmm+jlr29jzVdsN5n7ZhEAQJyY0lps8M=; b=xRx3hGQMLA5FWwSsKep34wXi65IUennChfcysBANx7grXgdV/H0ly5xxmu7FVf3GsI wM2YIKHzSXyleIZanTjzYlsOEfGEEkqijFigg6TZyeV9dnzqTWVW9v7tvAZ79kDOpx8o cUmW2QpaM3c8yoMUD+SMVfS5H+kAj0gkX2nEMmyJJSGtJfXf9qgm+3A9bf3XQehMoM5j bxIPzoZBQvvl/ToFUddQgvatCPSHeJda1rGmTii667f3i+1oYvwwr09wRKotJwDHJRov v4Ju2gagHbOt538aWT0O2Z0gQYkPsZDP4HTHpKPJ3x4xlitWx9eElofvhl7B+wZ3pafr 3/Mw== X-Gm-Message-State: APuU4Z9CLOK9j6go5iN5Rp3AEYAGCzth7CIi9G1U9CHCJ0vOvEJWP7xE mibCOW/uVr7kOhIuOlnvCxqj5gCY+gA/ALCEPtKSFJa29qXyEbwapvmSEM02mpj2 X-Gm-Gg: AZFdTZdPVHOskJvCDxLcipcx/138uvUCPJaX4K/Mi3jEzkut232fjqARuU8S2Yu9YWk Zs/fnz4ztcci9rx3/jRuwvPiiYU1cun2ZksX7iQZZj8eGYVXGyRyIVI3WrVeLh9r57nnn2xi2Rl 2q2WjtXIx4OrzHMoo7pId/ahidNo9JBgIy4CIC4ktByFt9vwaIljKgNOpZBHMBOWPGkR8/HsT16 PuxYDjsGkH2grbopHFw7AhZUfVr6c3iZnV24c4B9ZTtI/96GGJr+ePOACsLl6oBJD0h8TL5jeu8 cOL1Wizgu6B7YlLaj9s/29xnRB06qKh0hBYye8ppL5cGJd4gO6JsrCD27oAlDhdeqt/ZtyoExUF YCY7Xr/DMPpsTMfkq02gaQGY7m7Wv4aMRxqfqYD7RyJO+y632/FIJLlGNnUhGiqVCYKqsA2wu7N MHHjLmGVADGP3KI3bl7hRh6ciEP8G/BqOyDGpnrqBMeFYCuaK7KCYfQK88qTzzNV4UolxeF6Tjk o+XLC2uoy6bZgKMrw/JEdF0WuL39Tm6a7TEVjoo0/27RfR7qa7KF8sG47FJfgJyKdF16LPI+sKZ yBY2KmC3DxAJqv8veYhCeG/xusma4Ig2C0+t4tTu2fpKtuowy0A64pi2BaugTEvRKuNddGqupH6 jDszxacQdypbSdtSHPS2P4bmSrtwF58WhmAzBuzmIxiHHrwazAj2rR9zS21i8e9Ags43N/rveGH f2RBeu2baMg329ly8jaclYK3fWbi5HfBGLrzbBwYYfdPlmKJYuGRD+XcOsF4MFXzj2MaFtKZre0 gcGN8D2LFHxFXJ2fPxmDc82gKu/y5XSBt9s/4HE/BgR09Kc26UsN9Iu3KWZEus3PesI1XGCghwC fg6S X-Received: by 2002:a05:701b:4510:20b0:1b5:595f:4236 with SMTP id a92af1059eb24-1b5595f4800mr30607852c88.35.1796056327761; Mon, 30 Nov 2026 08:32:07 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b556840494sm79143312c88.12.2026.11.30.08.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 08:32:07 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 10/15] python3-scapy: Upgrade 2.7.0 -> 2.8.0 Date: Mon, 30 Nov 2026 08:31:46 -0800 Message-ID: <20261130163151.1629071-11-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261130163151.1629071-1-khem.raj@oss.qualcomm.com> References: <20261130163151.1629071-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 16:32:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133550 A security-focused release after an audit by Trail of Bits and OpenAI ("Patch the Planet"); five issues are rated high: - arbitrary read of on-disk files while parsing TLS packets (GHSA-g94r-m85q-4mpj) - out-of-band read while receiving packets through libpcap (GHSA-c547-xwrv-q9jm) - malicious SMB directory entries overwriting local files during recursive downloads (GHSA-7vg7-7f47-97qf) - SMB server share case handling serving the default folder (GHSA-72w4-gq3w-rrpp) - zero-width NetFlow template looping NetflowSession forever (GHSA-f6x2-gmgm-25p8) Also Kerberos, SMB and DCE/RPC improvements, SAE J1939 and standalone UDS/KWP/OBD/GMLAN packets, RADIUS Message-Authenticator verification and many parser robustness fixes. 2.8 is the last series to support Python 3.7 and 3.8. Drop 0002-main-initialize-banner-for-the-default-Python-shell.patch, which is upstream. The recipe fetches release tags, so check for new tags instead of new commits. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...-banner-for-the-default-Python-shell.patch | 44 ------------------- ...-scapy_2.7.0.bb => python3-scapy_2.8.0.bb} | 5 +-- 2 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 meta-networking/recipes-devtools/python/python3-scapy/0002-main-initialize-banner-for-the-default-Python-shell.patch rename meta-networking/recipes-devtools/python/{python3-scapy_2.7.0.bb => python3-scapy_2.8.0.bb} (94%) diff --git a/meta-networking/recipes-devtools/python/python3-scapy/0002-main-initialize-banner-for-the-default-Python-shell.patch b/meta-networking/recipes-devtools/python/python3-scapy/0002-main-initialize-banner-for-the-default-Python-shell.patch deleted file mode 100644 index 7de0800c31..0000000000 --- a/meta-networking/recipes-devtools/python/python3-scapy/0002-main-initialize-banner-for-the-default-Python-shell.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 3d1f9f8043e239d6313d9b9c02a9d6ead6c32302 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Thu, 20 Aug 2026 00:14:29 +0200 -Subject: [PATCH] main: initialize banner for the default Python shell - -interact() only assigns the local variable "banner" in the branches that -handle the ipython, ptipython, ptpython and bpython shells. The plain -Python shell leaves it unbound, so the unconditional - - banner += "\n" - -in the "if mybanner is not None:" block raises - - UnboundLocalError: cannot access local variable 'banner' where it is - not associated with a value - -This is easy to hit: requesting an interpreter that is not installed -(e.g. conf.interactive_shell = "ipython" without IPython) falls back to -conf.interactive_shell = "python", and any caller passing mybanner then -crashes instead of getting a shell. The mybanneronly path happens to be -safe only because it assigns banner = "" first. - -Initialize banner from banner_text before the shell-specific chain so it -is always bound. - -Upstream-Status: Pending - -Signed-off-by: Khem Raj ---- - scapy/main.py | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/scapy/main.py b/scapy/main.py -index 990f27f..924e6dc 100644 ---- a/scapy/main.py -+++ b/scapy/main.py -@@ -828,6 +828,7 @@ def interact(mydict=None, - # repl.use_ui_colorscheme("scapy") - - # Extend banner text -+ banner = banner_text - if conf.interactive_shell in ["ipython", "ptipython"]: - import IPython - if conf.interactive_shell == "ptipython": diff --git a/meta-networking/recipes-devtools/python/python3-scapy_2.7.0.bb b/meta-networking/recipes-devtools/python/python3-scapy_2.8.0.bb similarity index 94% rename from meta-networking/recipes-devtools/python/python3-scapy_2.7.0.bb rename to meta-networking/recipes-devtools/python/python3-scapy_2.8.0.bb index 4e4eedde81..4418a10bfb 100644 --- a/meta-networking/recipes-devtools/python/python3-scapy_2.7.0.bb +++ b/meta-networking/recipes-devtools/python/python3-scapy_2.8.0.bb @@ -16,16 +16,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" # If you want ptest support, use the git repo # UTscapy does not exist in the pypi pkg # -SRCREV = "40fc5ecf9e69e9bd76664d63ae133d4973fcf81b" +SRCREV = "e2e35c07bce2f40e7513e1b29a6d300d5329dbc3" SRC_URI = "git://github.com/secdev/scapy.git;branch=master;protocol=https;tag=v${PV} \ file://0001-python3-scapy-skip-ICMP-regression-tests-in-ptest.patch \ - file://0002-main-initialize-banner-for-the-default-Python-shell.patch \ file://0003-libpcap-load-libpcap-even-when-find_library-cannot-l.patch \ file://0004-test-don-t-depend-on-libc-formatting-of-IPv4-compati.patch \ file://0005-test-skip-live-whois-tests-in-ptest.patch \ file://run-ptest" -UPSTREAM_CHECK_COMMITS = "1" +UPSTREAM_CHECK_GITTAGREGEX = "^v(?P\d+(\.\d+)+)$" CVE_PRODUCT = "scapy"