Skip to contentSkip to conversation

python3-pyasn1: fix CVE-2026-30922

PATCH Superseded Yogita Urade 2 participants 3 messages Aug 27 – Sep 18

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-pyasn1: fix CVE-2026-30922

This patch applies upstream fix for CVE-2026-30922 as referenced in [2], using the upstream commit identified in [1].

[1] https://github.com/pyasn1/pyasn1/commit/25ad481c19fdb006e20485ef3fc2e5b3eff30ef0
[2] https://nvd.nist.gov/vuln/detail/CVE-2026-30922

---
 .../recipes-devtools/python/python-pyasn1.inc |   1 +
 .../python3-pyasn1/CVE-2026-30922.patch       | 260 ++++++++++++++++++
 2 files changed, 261 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pyasn1/CVE-2026-30922.patch
meta/recipes-devtools/python/python-pyasn1.inc +1 -0
index 96b4a3b52a..d69cdf8877 100644
@@ -19,6 +19,7 @@ inherit ptest
 SRC_URI += " \
        file://run-ptest \
        file://CVE-2026-23490.patch \
+       file://CVE-2026-30922.patch \
 "
 
 RDEPENDS:${PN}-ptest += " \
meta/recipes-devtools/python/python3-pyasn1/CVE-2026-30922.patch new file +260 -0

260 lines not on this page · raw message

Signature · 1 line
2.35.6
#1 lore raw

PATCH 2/2 python3-pyasn1: fix CVE-2026-59885

This patch applies the upstream fix as referenced in [2], using the commit shown in [1].

[1] https://github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9
[2] https://nvd.nist.gov/vuln/detail/CVE-2026-59885

---
 .../recipes-devtools/python/python-pyasn1.inc |   1 +
 .../python3-pyasn1/CVE-2026-59885.patch       | 184 ++++++++++++++++++
 2 files changed, 185 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pyasn1/CVE-2026-59885.patch
meta/recipes-devtools/python/python-pyasn1.inc +1 -0
index d69cdf8877..ec06281612 100644
@@ -20,6 +20,7 @@ SRC_URI += " \
        file://run-ptest \
        file://CVE-2026-23490.patch \
        file://CVE-2026-30922.patch \
+       file://CVE-2026-59885.patch \
 "
 
 RDEPENDS:${PN}-ptest += " \
meta/recipes-devtools/python/python3-pyasn1/CVE-2026-59885.patch new file +184 -0

184 lines not on this page · raw message

--
2.35.6

#2 lore raw
In reply to Yogita Urade
Quoted 37 lines · On Thu Aug 27, 2026 at 8:31 AM CEST, Yogita Urade -X (yurade - E INFOCHIPS…

This patch applies upstream fix for CVE-2026-30922 as referenced in [2], using the upstream commit identified in [1].

[1] https://github.com/pyasn1/pyasn1/commit/25ad481c19fdb006e20485ef3fc2e5b3eff30ef0
[2] https://nvd.nist.gov/vuln/detail/CVE-2026-30922

---
 .../recipes-devtools/python/python-pyasn1.inc |   1 +
 .../python3-pyasn1/CVE-2026-30922.patch       | 260 ++++++++++++++++++
 2 files changed, 261 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pyasn1/CVE-2026-30922.patch
meta/recipes-devtools/python/python-pyasn1.inc +1 -0
index 96b4a3b52a..d69cdf8877 100644
@@ -19,6 +19,7 @@ inherit ptest
 SRC_URI += " \
        file://run-ptest \
        file://CVE-2026-23490.patch \
+       file://CVE-2026-30922.patch \
 "
 
 RDEPENDS:${PN}-ptest += " \
meta/recipes-devtools/python/python3-pyasn1/CVE-2026-30922.patch new file +6 -0
new file mode 100644
index 0000000000..aad4829f82
@@ -0,0 +1,260 @@
+From b10f9a671c66a99b91bd916e62a0c81541094dd6 Mon Sep 17 00:00:00 2001
+From: Simon Pichugin <[email protected]>
+Date: Mon, 16 Mar 2026 17:23:11 -0700
+Subject: [PATCH] Merge commit from fork
+
+CVE: CVE-2026-30922

meta/recipes-devtools/python/python3-pyasn1/CVE-2026-30922.patch line 16

Quoted 10 lines
meta/recipes-devtools/python/python3-pyasn1/CVE-2026-30922.patch new file +10 -0
+Upstream-Status: Backport [https://github.com/pyasn1/pyasn1/commit/25ad481c19fdb006e20485ef3fc2e5b3eff30ef0]
+
+(cherry picked from commit 25ad481c19fdb006e20485ef3fc2e5b3eff30ef0)
+Signed-off-by: Yogita Urade <[email protected]>
+---
+ pyasn1/codec/ber/decoder.py     |  10 +++
+ tests/codec/ber/test_decoder.py | 116 ++++++++++++++++++++++++++++++++
+ tests/codec/cer/test_decoder.py |  24 +++++++
+ tests/codec/der/test_decoder.py |  42 ++++++++++++
+ 4 files changed, 192 insertions(+)

Hello,

Thanks for the patch but it does not apply cleanly (surely a conflict with the other recent CVE fixes):
ERROR: python3-pyasn1-0.5.1-r0 do_patch: QA Issue: Fuzz detected:

Applying patch CVE-2026-30922.patch
patching file pyasn1/codec/ber/decoder.py
Hunk #1 succeeded at 38 with fuzz 2.
Hunk #2 succeeded at 1520 (offset 4 lines).
patching file tests/codec/ber/test_decoder.py
Hunk #1 succeeded at 2048 (offset 60 lines).
patching file tests/codec/cer/test_decoder.py
Hunk #1 succeeded at 389 (offset 25 lines).
patching file tests/codec/der/test_decoder.py
Hunk #1 succeeded at 396 (offset 34 lines).

Can you rebase and send a refreshed v2?

Thanks!

Signature · 2 lines
Yoann Congal
Smile ECS