[From nobody Sat Nov 21 17:53:09 2026
Received: (at submit) by bugs.debian.org; 20 Nov 2026 08:34:18 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-107.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
 FOURLA,FROMDEVELOPER,SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 58; hammy, 150; neutral, 212; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;carnil@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:42380)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;carnil@debian.org&gt;) id 1xUK4Z-009ML2-1f
 for submit@bugs.debian.org; Fri, 20 Nov 2026 08:34:18 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
 Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=ItaepLnhjZsyrO3xk0kR8+YnK6zfPe/S9caE56Nthg0=; b=OJU4ff/xDYgjvpHZKot/RXB9md
 4MXmK2+viOzQeOWcGM5gc3AIlO+ZmENN+S0XzPfX2kE9MzVF1o+/VO14gWEm1lCgj1fy8UVOKnY0B
 isGJEEJa2oy3My3i6+rHBMNAbHuvK7OyJCVr9iV0nRba53GCdlVVzwnpmLm/v4ZoFUpfNdnU6Z+5s
 qtPZXqqSzSEv5PxjBdSEQCod3ukxIEMDZkAT0MON+SR4lnEjfe0pow9WpAwS0fiY9P2QADYCeU7cx
 5MwZs5XxmjtoMihW/IrG8poFz7kvB64dvs2FVQUP2E29w7U8v5f7+e4kuWN2TXp1STQ+43F9RgFvG
 AsR/VPHA==;
Received: from authenticated-user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;carnil@debian.org&gt;) id 1xUK4W-002kCx-2v
 for submit@bugs.debian.org; Fri, 20 Nov 2026 08:34:17 +0000
Received: by eldamar.lan (Postfix, from userid 1000)
 id EE7DBDC071E; Fri, 20 Nov 2026 09:34:15 +0100 (CET)
Date: Fri, 20 Nov 2026 09:34:15 +0100
From: Salvatore Bonaccorso &lt;carnil@debian.org&gt;
To: submit@bugs.debian.org
Subject: libconvert-asn1-perl: CVE-2026-126540 CVE-2026-126568
 CVE-2026-126576 CVE-2026-126682 CVE-2026-126819 CVE-2026-126956
 CVE-2026-131868 CVE-2026-131877
Message-ID: &lt;awAGB7ldFrGJWA-m@eldamar.lan&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-User: carnil
Delivered-To: submit@bugs.debian.org

Source: libconvert-asn1-perl
Version: 0.34-1
X-Debbugs-CC: team@security.debian.org
Severity: important
Tags: security upstream

Hi,

The following vulnerabilities were published for libconvert-asn1-perl.

CVE-2026-126540[0]:
| Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via
| quadratic bigint loop in os2ip.  Every INTEGER or ENUMERATED longer
| than four content octets reaches os2ip, which iterates over each
| content octet with $result = ($result * 256) + $octet. Each
| multiplication operates on a bigint that grows by one octet per
| step, so decoding an n-octet value takes O(n^2) bigint work. Nothing
| limits content length before this loop runs.  An attacker who
| controls the decoded data can exhaust CPU with a single oversized
| INTEGER or ENUMERATED value.


CVE-2026-126568[1]:
| Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion
| via unbounded MSG_PEEK buffer doubling in asn_recv.  asn_recv peeks
| the socket in a loop, doubling the buffer size on each pass until a
| tag and length can be decoded. An inverted boolean guard ($tb ||
| rather than $tb &amp;&amp;) prevents the need-more-data exit from firing
| once a tag byte has been decoded. When asn_decode_length returns no
| value because the length is absent or incomplete, no exit fires for
| that case either. MSG_PEEK leaves socket data unconsumed, so each
| re-peek returns at once while the buffer size doubles.  A single
| truncated BER header sent to a process calling asn_recv doubles the
| peek buffer until memory is exhausted. Perl's realloc failure is
| fatal and not catchable with eval.


CVE-2026-126576[2]:
| Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via
| unchecked exponent length in binary REAL decoding.  Binary REAL
| decoding never bounds-checks the exponent length against the
| available content. For a minimal one-byte binary REAL, the exponent
| byte is read from outside the element, making the mantissa length
| -1. Perl reads a negative length as an offset from the end of the
| string, so the mantissa is nearly all of the input that follows the
| element. The long-form exponent path also omits the extra length
| octet when sizing the mantissa.  An attacker who controls the
| decoded data can exhaust CPU with a list of such values, as each
| mantissa loop iterates over the remaining input. The decoded values
| are also computed from bytes outside each element.


CVE-2026-126682[3]:
| Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via
| exponent-notation string in INTEGER encoding.  The encoder routes
| any value with abs &gt;= 2**31 to i2osp without validating that it is
| an integer. A string in exponent notation such as &quot;1e8000&quot; passes
| that threshold. Math::BigInt expands it to an 8001-digit integer,
| and i2osp's per-octet conversion loop is quadratic in that size.  An
| attacker who controls encoded INTEGER values can exhaust CPU with a
| short exponent-notation string.


CVE-2026-126819[4]:
| Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion
| via zero-length BIT STRING content.  A BIT STRING with zero content
| octets passes -1 to substr as the length. Perl reads a negative
| length as an offset from the end of the string, so the decoded value
| is nearly all of the input that follows the element. In the
| constructed form each zero-length segment copies the rest of the
| input again, so memory grows with the square of the input size.  An
| attacker who controls the decoded data can exhaust memory with a
| short constructed BIT STRING. The resulting value also contains
| bytes from adjacent input.


CVE-2026-126956[5]:
| Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion
| via unlimited recursion depth in constructed-form string decoding.
| Any constructed-form string element causes the decoder to recurse on
| the element's contents. The BER encoding controls nesting depth at
| four bytes per level, with no bound checked. Perl recursion is heap-
| allocated, so the process grows without a stack crash.  An attacker
| who controls the decoded data can exhaust memory with a small deeply
| nested constructed string.


CVE-2026-131868[6]:
| Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion
| via a declared element length passed unchecked to sysread in
| asn_read and asn_get.  The length an element declares in its BER
| header is passed to sysread as the read size. Perl grows the target
| buffer to that size before reading, so memory is allocated from the
| declared length, not from the data received. A 6-byte header can
| declare a length of up to 4GB.  A single header makes the reading
| process allocate the declared size. Where the allocation fails, perl
| exits with &quot;Out of memory&quot;, which eval cannot catch.


CVE-2026-131877[7]:
| Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via
| unbounded arc length in OBJECT IDENTIFIER decoding and encoding.
| The content of an OBJECT IDENTIFIER or RELATIVE-OID element is
| passed to unpack &quot;w*&quot; on decode, and the arcs of an OID string to
| pack &quot;w*&quot; on encode. Perl converts each arc to or from its decimal
| string in time quadratic in the arc's length, and nothing limits
| that length.  An attacker who controls the decoded data, or an OID
| string passed to encode, can exhaust CPU with a single oversized
| arc.


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities &amp; Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-126540
    https://www.cve.org/CVERecord?id=CVE-2026-126540
[1] https://security-tracker.debian.org/tracker/CVE-2026-126568
    https://www.cve.org/CVERecord?id=CVE-2026-126568
[2] https://security-tracker.debian.org/tracker/CVE-2026-126576
    https://www.cve.org/CVERecord?id=CVE-2026-126576
[3] https://security-tracker.debian.org/tracker/CVE-2026-126682
    https://www.cve.org/CVERecord?id=CVE-2026-126682
[4] https://security-tracker.debian.org/tracker/CVE-2026-126819
    https://www.cve.org/CVERecord?id=CVE-2026-126819
[5] https://security-tracker.debian.org/tracker/CVE-2026-126956
    https://www.cve.org/CVERecord?id=CVE-2026-126956
[6] https://security-tracker.debian.org/tracker/CVE-2026-131868
    https://www.cve.org/CVERecord?id=CVE-2026-131868
[7] https://security-tracker.debian.org/tracker/CVE-2026-131877
    https://www.cve.org/CVERecord?id=CVE-2026-131877

Regards,
Salvatore
]