diff mbox series

libconvert-asn1-perl: upgrade 0.36 -> 0.37

Message ID 20261120232857.2340898-2-tim.orling@konsulko.com
State New
Headers show
Series libconvert-asn1-perl: upgrade 0.36 -> 0.37 | expand

Commit Message

Tim Orling Nov. 20, 2026, 11:28 p.m. UTC
0.37 is a security release:

  * CVE-2026-126540: cap INTEGER/ENUMERATED decode size to prevent quadratic cost
  * CVE-2026-126568: fix asn_recv OOM on truncated header or huge declared length
  * CVE-2026-126576: bounds-check REAL exponent length; fix long-form mantissa size
  * CVE-2026-126682: cap INTEGER/ENUMERATED encode size to prevent quadratic cost
  * CVE-2026-126819: fix zero-length BIT STRING reading past end of buffer
  * CVE-2026-126956: add configurable decode depth limit to prevent stack exhaustion
  * CVE-2026-131868: prevent huge allocations in asn_read and asn_get
  * CVE-2026-131877: limit OBJECT IDENTIFIER arc size to prevent quadratic cost

It also discards invalid datagrams so SOCK_DGRAM sockets do not wedge.
New default limits reject INTEGER/ENUMERATED values over 1025 bytes,
nesting deeper than 99 levels and OID arcs over 32 bytes; configure()
can raise or disable them.

https://metacpan.org/dist/Convert-ASN1/changes

The new tests "use lib", so add perl-module-lib to the ptest RDEPENDS.
Tested with core-image-ptest-libconvert-asn1-perl on qemux86-64.

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 ...-asn1-perl_0.36.bb => libconvert-asn1-perl_0.37.bb} | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
 rename meta/recipes-extended/perl/{libconvert-asn1-perl_0.36.bb => libconvert-asn1-perl_0.37.bb} (76%)
diff mbox series

Patch

diff --git a/meta/recipes-extended/perl/libconvert-asn1-perl_0.36.bb b/meta/recipes-extended/perl/libconvert-asn1-perl_0.37.bb
similarity index 76%
rename from meta/recipes-extended/perl/libconvert-asn1-perl_0.36.bb
rename to meta/recipes-extended/perl/libconvert-asn1-perl_0.37.bb
index 6cb3ce9fd9..7ff7263c22 100644
--- a/meta/recipes-extended/perl/libconvert-asn1-perl_0.36.bb
+++ b/meta/recipes-extended/perl/libconvert-asn1-perl_0.37.bb
@@ -7,7 +7,7 @@  LIC_FILES_CHKSUM = "file://README.md;beginline=91;endline=97;md5=ceff7fd286eb6d8
 
 SRC_URI = "${CPAN_MIRROR}/authors/id/T/TI/TIMLEGGE/Convert-ASN1-${PV}.tar.gz"
 
-SRC_URI[sha256sum] = "50439aedff4b403f24c9373eefd3c25770e33a9190d93a331e7a744f8b4e7cd3"
+SRC_URI[sha256sum] = "012b90bbb931e049340a114dbc510f845309d9ca76cc6c4fad751d317b4bf0fa"
 
 S = "${UNPACKDIR}/Convert-ASN1-${PV}"
 
@@ -17,6 +17,12 @@  EXTRA_PERLFLAGS = "-I ${PERLHOSTLIB}"
 
 RDEPENDS:${PN} += "perl-module-exporter perl-module-constant perl-module-encode perl-module-encode-encoding perl-module-utf8 \
                    perl-module-socket perl-module-time-local perl-module-posix perl-module-scalar-util perl-module-test-more"
-RDEPENDS:${PN}-ptest += "perl-module-math-bigint perl-module-io-socket perl-module-data-dumper perl-module-math-bigint-calc"
+RDEPENDS:${PN}-ptest += "\
+    perl-module-data-dumper \
+    perl-module-io-socket \
+    perl-module-lib \
+    perl-module-math-bigint \
+    perl-module-math-bigint-calc \
+"
 
 BBCLASSEXTEND = "native"