From patchwork Tue Dec 1 05:30:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Patil, Omkar Abaji" X-Patchwork-Id: 106691 Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.5130.1796103058800427896 for ; Mon, 30 Nov 2026 21:30:58 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@windriver.com header.s=PPS06212021 header.b=gg3DKMc7; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=6795445c1e=omkarabaji.patil@windriver.com) Received: from pps.filterd (m0250810.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B12JJ151217912 for ; Mon, 30 Nov 2026 21:30:58 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=PPS06212021; bh=au9gCktV6t1gB9ghGtSDHGROGheGO+QBNm0ZDv/Yeh8=; b=gg3DKMc7UBOg pxKqwl8MpYsTQOYlgkL/54rjllEoNSUoOvlmRExOlxjWUyO38IRN9nUo1BLh1RwZ Qoy65lxK/ZCSoIE1sO2+GaNB03Ks5YG6vxHzMpOfXJZliMYJm4YaCk5BOWgLgkQR +pRwh4nw3yNLljG5RRGlSe/nC9X2tC9XyXUTbsdCnMHD52CApX3tptzOWg1fUeQf V4Fzd8XRLLL7kMH9t90dqVkGzj1Orm/1cX5ZjPV/PdGCgawU6Kad5IUzLodRyNJo qk+5ioNHl2833vwFijQK/IfZfiVojsXZsEIMAQXKCKP8nJ0dn4fWExPxmVVdWB9E oTCFoXU57w== Received: from bl0pr03cu003.outbound.protection.outlook.com (mail-eastusazon11022095.outbound.protection.outlook.com [52.101.53.95]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4j7u453u90-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Mon, 30 Nov 2026 21:30:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=daKzdqO/Nu2A+WYAH61E1oMJlwUvhTUdF9nG6Jrpl3jP4vFznW4vJe0yoOq7jxsDSJsvw3cznQ4Y3R6MYPBKZYQOtEwkE8ESDXTAO/CthBb0ZiOwnyp/yJ4uoHzDX3XjAveh0FNXl1z4E6SOgsVOyyg4V6BOswF2fhs5QdAPH2U4SdElKEMNGLSa1aFWfI52Bf2Gs/zveQGuy43bxLXNTy5I0OOS3l8tYGSzZ5faSzyEXLLAokQBiCrT3A4k9mkQbID7arhdDHI5GeRUaPAkvtJJh1qCH3HYemjdzYLk7WvxiByYfrL0ItfV2muqCH/0YTEtdyo/BeHDTEnPhWI8ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=au9gCktV6t1gB9ghGtSDHGROGheGO+QBNm0ZDv/Yeh8=; b=mmKMsXON7GL4WD7YCUT6VvmHg/VezPIHr8E0Q9/aqi911zo0klci7VeqgqL5Y68ldgbontMBxg1hYfcQXs6aFSA3r/fsp8TQdGC5jN+oqC+qi43gCEBMqHVh05TGzEryLiT5h35ywBB7F2vCPJW51u2SwpWLHoXCc3ITaC2hkCY/hXGMaNJLyN8NSClsqG0ApZsNuGeHtYlTOFWRhvx475bjlGmgx8SHboy6zgHvV4Kq8sUoszGSo3+KKyOyl09i/T+SGrvpPARdcrSMN1bTZjcffIl+NFVRzuUXNoL7eSauyTJ6eCMQdpAem53oL0zUVBDbReB4YAVhjSI/SQK9Wg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=windriver.com; Received: from DM6PR11MB3243.namprd11.prod.outlook.com (2603:10b6:5:e::19) by SA3PR11MB7488.namprd11.prod.outlook.com (2603:10b6:806:313::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Tue, 1 Dec 2026 05:30:55 +0000 Received: from DM6PR11MB3243.namprd11.prod.outlook.com ([fe80::6c83:d3c:7952:3ee1]) by DM6PR11MB3243.namprd11.prod.outlook.com ([fe80::6c83:d3c:7952:3ee1%4]) with mapi id 15.21.0662.007; Tue, 1 Dec 2026 05:30:55 +0000 From: Omkar Patil To: openembedded-core@lists.openembedded.org Subject: [blacksail][PATCH 2/8] libconvert-asn1-perl: fix CVE-2026-126568 Date: Tue, 1 Dec 2026 11:00:25 +0530 Message-Id: <20261201053031.3542039-3-OmkarAbaji.Patil@windriver.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20261201053031.3542039-1-OmkarAbaji.Patil@windriver.com> References: <20261201053031.3542039-1-OmkarAbaji.Patil@windriver.com> X-ClientProxiedBy: SE2P216CA0205.KORP216.PROD.OUTLOOK.COM (2603:1096:101:2c3::12) To DM6PR11MB3243.namprd11.prod.outlook.com (2603:10b6:5:e::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR11MB3243:EE_|SA3PR11MB7488:EE_ X-MS-Office365-Filtering-Correlation-Id: b4b0519d-8a28-40cb-b68b-08df4f6c459f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|23010399003|376014|52116014|38350700014|10067099003|260925022911599003|260925021911599003|260925021311599003|11063799006|56012099006|261021121427099003|261009223027099003|261021123027099003|261102123227099003|261022105027099003|261028144727099003|261026121527099003|261026140227099003|22082099003|18002099003|13003099007; X-Microsoft-Antispam-Message-Info: 8dyLTDUQzvf5H1gEGi15viBXrr2PpHLhYxXCKcHnHVgrA9TzUeOmJiP4N9DJ8hhl/dEZx8l+4wTN7jd+6LcPXpjtyMyAc6L5X9/A/zSY1AfgX3bVvViQdD74gTzIo4otc64Hca6Y6zFQQqY9WikD7CgOAIpTnv6Dw3+Lmvh6I1Kuve4jW2La/pSVawyMSOyj2YsR6i9RhUODwzr3q3Ysg7j4Hkzb1gaThC9EJCsvKHpLI2lEBOLLsZRgZduVI7kjf77pPpE13SvAFqGQPuRuAojw7T1mn2UWQHTppT9jIRpesL3YiyVxDX8c2OkuLu/CDaA1lfV7++niLgEyGpxtpS6hduteVFwqlRw6rRRZGOrBRfMUzHJmfR56PCSSUBkple65w+nlR34mP1JJlN0DKsK5jawESQOVvc47bZOKLNGCUHO1JdBq5n1o4UV8lH31Vg9sq+iPOAH3VxwULhpLvLOJEHtFEg1fY2Z2yhDU4xt+hbYOUBU0lOaEpT06CMbHkH2M/g5e99UImIOTwo3Cjm6WX4fbzm6Vj2RsKQ5cs1TAuE2Ig2EUeOjTIDMYOBAxrvyiMP8NvunonROmE1pfL5+ifqsWTkDgheIfDn6fhw4k//FkDK3qRNLY8zRVUJ+xvvC3VD0eJTke8aICP4LNyvd5pySOvROzHIpFHtQHCn7UZu8x7QBd4ct4YjqSKQmwcp6gEBriEVXtqkIlnQLrmbhXweIRE5/vdZeeY78Vh+M= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB3243.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(23010399003)(376014)(52116014)(38350700014)(10067099003)(260925022911599003)(260925021911599003)(260925021311599003)(11063799006)(56012099006)(261021121427099003)(261009223027099003)(261021123027099003)(261102123227099003)(261022105027099003)(261028144727099003)(261026121527099003)(261026140227099003)(22082099003)(18002099003)(13003099007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?njBa/ujDX05o+pgeX3+MwA6bFHt3?= =?utf-8?q?kQHUfd23qvlIJEjj2bgTbU4qro7QSqNhAreuDpSPkD0/FObEo1nMhATBEFZ3kP6w2?= =?utf-8?q?Laf8b7XrfJ5yMZChyfyAGLKrv5BZbgVOXjtgRIkJ4oVJHh7ddVGZHKLW5j5ddGQ1u?= =?utf-8?q?bVYosaw3HO8FENuO+NnvyB8uPvtaHS8hUwEY/9RaPSMVP2//kW71fUkIo5zpRwR9X?= =?utf-8?q?6Js8XK7fDJaGxgLboICalQxw59Uq8hblnoRN/0vN1ZZbvo/3HKrbMXr/c1LKU7jPK?= =?utf-8?q?20qy1db10oNDJt2i4nV2IFjz18ONqdN+1zQ4lQNU3lAEJLzUN76fI5sAiS+dftfiN?= =?utf-8?q?SpfjTGG6lWN+/Se4s6ndaXJQWwtkZqhfwzKhYehBYSp+0y9SQogvw+s3SvCOZNOGQ?= =?utf-8?q?0sbVjJvk8qndWtZvbrwia+6AGOHJWfmEJYtt+8HDUUAvj0Qm6kaqpgMZY1PMgYKth?= =?utf-8?q?v0cHyMqMc6RnqJKOr+IrrOtyR3EqxRya15Ka88F1n4NDOtIepAzoYCUFVB9yZMufp?= =?utf-8?q?WpnLJCujK7hhWgOAPUpgFwIIah3utL55yBXQ9MPQTUaxU7zUjTj/1Uyo6gD6TTKfX?= =?utf-8?q?wFp8X9TOW2IAnae/o87nZyQWJmqcaAesUuTKUntW8YXTb3lGVkU7EFpS6SjnXnxzH?= =?utf-8?q?BUopGB4mfXzqDTQ1LnqG5FdsSG5X/ZgBN7cH3GkPAV8fq9hxG3vJ4t9CHVHtqxlCT?= =?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?1BB2eULQPr62FDZJ8C6L9WuASpeKNCBjOlIYcGlzJ7TUdt7sCIfLsFJjinYS/lnq6?= =?utf-8?q?8t5MKWX4PobsXQKx67Xnxa+ix2YWiar6KJXzk4ok46UuxoJ4sX4DU=3D?= X-Exchange-RoutingPolicyChecked: U9FvK+kG2PTv+ugSt56kIg5C0qp/adJCdFdnhFEmUNaL3tjfchwdum+5qLhX9BGf5Bne2KNao8h/oEOjtq7YT5fE88qfBe6aS811BpB2R42Mn4JVdFukAbVhM0avzxh8NILMh8ORM5CSZT5R7Iq+E1ZLo1Pr/AKb12arUAqMwxrmnLjV9isvxyIwoeyjKyQYD2N03cYYGc10oeEGxKWHFh9nl4eOO7Z8Hs6FyGMT4/J0M2EYFVNRSYlVfQ/vY1993VSGz/VZBgrMPJUTdYpHZZ0DsnIrQgyTzFQ6Pa/Gzwytzxp9onjosIFVyew+0ACVM6ShtWETZaZtt5WgL5eL8A== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4b0519d-8a28-40cb-b68b-08df4f6c459f X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3243.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 05:30:55.5580 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9K5aXWIef5JlMNt48krbp8FAr6ByV9tpCKCTiX0MldxWRpxVsbUtdQKWsn1sPA85DK91uvnGa+xQjZJUl7/KJLv8S1hKWAcdh5khFwHoB2E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB7488 X-Proofpoint-GUID: Htrjl34e7zc3Zex6sX8a_5OGVVRzlKsA X-Proofpoint-ORIG-GUID: Htrjl34e7zc3Zex6s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nh0TtqZOpoT2mtNieCwneKLcFNg3XLSqG0Cefmhyvci3eJtorT9Bp2a qc0M2KcK7mTVseO4B8sGnj5amjrtWYufFdvpEuHhmK3FmJG+ro86qvn03WE+uagAkmcv1r62SkE rF3oamuE3y+Z0AyYGMg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_01,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 adultscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010021 X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0064b401.pphosted.com id 6B12JJ151217912 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 05:31:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251668 Convert::ASN1 versions before 0.37 contain a flaw in asn_recv() that can cause memory exhaustion (DoS). A specially crafted incomplete BER message causes the receive buffer to repeatedly double in size while using MSG_PEEK,eventually consuming all available memory and crashing the Perl process. Reference: [https://nvd.nist.gov/vuln/detail/cve-2026-126568] Upstream patch: [https://github.com/cpan-authors/perl-Convert-ASN1/commit/a30eae1dc6a977716b76f79f228fa0432e28bc5a] Signed-off-by: Omkar Patil --- .../CVE-2026-126568.patch | 88 +++++++++++++++++++ .../perl/libconvert-asn1-perl_0.34.bb | 1 + 2 files changed, 89 insertions(+) create mode 100644 meta/recipes-extended/perl/libconvert-asn1-perl/CVE-2026-126568.patch 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 +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 +--- + 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 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 + be called directly instead of calling C. + +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 f2745f95f4..9b3d61bff8 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"