mbox series

[wrynose,0/8] libconvert-asn1-perl: fix 8 CVEs

Message ID 20261127064659.2169695-1-OmkarAbaji.Patil@windriver.com
Headers show
Series libconvert-asn1-perl: fix 8 CVEs | expand

Message

Omkar Patil Nov. 27, 2026, 6:46 a.m. UTC
From: Omkar Patil <OmkarAbaji.Ptil@windriver.com>

This series backports the upstream fixes for 8 CVEs in Convert::ASN1
  to the 0.34 recipe on wrynose:

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

Why backport instead of upgrading to 0.37:

The fixes are released upstream only in 0.37. The 0.35-0.37 releases
also contain changes that are not suitable for a stable branch:
  -The fixes are released upstream only in 0.37. The 0.35/0.36
   releases change the year interpretation when decoding UTCTime and
   GeneralizedTime (upstream commit 1d6fb48), so some dates decode to a
   different year than with 0.34. That change is not suitable for a
   stable branch and is not included in this series.
  -Note that the fixes for CVE-2026-126540, CVE-2026-126682,
   CVE-2026-126956 and CVE-2026-131877 add new default limits
   (max_int_len, max_depth, max_oid_arc_len), which the 0.37 ChangeLog
   lists under "Incompatible Changes". They are part of the fixes and
   are included; each limit can be changed with configure(), and 0
   disables it.

NOTE:
 CVE-2026-126682.patch has its context refreshed against the CPAN
 tarball, which has a $Convert::ASN1::VERSION line that is not in
 the git tag. Only context and line numbers changed; the code changes
 the same as upstream.

Testing:
  - bitbake libconvert-asn1-perl builds with no patch-fuzz errors.
  - ptest passes on qemux86-64.

Omkar Patil (8):
  libconvert-asn1-perl: fix CVE-2026-126540
  libconvert-asn1-perl: fix CVE-2026-126568
  libconvert-asn1-perl: fix CVE-2026-126576
  libconvert-asn1-perl: fix CVE-2026-126682
  libconvert-asn1-perl: fix CVE-2026-126819
  libconvert-asn1-perl: fix CVE-2026-126956
  libconvert-asn1-perl: fix CVE-2026-131868
  libconvert-asn1-perl: fix CVE-2026-131877

 .../CVE-2026-126540.patch                     | 147 ++++++++++++
 .../CVE-2026-126568.patch                     |  88 +++++++
 .../CVE-2026-126576.patch                     | 125 ++++++++++
 .../CVE-2026-126682.patch                     | 204 +++++++++++++++++
 .../CVE-2026-126819.patch                     |  90 ++++++++
 .../CVE-2026-126956.patch                     | 182 +++++++++++++++
 .../CVE-2026-131868.patch                     | 190 +++++++++++++++
 .../CVE-2026-131877.patch                     | 216 ++++++++++++++++++
 .../perl/libconvert-asn1-perl_0.34.bb         |  11 +-
 9 files changed, 1252 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-126540.patch
 create mode 100644 meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-126568.patch
 create mode 100644 meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-126576.patch
 create mode 100644 meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-126682.patch
 create mode 100644 meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-126819.patch
 create mode 100644 meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-126956.patch
 create mode 100644 meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-131868.patch
 create mode 100644 meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-131877.patch