diff --git a/meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-126568.patch b/meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-126568.patch
new file mode 100644
index 0000000000..82a9fad622
--- /dev/null
+++ b/meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-126568.patch
@@ -0,0 +1,88 @@
+From 0b9240ff7df48916d4ddcc13d61de4a1d3f8c31b Mon Sep 17 00:00:00 2001
+From: Timothy Legge <timlegge@gmail.com>
+Date: Wed, 11 Nov 2026 02:00:09 +0000
+Subject: [PATCH 2/8] Fix CVE-2026-126568: asn_recv OOM on truncated or
+ oversized BER header
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fix || → && in the tag-decode guard (|| bypassed the need-more-data
+branch once any tag byte arrived) and add a missing else branch for the
+incomplete-tag case. Both caused unbounded recv buffer growth until OOM.
+
+Peek for the full element in doubling steps instead of calling recv
+with the declared length, so a complete header declaring a huge length
+no longer makes perl allocate a buffer of that size.
+
+Document the incomplete-BER behaviour in the pod.
+
+CVE: CVE-2026-126568
+Upstream-Status: Backport [https://github.com/cpan-authors/perl-Convert-ASN1/commit/a30eae1dc6a977716b76f79f228fa0432e28bc5a]
+Signed-off-by: Omkar Patil <OmkarAbaji.Patil@windriver.com>
+---
+ lib/Convert/ASN1.pod   |  5 +++++
+ lib/Convert/ASN1/IO.pm | 20 ++++++++++++++++----
+ 2 files changed, 21 insertions(+), 4 deletions(-)
+
+diff --git a/lib/Convert/ASN1.pod b/lib/Convert/ASN1.pod
+index 4eb4a5d..3e9614b 100644
+--- a/lib/Convert/ASN1.pod
++++ b/lib/Convert/ASN1.pod
+@@ -236,6 +236,11 @@ of the peer address when the socket is a connected socket, in these
+ cases the empty string will be returned. This is the same behaviour
+ as the C<recv> function in perl itself.
+ 
++If the available data does not contain a complete, decodable BER element
++(truncated tag, incomplete length field, or declared length exceeding the
++datagram), BUFFER is set to the empty string and the sender address is
++returned.
++
+ It is recommended that if the socket is of type SOCK_DGRAM then C<recv>
+ be called directly instead of calling C<asn_recv>.
+ 
+diff --git a/lib/Convert/ASN1/IO.pm b/lib/Convert/ASN1/IO.pm
+index a9cdaba..5284d06 100644
+--- a/lib/Convert/ASN1/IO.pm
++++ b/lib/Convert/ASN1/IO.pm
+@@ -46,7 +46,7 @@ sub asn_recv { # $socket, $buffer, $flags
+ 
+     # If we can decode a tag and length we can determine the length
+     ($tb,$tmp) = asn_decode_tag(substr($buf,$pos));
+-    unless ($tb || $pos+$tb < length $buf) {
++    unless ($tb && ($pos+$tb < length $buf)) {
+       next MORE if $n == length $buf;
+       last MORE;
+     }
+@@ -70,13 +70,25 @@ sub asn_recv { # $socket, $buffer, $flags
+ 	last MORE;
+       }
+     }
++    else {
++      next MORE if $n == length $buf;
++      last MORE;
++    }
+   }
+ 
+   if (defined $peer) {
+     if ($len > length $buf) {
+-      # Check we can read the whole element
+-      goto error
+-	unless defined($peer = recv($_[0],$buf,$len,MSG_PEEK));
++      # Check we can read the whole element. Peek in doubling steps so the
++      # buffer perl allocates is bounded by the data available, not by the
++      # declared length
++      my $ask = length($buf) || 64;
++      while ($len > length $buf) {
++        $ask *= 2;
++        $ask = $len if $ask > $len;
++        goto error
++          unless defined($peer = recv($_[0],$buf,$ask,MSG_PEEK));
++        last if length($buf) < $ask;
++      }
+ 
+       if ($len > length $buf) {
+ 	# Cannot get whole element
+-- 
+2.40.0
+
diff --git a/meta/recipes-extended/perl/libconvert-asn1-perl_0.34.bb b/meta/recipes-extended/perl/libconvert-asn1-perl_0.34.bb
index f4aaa4f579..f4460bf324 100644
--- a/meta/recipes-extended/perl/libconvert-asn1-perl_0.34.bb
+++ b/meta/recipes-extended/perl/libconvert-asn1-perl_0.34.bb
@@ -7,6 +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 \
 	   file://CVE-2026-126540.patch \
+	   file://CVE-2026-126568.patch \
 	   "
 
 SRC_URI[sha256sum] = "a628d7c9d390568fb76359975fa03f626ce57f10dc17980e8e3587d7713e4ee7"
