python3-pyasn1: Fix CVE-2026-59886

The univ.Real type converts its mantissa, base, and exponent to a Python
float using exact big-integer exponentiation. A BER, CER, or DER encoded
REAL value only a few bytes long can carry a very large exponent, causing
float conversion through prettyPrint(), str(), comparison, arithmetic,
int(), or an explicit float() call to consume excessive CPU and memory and
hang applications that decode untrusted ASN.1 data and then print, log, or
compare the decoded objects.

scarthgap ships pyasn1 0.5.1, which is affected as the issue is present in
all versions before 0.6.4.

Pick the upstream patch [1] as mentioned in [2].

[1] e60c691cb9
[2] https://nvd.nist.gov/vuln/detail/CVE-2026-59886

(From OE-Core rev: 24991f7383dbe229a696ad209ae7d58115a051a1)

Signed-off-by: Emily Vekariya <evekariy@cisco.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Emily Vekariya
2026-08-21 11:25:49 -07:00
committed by Richard Purdie
parent 3dcbd1b54b
commit a2d922f58f
2 changed files with 253 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ inherit ptest
SRC_URI += " \
file://run-ptest \
file://CVE-2026-23490.patch \
file://CVE-2026-59886.patch \
"
RDEPENDS:${PN}-ptest += " \