From patchwork Tue Sep 1 07:21:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hitendra Prajapati X-Patchwork-Id: 96934 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D56A4C61DD3 for ; Tue, 1 Sep 2026 07:21:34 +0000 (UTC) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2415.1788247293880715310 for ; Tue, 01 Sep 2026 00:21:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@mvista.com header.s=google header.b=MnS9slfc; spf=pass (domain: mvista.com, ip: 209.85.215.178, mailfrom: hprajapati@mvista.com) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-cc1d57602e8so4286424a12.3 for ; Tue, 01 Sep 2026 00:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista.com; s=google; t=1788247293; x=1788852093; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=i90qf+t3oAvv8zYF2OsFvC+/dTBE3JoHaTwCrlXq5oU=; b=MnS9slfcslE+TY6p3cL8/xKCnmPyu/bAA9oor+YCRoprRbTPrC5NiRXloTtPj5nsFG hSAvwA3PP8QwOe7QlMVuAaeLMmWByHdDqIXgAfgRl1LAVm8e+alKARnFJ8iTTzflkovr PlF7/wOxcuxMI1aorZGwZknwdAUWtRjUgfVEw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788247293; x=1788852093; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=i90qf+t3oAvv8zYF2OsFvC+/dTBE3JoHaTwCrlXq5oU=; b=DfEb9vb39/nyOs934H0yiI3QJ/uGbOuLWGCbuv7Qxud5lKXr/sIKIz5h91vsNEDq16 Tiif7S6Q838aZl5fMrDzdlvrDb0aN4C/gRDfEtd/K9vnyPgaY4pVQ8OUYQwe3eYeaJDu RvYkfM0EfQLigRvWO1kkQUioD5rgHDRmClj16JURheXT3m4yBjrceVKgx0IQmu9TWUe5 fVj5ILURSDGAZPu9Dk90+NPKVcBFn+mPK/CoFPz6Aynhm0tvvIUotgFoN1ObHHWcsWTd NZXLCAdjWk2/2gXl6eqPw27voOeUnC0uHf/b6OCaIDLLWWA0RQnHDBhNd3DJn8y3Qc1c GvSA== X-Gm-Message-State: AFuF++lA4r+15SQi9AZtrnaEoHVaGA6+3YtXIgNZkJlFRPCWoz8MAYua 0pmOP6TJ+iCXaeSIBKZZiHN08lQibgE1xOb1VbwoP0YGDF2dgQLOqST2WeFwLF4dlq+55ualE8u qmBPOlz8= X-Gm-Gg: AYBFou10X+Cs9+MFDBX/wc2QAf/kgBIF4KqgmUofgSwCfhisbzuIElf4csykwq/fQDZ Ehgw7LPn7VsrY31DYAnJIb+5Fy5tDGnzMWXrYFdevwFlMXfzNx/uRq37oef5/j9G4YDyOqnBXW4 3Tn7H4CML6I5vnMAykI7J5AO/1XesFOSnKrTbCtbQ5mU9KNOyoTVZlJWwOSSHt+DelOEzVeXWHt XwZfI1JblEzNYwMh64mygCcjWx8xTO4RKQYuY3leSwYbyibbYGHI+M95Dao54ogoTf/9DXmcuKD bY7iMh92nEwxoU4L6Tx303/2fGX6MEGTRmxBmjG6RH/IEddDLiFOaVovUwbwIoAaLyMWZmWIDg5 ocREf6MGzBegzG0fkloQ4NJ2YdoFUqfD13JHYqnZlhZzPiLlnLmy9mFFSoq7F0ST+US/qp5+NIw Y61UeRUEd9WpjAAkPNJAQAxXLxX5iU/nVbe7kzvuIGsIg+fPCtRfTXM9MvANHBwrqnTe0ymg4ef tc= X-Received: by 2002:a17:90b:5804:b0:398:9bd5:490f with SMTP id 98e67ed59e1d1-3989bd54c38mr34046960a91.22.1788247292943; Tue, 01 Sep 2026 00:21:32 -0700 (PDT) Received: from MVIN00013.mvista.com ([103.250.136.191]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-142e0d2e465sm54200607c88.4.2026.09.01.00.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 00:21:32 -0700 (PDT) From: Hitendra Prajapati To: openembedded-core@lists.openembedded.org Cc: Hitendra Prajapati Subject: [wrynose][PATCH 1/3] vim: Fix for CVE-2026-73072 Date: Tue, 1 Sep 2026 12:51:14 +0530 Message-ID: <20260901072116.30784-1-hprajapati@mvista.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 01 Sep 2026 07:21:34 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/244799 Pick the patch from [1], also referenced in the NVD report [2]. [1] https://github.com/vim/vim/commit/05c41c922309c7a11b6ec2f124be66551c90d66a [2] https://nvd.nist.gov/vuln/detail/CVE-2026-73072 Signed-off-by: Hitendra Prajapati --- .../vim/files/CVE-2026-73072.patch | 64 +++++++++++++++++++ meta/recipes-support/vim/vim.inc | 1 + 2 files changed, 65 insertions(+) create mode 100644 meta/recipes-support/vim/files/CVE-2026-73072.patch diff --git a/meta/recipes-support/vim/files/CVE-2026-73072.patch b/meta/recipes-support/vim/files/CVE-2026-73072.patch new file mode 100644 index 0000000000..0ae3b2b49e --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2026-73072.patch @@ -0,0 +1,64 @@ +From 05c41c922309c7a11b6ec2f124be66551c90d66a Mon Sep 17 00:00:00 2001 +From: Yasuhiro Matsumoto +Date: Fri, 24 Jul 2026 00:58:37 +0900 +Subject: [PATCH] patch 9.2.0846: [security]: heap buffer overflow in + set_sofo() + +Problem: [security]: heap buffer overflow in set_sofo() + (Yazan Balawneh) +Solution: Reset sl_sal_first (Yasuhiro Matsumoto). + +A crafted spell file with an empty SN_SAL section before an SN_SOFO +section reaches set_sofo() with sl_sal_first[] already set to -1 by +set_sal_first(). The counting loop then under-counts colliding +multi-byte "from" characters, allocates an undersized list and writes +past its end. + +Github Security Advisory: +https://github.com/vim/vim/security/advisories/GHSA-9jqx-hgpr-6v64 + +Signed-off-by: Yasuhiro Matsumoto +Signed-off-by: Christian Brabandt + +CVE: CVE-2026-73072 +Upstream-Status: Backport [https://github.com/vim/vim/commit/05c41c922309c7a11b6ec2f124be66551c90d66a] +Signed-off-by: Hitendra Prajapati +--- + src/spellfile.c | 4 +++- + src/testdir/test_spellfile.vim | 5 +++++ + 2 files changed, 8 insertions(+), 1 deletion(-) + +diff --git a/src/spellfile.c b/src/spellfile.c +index b3ee9c0d63..a9f7e83752 100644 +--- a/src/spellfile.c ++++ b/src/spellfile.c +@@ -1433,7 +1433,9 @@ set_sofo(slang_T *lp, char_u *from, char_u *to) + gap->ga_len = 256; + + // First count the number of items for each list. Temporarily use +- // sl_sal_first[] for this. ++ // sl_sal_first[] for this. Reset it first: a preceding SN_SAL section ++ // may have set the entries to -1 via set_sal_first(). ++ vim_memset(lp->sl_sal_first, 0, sizeof(salfirst_T) * 256); + for (p = from, s = to; *p != NUL && *s != NUL; ) + { + c = mb_cptr2char_adv(&p); +diff --git a/src/testdir/test_spellfile.vim b/src/testdir/test_spellfile.vim +index 3a93883b4d..0b0cf42066 100644 +--- a/src/testdir/test_spellfile.vim ++++ b/src/testdir/test_spellfile.vim +@@ -319,6 +319,11 @@ func Test_spellfile_format_error() + " SN_SOFO: multi-byte characters in sofofrom and sofoto + call Spellfile_Test(0z0600000000080002CF810002CF82FF000000000000000000000000, '') + ++ " SN_SAL (empty) followed by SN_SOFO with two multi-byte 'from' characters ++ " sharing the same low byte. A preceding SN_SAL poisons sl_sal_first[], so ++ " without a reset set_sofo() under-counts and writes out of bounds. ++ call Spellfile_Test(0z05000000000300000006000000000A0004CAABCEAB00024142FF000000000000000000000000, '') ++ + " SN_COMPOUND: compmax is less than 2 + call Spellfile_Test(0z08000000000101, 'E759:') + +-- +2.34.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index 1da47d9243..34d4507906 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -39,6 +39,7 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https;tag=v${PV} file://CVE-2026-59856.patch \ file://CVE-2026-59857.patch \ file://CVE-2026-59858.patch \ + file://CVE-2026-73072.patch \ " PV .= ".0340" From patchwork Tue Sep 1 07:21:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hitendra Prajapati X-Patchwork-Id: 96935 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBC36C61DD3 for ; Tue, 1 Sep 2026 07:21:54 +0000 (UTC) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2348.1788247306394389367 for ; Tue, 01 Sep 2026 00:21:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@mvista.com header.s=google header.b=S/xliFO0; spf=pass (domain: mvista.com, ip: 209.85.215.169, mailfrom: hprajapati@mvista.com) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-cc1c7364550so4685932a12.1 for ; Tue, 01 Sep 2026 00:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista.com; s=google; t=1788247306; x=1788852106; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=lMecLdOV97lULOAoUu7raMy9GF/noImRxfEyvnt2VkM=; b=S/xliFO047qymtex0UFGZK0J/VAXQtRScgHdEKJIWBtYMY1W7xiGBF9MkcgVXNVbEH aTi+Iy6C5g+qIoAFRST4cZicjKHNBgttzB1eGRKwFk761WJv9iG+axYZVKtMcCiyqZhO 2B9IIocltgRrLKp8+xO4xkxbta99VQKu7ppVA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788247306; x=1788852106; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=lMecLdOV97lULOAoUu7raMy9GF/noImRxfEyvnt2VkM=; b=qY9xYqO3GPX1o3bHpCkwAFJsCL7xmqdo+xyHx5ePgGS9ThW+wRanppM8iLpD+hlY0+ Swn1riq7NUA/KY6LKtHjQ/QoHeGVZErLwBlLCJgLyj2JfKUiBa9Xan0JY72d4rzL0+lr ZNiuebtSsXTfTIp/XY3/c6ZdqRDVcPoJm1QEmo5ROZ6/cMyc9kQyFlkPGppfyZELft9p bbfIpLug6HWajFq43Sw5YRTvpUuubEGwRCfgQfQ5zpwu7nk1EVMMIX+qfXhUGoRk5rII vjKVRWUIpOMLJlt3jGYmG6UelVjtepXSsg1fYX+MaKzj87QatcVrzum5/CCUIw+DNnDQ JW/g== X-Gm-Message-State: AFuF++kkOoy4evpU+oBbeC2DrcmUYqwRywVdDjg6LwHE6ZLV2Ae+mRNc tnYtvWGJ/JwArel5YbtwTy7VWd0tqswtKoRUbb/lgy08yPWgz3xu42CN/Xjdy3GL/L3p9gPJjvB RYtp5Mps= X-Gm-Gg: AR+sD10VgP38JRaDT3o6GhUV10OI9H5/d7enqDnWZRT1ExjIjMapgci6/gmOXHdacAx XZrRPrDOOLxunQ9Xv3AnaQRGQfuwAEjnT9nJXIlXMjpYAwqDUiB0vHQJSNJqthAgAOp9WTr/O6L hXgA2iHyZvuwUQ5MFLCx8vIw912HfDrc0ib13fUxG4LH/2CMNs8Z9ib3Jfc5xQghBl7CQXBYf33 4d6xnnGNDYawS6yUm3l18KGZbeojNQwD4Ykj4XnDpArRLf9VouJuAyx47FoJ6Mkb6nEUS0HPURR rTnrkNzohi+aZELUBX44Y6NQLzLVhDm+sGl5uAwiV7ODV551sAjmRLt4rKecP6vHwLtscibBbgn rZz4IdZmW8kMHwaqyCmBHiSpEMHgOGRcfmmP3YK3ebr9sMJwC1yW8NcC5stH5bhMKcv/bf+znMq n7D8W8WAPLUhM4I7VWjL+/AsiR6MtnNNCm0TufHb6fN+US92W3TVk8SvG4vDSRyk3UzC9SDfgmo Kdm/I6V4iaO X-Received: by 2002:a05:6a21:3a42:b0:3d0:d1f1:6ec5 with SMTP id adf61e73a8af0-3d7adeb6816mr9582366637.4.1788247305730; Tue, 01 Sep 2026 00:21:45 -0700 (PDT) Received: from MVIN00013.mvista.com ([103.250.136.191]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-142e0d2e465sm54200607c88.4.2026.09.01.00.21.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 00:21:45 -0700 (PDT) From: Hitendra Prajapati To: openembedded-core@lists.openembedded.org Cc: Hitendra Prajapati Subject: [wrynose][PATCH 2/3] vim: Fix for CVE-2026-73073 Date: Tue, 1 Sep 2026 12:51:15 +0530 Message-ID: <20260901072116.30784-2-hprajapati@mvista.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260901072116.30784-1-hprajapati@mvista.com> References: <20260901072116.30784-1-hprajapati@mvista.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 01 Sep 2026 07:21:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/244800 Pick the patch from [1], also referenced in the NVD report [2]. [1] https://github.com/vim/vim/commit/2f628d8104958fa7421664f792ca6d4f7a39a10f [2] https://nvd.nist.gov/vuln/detail/CVE-2026-73073 Signed-off-by: Hitendra Prajapati --- .../vim/files/CVE-2026-73073.patch | 105 ++++++++++++++++++ meta/recipes-support/vim/vim.inc | 1 + 2 files changed, 106 insertions(+) create mode 100644 meta/recipes-support/vim/files/CVE-2026-73073.patch diff --git a/meta/recipes-support/vim/files/CVE-2026-73073.patch b/meta/recipes-support/vim/files/CVE-2026-73073.patch new file mode 100644 index 0000000000..5defa7339e --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2026-73073.patch @@ -0,0 +1,105 @@ +From 2f628d8104958fa7421664f792ca6d4f7a39a10f Mon Sep 17 00:00:00 2001 +From: Yasuhiro Matsumoto +Date: Fri, 17 Jul 2026 09:11:42 +0900 +Subject: [PATCH] patch 9.2.0845: [security]: arbitrary Ex command execution + during C omni-completion + +Problem: [security]: arbitrary Ex command execution during C + omni-completion (Threonine) +Solution: Match tags typeref literally to block Ex command injection + (Yasuhiro Matsumoto). + +Escaping only "/" and "\" left the typeref able to break out of the +:vimgrep pattern without a "/": an unclosed "[" makes vimgrep's pattern +skipping fail, and the parser then treats a following "|" as a command +separator, so the tag value runs as Ex commands during C omni-completion. +Match the field literally with \V so no regex metacharacter can affect +pattern parsing. + +Github Security Advisory: +https://github.com/vim/vim/security/advisories/GHSA-cx73-phcg-3j5g + +Signed-off-by: Yasuhiro Matsumoto +Signed-off-by: Christian Brabandt + +CVE: CVE-2026-73073 +Upstream-Status: Backport [https://github.com/vim/vim/commit/2f628d8104958fa7421664f792ca6d4f7a39a10f] +Signed-off-by: Hitendra Prajapati +--- + runtime/autoload/ccomplete.vim | 5 ++++- + src/testdir/test_plugin_ccomplete.vim | 26 ++++++++++++++++++++++++++ + src/version.c | 4 ++++ + 3 files changed, 34 insertions(+), 1 deletion(-) + +diff --git a/runtime/autoload/ccomplete.vim b/runtime/autoload/ccomplete.vim +index dc3388b524..593789a84f 100644 +--- a/runtime/autoload/ccomplete.vim ++++ b/runtime/autoload/ccomplete.vim +@@ -599,8 +599,11 @@ def StructMembers( # {{{1 + if complete_check() + return [] + endif ++ # Match "typename" literally (\V): escaping alone is not enough, as e.g. ++ # an unclosed "[" makes vimgrep's pattern skipping fail and the rest of ++ # the tag value is then parsed as Ex commands. + execute 'silent! keepjumps noautocmd ' +- .. n .. 'vimgrep ' .. '/\t' .. escape(typename, '/\') .. '\(\t\|$\)/j ' ++ .. n .. 'vimgrep ' .. '/\t\V' .. escape(typename, '/\') .. '\m\(\t\|$\)/j ' + .. fnames + + qflist = getqflist() +diff --git a/src/testdir/test_plugin_ccomplete.vim b/src/testdir/test_plugin_ccomplete.vim +index a635bd50bd..c1754d17c1 100644 +--- a/src/testdir/test_plugin_ccomplete.vim ++++ b/src/testdir/test_plugin_ccomplete.vim +@@ -31,6 +31,32 @@ func Test_ccomplete_no_exec_via_typeref() + unlet! g:ccomplete_injected + endfunc + ++" Escaping "/" and "\" is not enough: with no "/" in the payload, an unclosed ++" "[" makes vimgrep's pattern skipping fail, and the command parser then treats ++" the first "|" as a command separator. The typeref must be matched literally. ++func Test_ccomplete_no_exec_via_typeref_bracket() ++ CheckUnix ++ let sentinel = tempname() ++ call delete(sentinel) ++ let tagsfile = s:WriteTags([ ++ \ "myvar\tmain.c\t/^x$/;\"\tv\ttyperef:struct:[|call system('touch " .. sentinel .. "')|####", ++ \ ]) ++ ++ let save_tags = &tags ++ let &tags = tagsfile ++ ++ new ++ call ccomplete#Complete(1, '') ++ call ccomplete#Complete(0, 'myvar.x') ++ ++ call assert_false(filereadable(sentinel), ++ \ 'typeref field was executed as an Ex command during omni-completion') ++ ++ bwipe! ++ let &tags = save_tags ++ call delete(sentinel) ++endfunc ++ + " A legitimate typeref must still drive struct-member completion: escaping the + " field value must not break the normal path. + func Test_ccomplete_typeref_completion_still_works() +diff --git a/src/version.c b/src/version.c +index 92cd53129e..26e4e026c3 100644 +--- a/src/version.c ++++ b/src/version.c +@@ -734,6 +734,10 @@ static char *(features[]) = + + static int included_patches[] = + { /* Add new patch number below this line */ ++/**/ ++ 845, ++/**/ ++ 846, + /**/ + 736, + /**/ +-- +2.34.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index 34d4507906..7ab7a405ff 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -40,6 +40,7 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https;tag=v${PV} file://CVE-2026-59857.patch \ file://CVE-2026-59858.patch \ file://CVE-2026-73072.patch \ + file://CVE-2026-73073.patch \ " PV .= ".0340" From patchwork Tue Sep 1 07:21:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hitendra Prajapati X-Patchwork-Id: 96936 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6CF4C61DD3 for ; Tue, 1 Sep 2026 07:23:04 +0000 (UTC) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2357.1788247375556183290 for ; Tue, 01 Sep 2026 00:22:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@mvista.com header.s=google header.b=DmzQMZAc; spf=pass (domain: mvista.com, ip: 209.85.215.169, mailfrom: hprajapati@mvista.com) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-c96c92c0980so439170a12.3 for ; Tue, 01 Sep 2026 00:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista.com; s=google; t=1788247375; x=1788852175; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=V3JvbGRNp8cTyOfup8t7a6RYwNKPk0ndVbwRUBGxq08=; b=DmzQMZAcfQSSQpHkHalDXULHO88IMR8ME7tl29qWljLEGRBH5dC2N3qbcoUaK+G3r1 1Cm+dh6jo2Z/vhBGEduB4LPmlAKiiGmLrxeDddfd6G+9rMgkLyxel2KPwiBYS1aNnyxc pqsBngytoJgrXuwWDn2CoCCgdsq94DXletW5M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788247375; x=1788852175; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=V3JvbGRNp8cTyOfup8t7a6RYwNKPk0ndVbwRUBGxq08=; b=iCrALZlqeVXtifEVZtm0NU6VJdN97p531X88h7/WA1jolV/QKvtBotaNKf6m5D4JJO iVdb8eFBWIHr/lap8JM6jkb0YcHpmpV4iZwtue2l2R/7aXuI+7FyxgAqn+5RYkDQ+9nD 4AVoOkaz4VdlSGayOV6Ubp4O8r0b6+8Tw1bVpp5dFrkexOOX3HDHA5yjaiL5/IhCuP/O VKSBV5vVOxMxGGU8ClgAR2OVGWRG4/yUaWyOSg0FJoTnwt29zyGa9YIkxe4Lqor/oXX9 Q4n8mZk7IW4uVr2fqIJ4kFtO96Do1k5GPec/oMKRkZXk0T2u0mYAWGVciq/4qUpQtbkf oMvA== X-Gm-Message-State: AFuF++maZAbLylJhtnhdiiBIQUiX0bIrQLBpqFxqtzZ9HDErjRC89q0Z 6qEw4s4bkdDYAQdrtHpE8gMNgy0RdMifO+Vn28+C7qAPWnm9wbxHQMtfQHwt2pcr0qAQAFcKQbr W/MLO X-Gm-Gg: AYBFou3ySp3ks5NV6g89yehMjLiF+HzJV1TYaSXBYdYosiA+R5+g2QOOjW9GKqLHbL9 dUdqsxjQJzLPXPH242afEyhKRyX2yIXXbhDH+TAOXVyg+DqTqdtJbVyRkqm/jCCsM8+NfF3cvfK q6aJNtW4b5f3g4DgKJTy2YDsq1RHVJcxzAYj5v4TeUA6MAhPHAOWwTmw4bldLN5jPqT+lNMOCYh zFdiHfhjwrt8WYNo09o62eIiHav07FzX/mBBtmw642L9Iuewajzbv+OhdDe/wIV7o7KKzZ4o5Iq suBEZMqsEDxgjN8FSZxY3UNw0xoSdzTCSGaW4C6jXedNte0oiLGzokGIdfnJtd0Myy0tgPEI1bh +84j9QDvJbvQfCoHLs427yE0CvqsF71kR45n+kit9Lns+Bi9Hqf5/IovniSuy/3WpA5zdB+n/2g bnODFFuzTYwjwyAWgOG7DcMMWAdlxdKDIVy3T/vugQd4AdXijSa5ILB//gbwIMaMrqfS+g/9SG4 bvRc+WlYQFC X-Received: by 2002:a17:90b:564e:b0:381:25ce:bcc2 with SMTP id 98e67ed59e1d1-396d0ee7010mr44602527a91.6.1788247374867; Tue, 01 Sep 2026 00:22:54 -0700 (PDT) Received: from MVIN00013.mvista.com ([103.250.136.191]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-142e0d2e465sm54200607c88.4.2026.09.01.00.21.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 00:22:54 -0700 (PDT) From: Hitendra Prajapati To: openembedded-core@lists.openembedded.org Cc: Hitendra Prajapati Subject: [wrynose][PATCH 3/3] vim: Fix for CVE-2026-73074 Date: Tue, 1 Sep 2026 12:51:16 +0530 Message-ID: <20260901072116.30784-3-hprajapati@mvista.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260901072116.30784-1-hprajapati@mvista.com> References: <20260901072116.30784-1-hprajapati@mvista.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 01 Sep 2026 07:23:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/244801 Pick the patch from [1], also referenced in the NVD report [2]. [1] https://github.com/vim/vim/commit/a9336b476fd1a182e3f79b5f83c0ffb04f8a922b [2] https://nvd.nist.gov/vuln/detail/CVE-2026-73074 Signed-off-by: Hitendra Prajapati --- .../vim/files/CVE-2026-73074.patch | 115 ++++++++++++++++++ meta/recipes-support/vim/vim.inc | 1 + 2 files changed, 116 insertions(+) create mode 100644 meta/recipes-support/vim/files/CVE-2026-73074.patch diff --git a/meta/recipes-support/vim/files/CVE-2026-73074.patch b/meta/recipes-support/vim/files/CVE-2026-73074.patch new file mode 100644 index 0000000000..896298b703 --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2026-73074.patch @@ -0,0 +1,115 @@ +From a9336b476fd1a182e3f79b5f83c0ffb04f8a922b Mon Sep 17 00:00:00 2001 +From: Yasuhiro Matsumoto +Date: Thu, 23 Jul 2026 20:14:13 +0000 +Subject: [PATCH] patch 9.2.0841: [security]: heap overflow when adding > 65535 + text properties + +Problem: [security]: heap overflow when adding > 65535 text properties + (Wang1rrr). +Solution: Verify that the number of text properties falls within the + limit (Yasuhiro Matsumoto). + +Github Security Advisory: +https://github.com/vim/vim/security/advisories/GHSA-hm4g-pjfx-m27j + +Signed-off-by: Yasuhiro Matsumoto +Signed-off-by: Christian Brabandt + +CVE: CVE-2026-73074 +Upstream-Status: Backport [https://github.com/vim/vim/commit/a9336b476fd1a182e3f79b5f83c0ffb04f8a922b] +Signed-off-by: Hitendra Prajapati +--- + src/errors.h | 4 ++++ + src/po/vim.pot | 3 +++ + src/testdir/test_textprop.vim | 18 ++++++++++++++++++ + src/textprop.c | 7 +++++++ + src/version.c | 2 ++ + 5 files changed, 34 insertions(+) + +diff --git a/src/errors.h b/src/errors.h +index 53e5b1dda6..1682c8587c 100644 +--- a/src/errors.h ++++ b/src/errors.h +@@ -3812,3 +3812,7 @@ EXTERN char e_gethostbyname_in_channel_listen[] + EXTERN char e_cannot_create_pipes[] + INIT(= N_("E1575: Cannot create pipes")); + #endif ++#ifdef FEAT_PROP_POPUP ++EXTERN char e_too_many_text_properties_on_a_single_line[] ++ INIT(= N_("E1580: Too many text properties on a single line")); ++#endif +diff --git a/src/po/vim.pot b/src/po/vim.pot +index b2e3b0f647..aed7d833cf 100644 +--- a/src/po/vim.pot ++++ b/src/po/vim.pot +@@ -8859,6 +8859,9 @@ msgstr "" + msgid "E1575: Cannot create pipes" + msgstr "" + ++msgid "E1580: Too many text properties on a single line" ++msgstr "" ++ + #. type of cmdline window or 0 + #. result of cmdline window or 0 + #. buffer of cmdline window or NULL +diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim +index f94acfc97c..a293363a8a 100644 +--- a/src/testdir/test_textprop.vim ++++ b/src/testdir/test_textprop.vim +@@ -4907,4 +4907,22 @@ func Test_textprop_materialize_list() + call assert_equal([], prop_list(1, #{ids: 3->range()})) + endfunc + ++" Adding more than 65535 text properties to one line must be rejected instead ++" of wrapping the uint16_t property count and overflowing the allocation. ++func Test_prop_add_over_uint16_max() ++ CheckNotAsan ++ CheckNotValgrind ++ new ++ call setline(1, 'x') ++ call prop_type_add('overflow', {}) ++ for _ in range(0xffff) ++ call prop_add(1, 1, {'type': 'overflow', 'length': 0}) ++ endfor ++ call assert_equal(0xffff, prop_list(1)->len()) ++ call assert_fails("call prop_add(1, 1, {'type': 'overflow', 'length': 0})", 'E1580:') ++ call assert_equal(0xffff, prop_list(1)->len()) ++ call prop_type_delete('overflow') ++ bwipe! ++endfunc ++ + " vim: shiftwidth=2 sts=2 expandtab +diff --git a/src/textprop.c b/src/textprop.c +index 5959ecc45f..fe453244c1 100644 +--- a/src/textprop.c ++++ b/src/textprop.c +@@ -758,6 +758,13 @@ prop_add_one( + proplen = get_text_props(buf, lnum, &props, TRUE); + textlen = ml_get_buf_len(buf, lnum) + 1; + ++ // prop_count is a uint16_t; stop before proplen + 1 wraps to zero. ++ if (proplen >= 0xffff) ++ { ++ emsg(_(e_too_many_text_properties_on_a_single_line)); ++ goto theend; ++ } ++ + if (lnum == start_lnum) + col = start_col; + else +diff --git a/src/version.c b/src/version.c +index 26e4e026c3..2a056f9da5 100644 +--- a/src/version.c ++++ b/src/version.c +@@ -734,6 +734,8 @@ static char *(features[]) = + + static int included_patches[] = + { /* Add new patch number below this line */ ++/**/ ++ 841, + /**/ + 845, + /**/ +-- +2.34.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index 7ab7a405ff..9dda2c0be5 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -41,6 +41,7 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https;tag=v${PV} file://CVE-2026-59858.patch \ file://CVE-2026-73072.patch \ file://CVE-2026-73073.patch \ + file://CVE-2026-73074.patch \ " PV .= ".0340"