From patchwork Tue Sep 1 12:27:23 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hitendra Prajapati X-Patchwork-Id: 96960 X-Patchwork-Delegate: yoann.congal@smile.fr 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 84B99C61DD3 for ; Tue, 1 Sep 2026 12:27:44 +0000 (UTC) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.6733.1788265661246942088 for ; Tue, 01 Sep 2026 05:27:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@mvista.com header.s=google header.b=fqyEPRID; spf=pass (domain: mvista.com, ip: 209.85.215.175, mailfrom: hprajapati@mvista.com) Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-cc1bcdb3c4cso3590960a12.2 for ; Tue, 01 Sep 2026 05:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista.com; s=google; t=1788265660; x=1788870460; 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=lF0xvKtKrsnIfLhxeiWheUkxE4IYkYsAIE5xuLs7gcM=; b=fqyEPRID8/GHBT1qmPGss3ti+pdXYaGmudi4EVlheb4qqpRvlTiO2p1NKFTIiFr8d2 p8obQYEPvoySDARSfL15DZWJy9YsUO9YLp1sBsd9lya8/YWcXEc6goE7WTD1+lQuOhz2 AGKgyGffyxKB+TN6nh5GJbf0FbKbRxwg+Qej8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788265660; x=1788870460; 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=lF0xvKtKrsnIfLhxeiWheUkxE4IYkYsAIE5xuLs7gcM=; b=saBb9VziUgLcwUDafhHRKViWtF13KqLrtQ05W2A9l1YLkUhbPZZFVX+Vj9+pWH8lrZ Mnwh6rYWpS8Z17MHIuazWv3PtI8HYaELOdhA7IIQAbsAJ8j3Qj749JLE+xlAc31phb61 fC4WCBLodXyKG9zR3jDO2hzu6nLR63ixHOtQeZulob5R+P2cZbH6vssgS4wiRThVjL/y AvEzaXCvsKp+8ZHBWZ7aFi5QPiNFPKsNpJwxoLS1Yy8nZIh7WuB07eu7V9HhomuRN8xB ROoWDvzTzeYmEAeDV/oN6WrH5An4fIlKTXg8lfJgvTqjh+GhHTSQx/h2DOJURwGk4ZtR cTNA== X-Gm-Message-State: AFuF++k2g41FuN7fsfkwGMVNE5g9jF5BhRC+PujE60cIWMJ7zDFh+3E+ /gqrJx3Zekv5gMrWSaljDFp83nfzCdMuzIuXSHt+JC7l+GSrcOmDGgScGxLF+8A+h2bNtSIx6GX O+6amjVo= X-Gm-Gg: AYBFou0d/hZW4iY9gugp6IxMDdqiwJ2uR1ju0dpM2iIomFvhsPkch9AsHIjBpaEJy0o UZ75wN2Mzv7qYZJdNhXZV0h6HyWJnDf5gMnEoLtgqT7ic+Ky1lIfSP3qD27krjbyaIm/FCwYJLA 9lGyHyh9A+h18LUbiSaZdLFb+h2mbpQL3VuxapL1f0+W+5AHhu+kw1Gz4edRzdSN1BgE8zENn5q NP5K9RHSKZiDxrINzc6i61x323Z+flvzaM/2BFs9UbFHYieSZMw1+nufNL4rpQe6EontQ6l+mfz il+jIkVK/SwzuSoZISphqEUM/bc1hJEwBu+Jbzt/Pttlmt5Tbrp01lhq+WL8GF/68apkG0LbrPv N0DznsCgUSpVzxe4NO42VBg2IzWGe0GnKTFyUaKe7sjcIhF01wYVZLYvsHpQfDkKk5yiM9e0lPC i2RQMj0c17+G6zaQc5AApdyJueW0GK4iIQe8UHyDx78NfdteYPntO8AaZM1oImklzTE7nIYRuTA w== X-Received: by 2002:a17:90b:1806:b0:398:9be6:f997 with SMTP id 98e67ed59e1d1-39907e1214amr10767857a91.22.1788265660474; Tue, 01 Sep 2026 05:27:40 -0700 (PDT) Received: from MVIN00013.mvista.com ([103.250.136.191]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3286f552473sm42722969eec.0.2026.09.01.05.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 05:27:40 -0700 (PDT) From: Hitendra Prajapati To: openembedded-core@lists.openembedded.org Cc: Hitendra Prajapati Subject: [wrynose][PATCH 1/3] vim: Fix for CVE-2026-73076 Date: Tue, 1 Sep 2026 17:57:23 +0530 Message-ID: <20260901122727.85327-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 12:27:44 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/244821 Pick the patch from [1], also referenced in the NVD report [2]. [1] https://github.com/vim/vim/commit/581a2f3ac9c6f96a26324f6b2c8c11415fd0d452 [2] https://nvd.nist.gov/vuln/detail/CVE-2026-73076 Signed-off-by: Hitendra Prajapati --- .../vim/files/CVE-2026-73076.patch | 167 ++++++++++++++++++ meta/recipes-support/vim/vim.inc | 1 + 2 files changed, 168 insertions(+) create mode 100644 meta/recipes-support/vim/files/CVE-2026-73076.patch diff --git a/meta/recipes-support/vim/files/CVE-2026-73076.patch b/meta/recipes-support/vim/files/CVE-2026-73076.patch new file mode 100644 index 0000000000..5f5c92b168 --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2026-73076.patch @@ -0,0 +1,167 @@ +From 581a2f3ac9c6f96a26324f6b2c8c11415fd0d452 Mon Sep 17 00:00:00 2001 +From: Christian Brabandt +Date: Fri, 24 Jul 2026 17:43:51 +0200 +Subject: [PATCH] patch 9.2.0847: [security]: vimball: code execution via + .VimballRecord file + +Problem: [security]: vimball: code execution via .VimballRecord file + (tdjackey) +Solution: Forbid arbitrary commands, fix broken directory deletion code, + refactor code + +Github Security Advisory: +https://github.com/vim/vim/security/advisories/GHSA-r22p-fhw4-84p2 + +Signed-off-by: Christian Brabandt + +CVE: CVE-2026-73076 +Upstream-Status: Backport [https://github.com/vim/vim/commit/581a2f3ac9c6f96a26324f6b2c8c11415fd0d452] +Signed-off-by: Hitendra Prajapati +--- + runtime/autoload/vimball.vim | 50 ++++++++++++++++++++--------- + src/testdir/test_plugin_vimball.vim | 16 ++++++++- + 2 files changed, 50 insertions(+), 16 deletions(-) + +diff --git a/runtime/autoload/vimball.vim b/runtime/autoload/vimball.vim +index d661ded631..20ce55cd69 100644 +--- a/runtime/autoload/vimball.vim ++++ b/runtime/autoload/vimball.vim +@@ -20,9 +20,9 @@ if &cp || exists("g:loaded_vimball") + finish + endif + let g:loaded_vimball = "v37" +-if v:version < 704 ++if v:version < 900 + echohl WarningMsg +- echo "***warning*** this version of vimball needs vim 7.4" ++ echo "***warning*** this version of vimball needs vim 9.0" + echohl Normal + finish + endif +@@ -237,6 +237,12 @@ fun! vimball#Vimball(really,...) + bw! Vimball + call s:ChgDir(curdir) + return ++ elseif fname =~? '\%(^\|/\)\.VimballRecord$' ++ echomsg "(Vimball) Forbidding .VimballRecord filename, aborting..." ++ exe "tabn ".curtabnr ++ bw! Vimball ++ call s:ChgDir(curdir) ++ return + endif + + if a:really +@@ -264,7 +270,7 @@ fun! vimball#Vimball(really,...) + let fnamebuf = substitute(fnamebuf,'^.\{-}/\(.*\)$','\1','') + if !isdirectory(dirname) + call mkdir(dirname) +- call s:RecordInVar(home,"rmdir('".dirname."')") ++ call s:RecordDirInVar(dirname) + endif + endwhile + endif +@@ -295,7 +301,7 @@ fun! vimball#Vimball(really,...) + exe "silent w! ".fnameescape(fnamepath) + endif + echo "wrote ".fnameescape(fnamepath) +- call s:RecordInVar(home,"call delete('".fnamepath."')") ++ call s:RecordInVar(fnamepath) + endif + + " return to tab with vimball +@@ -394,10 +400,17 @@ fun! vimball#RmVimball(...) + endif + let s:VBRstring= substitute(exestring,'call delete(','','g') + let s:VBRstring= substitute(s:VBRstring,"[')]",'','g') +- sil! keepalt keepjumps exe exestring ++ let nr_files= 0 ++ for line in split(exestring, '|') ++ if line !~ '^call delete(''[^'']\{-}''\(,"d"\)\?)$' ++ echomsg "ignoring .VimballRecord entry: " line ++ else ++ sil! keepalt keepjumps exe line ++ let nr_files+= 1 ++ endif ++ endfor + sil! keepalt keepjumps d +- let exestring= strlen(substitute(exestring,'call delete(.\{-})|\=',"D","g")) +- echomsg "removed ".exestring." files" ++ echomsg "removed ".nr_files." files" + else + let s:VBRstring= '' + let curfile = substitute(curfile,'\.vmb','','') +@@ -539,13 +552,20 @@ fun! s:ChgDir(newdir) + endfun + + " --------------------------------------------------------------------- +-" s:RecordInVar: record a un-vimball command in the .VimballRecord file {{{2 +-fun! s:RecordInVar(home,cmd) ++" s:RecordInVar: record a un-vimball file deletion in the .VimballRecord file {{{2 ++fun! s:RecordInVar(file) + if !exists("s:recordfile") +- let s:recordfile= a:cmd +- else +- let s:recordfile= s:recordfile."|".a:cmd ++ let s:recordfile=[] ++ endif ++ call add(s:recordfile, $'call delete({string(a:file)})') ++endfun ++ ++" s:RecordDirInVar: record a un-vimball dir deletion in the .VimballRecord file {{{2 ++fun! s:RecordDirInVar(dir) ++ if !exists("s:recorddir") ++ let s:recorddir = [] + endif ++ call add(s:recorddir, $'call delete({string(a:dir)},"d")') + endfun + + " --------------------------------------------------------------------- +@@ -566,11 +586,11 @@ fun! s:RecordInFile(home) + setlocal ma + $ + if exists("s:recordfile") && exists("s:recorddir") +- let cmd= cmd.s:recordfile."|".s:recorddir ++ let cmd= cmd.join(s:recordfile, '|')."|".join(s:recorddir, '|') + elseif exists("s:recorddir") +- let cmd= cmd.s:recorddir ++ let cmd= cmd.join(s:recorddir, '|') + elseif exists("s:recordfile") +- let cmd= cmd.s:recordfile ++ let cmd= cmd.join(s:recordfile, '|') + else + return + endif +diff --git a/src/testdir/test_plugin_vimball.vim b/src/testdir/test_plugin_vimball.vim +index 2d5b4ba768..8025846694 100644 +--- a/src/testdir/test_plugin_vimball.vim ++++ b/src/testdir/test_plugin_vimball.vim +@@ -65,7 +65,7 @@ func Test_vimball_basic() + call assert_true(filereadable('.VimballRecord')) + let record = readfile('.VimballRecord') + call assert_equal(1, record->len()) +- call assert_match('^Xtest.vmb: rmdir.*call delete(', record[0]) ++ call assert_match('^Xtest.vmb: call delete(''.\{-}'')|call delete(''.\{-}'',"d")$', record[0]) + call s:teardown() + endfunc + +@@ -83,3 +83,17 @@ func Test_vimball_path_traversal() + call assert_false(filereadable('../XVimball/Xtest.txt')) + call s:teardown() + endfunc ++ ++func Test_vimball_VimballRecord_filenames() ++ call s:Mkvimball() ++ call delete('XVimball', 'rf') ++ sp Xtest.vmb ++ 4s#.*\ze\t#.VimballRecord# ++ so % ++ call feedkeys("\", "it") ++ ++ let mess = execute(':mess')->split('\n')[-1] ++ call assert_match('(Vimball) Forbidding .VimballRecord filename.* aborting\.\.\.', mess) ++ call assert_false(filereadable('.VimballRecord')) ++ call s:teardown() ++endfunc +-- +2.34.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index 9dda2c0be5..f0524ba730 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -42,6 +42,7 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https;tag=v${PV} file://CVE-2026-73072.patch \ file://CVE-2026-73073.patch \ file://CVE-2026-73074.patch \ + file://CVE-2026-73076.patch \ " PV .= ".0340" From patchwork Tue Sep 1 12:27:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hitendra Prajapati X-Patchwork-Id: 96961 X-Patchwork-Delegate: yoann.congal@smile.fr 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 88D4EC624D2 for ; Tue, 1 Sep 2026 12:27:44 +0000 (UTC) Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.6735.1788265663662888564 for ; Tue, 01 Sep 2026 05:27:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@mvista.com header.s=google header.b=HNQ2uMNW; spf=pass (domain: mvista.com, ip: 209.85.216.54, mailfrom: hprajapati@mvista.com) Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-395cf2535acso1135679a91.1 for ; Tue, 01 Sep 2026 05:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista.com; s=google; t=1788265663; x=1788870463; 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=Dek6GTYrf6YKqWeCVo/4ZrQlh46kehodLEK+t5sjvXM=; b=HNQ2uMNWxCCtzGuWIcoOXvqkXo2ZUeZ76dD7Q5MVAvO793m3wrfyJ3qTsZOxUBMCwr VB/hIDa88dvLhT+JQZ0yVE79Pl1y/NnORjihVCmJg8hUWKW+HgEOOCTx9gctkgQAj98+ FYGm+6Vtuf/zmbNxFAlCdd/RIn61s80S0gj+I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788265663; x=1788870463; 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=Dek6GTYrf6YKqWeCVo/4ZrQlh46kehodLEK+t5sjvXM=; b=gqK5SYQOFtJIPfSszdcesz47lVLauxYlU7Sb5SLl55Rj/sOKD3Fzso5fitAftBng34 nh8Jbk1gppeNmWEKx5A3n3nDam7dil2ROA1dllIL5bTRE0wgL4FCuQeWTV8gL724cpha jbFMqJZFKPVNLD70l6DarB9RH1qa3MwBDANjjXu2CSkPc3h01kzTgpl/AVgsnuCMO0LZ hJ72jKSrZqIUxU4pabqXvs05DqP0L3xSvQYbpEqQCObw9JWQ0h6mWey/2+sIZPX50Hr4 9cWd/qRv61x5PX9JG4kDsMzO8LhnWXMxuTlLKjRJ1nfCuXXPpu1nPmdTVNfgUdZHc5xW P0MQ== X-Gm-Message-State: AFuF++lJm0ia4NNvq9tBWyz4xlAK7IbpdfD3L0QsBNucKLigNtsYImao D/WbZkvYgi42fVt5DB5GfbzSo4TPzTF/+ZIzwL7Yl2IF4L9ssqLSQcIXJ5JZaFAOmDMmpeGnHrV iOe8GL4I= X-Gm-Gg: AYBFou2a3dY4xCS9kINk8OAkzKPpswGYi+B6QmoCjXPfS03m0PILpkf/TFvOTy+FxMh gEKOhaWC1dmrHLig/d8lNjbBemWMQRuVfWAd2HyMHjT2bA/r7iRA98lrWyhM6OeW7bsaonjQJ/+ nz0FntBWLzX4/2ILGeO+wdELjaa2wrM4tI8gsoZOL3z5EMNJGy7sj5DJJMwffjrWYFINNwrpV31 D/TAdIKOdW/c+zAyu0pg6qt3VnF6AixQJejHeqm5Y7YlPr4gb4zB68sNCoCm/3/PLS6GAtvMfqg 5rKekVn7VoZoJ2/UBYOOggK4oa7ggRVP04g4rhtKk0QErXZETa3ECWpvRNDwVXMH0koOeull3GT QMVcmnsLMEfMP0LhT+m4kvJQm66NFDtFviDrbIn0tmTBPtqvJE3oyXCROksVEnwKG+CIqcj2Hdx XPCYI95HwouUZfJX5TOHQ0skRoFq8dX0tcefX+z54yEZRqtRm1qHRlTEALpUIyqrP3jAsk/a+Ws Q== X-Received: by 2002:a17:90b:58c5:b0:398:9beb:a2be with SMTP id 98e67ed59e1d1-3990f94ee10mr5095335a91.32.1788265662885; Tue, 01 Sep 2026 05:27:42 -0700 (PDT) Received: from MVIN00013.mvista.com ([103.250.136.191]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3286f552473sm42722969eec.0.2026.09.01.05.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 05:27:42 -0700 (PDT) From: Hitendra Prajapati To: openembedded-core@lists.openembedded.org Cc: Hitendra Prajapati Subject: [wrynose][PATCH 2/3] vim: Fix for CVE-2026-73077 Date: Tue, 1 Sep 2026 17:57:24 +0530 Message-ID: <20260901122727.85327-2-hprajapati@mvista.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260901122727.85327-1-hprajapati@mvista.com> References: <20260901122727.85327-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 12:27:44 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/244822 Pick the patch from [1], also referenced in the NVD report [2]. [1] https://github.com/vim/vim/commit/c5a82fe013e73c98004ad7cd4f906b1ad1ed610e [2] https://nvd.nist.gov/vuln/detail/CVE-2026-73077 Signed-off-by: Hitendra Prajapati --- .../vim/files/CVE-2026-73077.patch | 105 ++++++++++++++++++ meta/recipes-support/vim/vim.inc | 1 + 2 files changed, 106 insertions(+) create mode 100644 meta/recipes-support/vim/files/CVE-2026-73077.patch diff --git a/meta/recipes-support/vim/files/CVE-2026-73077.patch b/meta/recipes-support/vim/files/CVE-2026-73077.patch new file mode 100644 index 0000000000..41a9fdb158 --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2026-73077.patch @@ -0,0 +1,105 @@ +From c5a82fe013e73c98004ad7cd4f906b1ad1ed610e Mon Sep 17 00:00:00 2001 +From: Yasuhiro Matsumoto +Date: Thu, 23 Jul 2026 19:13:15 +0000 +Subject: [PATCH] patch 9.2.0839: [security]: arbitrary code execution via + keyword lookup + +Problem: [security]: arbitrary code execution via keyword lookup in + sh.vim, zsh.vim and ps1.vim filetype plugin + (manus-use) +Solution: For powershell, quote the commands using single quotes, for + sh/zsh pass the argument as a separate list item to term_start()/system() + (Yasuhiro Matsumoto). + +Github Security Advisory: +https://github.com/vim/vim/security/advisories/GHSA-r5v6-q6j8-8qw2 + +Signed-off-by: Yasuhiro Matsumoto +Signed-off-by: Christian Brabandt + +CVE: CVE-2026-73077 +Upstream-Status: Backport [https://github.com/vim/vim/commit/c5a82fe013e73c98004ad7cd4f906b1ad1ed610e] +Signed-off-by: Hitendra Prajapati +--- + runtime/ftplugin/ps1.vim | 5 +++-- + runtime/ftplugin/sh.vim | 5 +++-- + runtime/ftplugin/zsh.vim | 8 ++++---- + 3 files changed, 10 insertions(+), 8 deletions(-) + +diff --git a/runtime/ftplugin/ps1.vim b/runtime/ftplugin/ps1.vim +index f1fe78df4c..9ff764a282 100644 +--- a/runtime/ftplugin/ps1.vim ++++ b/runtime/ftplugin/ps1.vim +@@ -6,6 +6,7 @@ + " 2024 May 23 by Riley Bruins ('commentstring') + " 2024 Sep 19 by Konfekt (simplify keywordprg #15696) + " 2025 Jul 22 by phanium (use :hor term #17822) ++" 2026 Jul 10 by Vim Project (quote K argument, prevent command injection) + + " Only do this when not done yet for this buffer + if exists("b:did_ftplugin") | finish | endif +@@ -52,9 +53,9 @@ endif + + if exists('s:pwsh_cmd') + if exists(':terminal') == 2 +- command! -buffer -nargs=1 GetHelp silent exe 'hor term ' . s:pwsh_cmd . ' -NoLogo -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -Command Get-Help -Full ""' . (executable('less') ? ' | less' : '') ++ command! -buffer -nargs=1 GetHelp call term_start([s:pwsh_cmd, '-NoLogo', '-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'RemoteSigned', '-Command', "Get-Help -Full '" . substitute(, "'", "''", 'g') . "'" . (executable('less') ? ' | less' : '')]) + else +- command! -buffer -nargs=1 GetHelp echo system(s:pwsh_cmd . ' -NoLogo -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -Command Get-Help -Full ') ++ command! -buffer -nargs=1 GetHelp echo system([s:pwsh_cmd, '-NoLogo', '-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'RemoteSigned', '-Command', "Get-Help -Full '" . substitute(, "'", "''", 'g') . "'"]) + endif + setlocal keywordprg=:GetHelp + let b:undo_ftplugin ..= " | setl kp< | sil! delc -buffer GetHelp" +diff --git a/runtime/ftplugin/sh.vim b/runtime/ftplugin/sh.vim +index 18cd219cdc..45e6f44fcf 100644 +--- a/runtime/ftplugin/sh.vim ++++ b/runtime/ftplugin/sh.vim +@@ -8,6 +8,7 @@ + " 2024 Dec 29 by Vim Project (improve setting shellcheck compiler) + " 2025 Mar 09 by Vim Project (set b:match_skip) + " 2025 Jul 22 by phanium (use :hor term #17822) ++" 2026 Jul 10 by Vim Project (pass K argument as a list, prevent shell injection) + + if exists("b:did_ftplugin") + finish +@@ -54,9 +55,9 @@ let s:is_kornshell = get(b:, "is_kornshell", get(g:, "is_kornshell", 0)) + + if s:is_bash + if exists(':terminal') == 2 +- command! -buffer -nargs=1 ShKeywordPrg silent exe ':hor term bash -c "help "" 2>/dev/null || man """' ++ command! -buffer -nargs=1 ShKeywordPrg call term_start(['bash', '-c', 'help "$1" 2>/dev/null || man "$1"', '--', ]) + else +- command! -buffer -nargs=1 ShKeywordPrg echo system('bash -c "help " 2>/dev/null || MANPAGER= man ""') ++ command! -buffer -nargs=1 ShKeywordPrg echo system(['bash', '-c', 'help "$1" 2>/dev/null || MANPAGER= man "$1"', '--', ]) + endif + setlocal keywordprg=:ShKeywordPrg + let b:undo_ftplugin ..= " | setl kp< | sil! delc -buffer ShKeywordPrg" +diff --git a/runtime/ftplugin/zsh.vim b/runtime/ftplugin/zsh.vim +index 850bef055c..8163585939 100644 +--- a/runtime/ftplugin/zsh.vim ++++ b/runtime/ftplugin/zsh.vim +@@ -2,7 +2,7 @@ + " Language: Zsh shell script + " Maintainer: Christian Brabandt + " Previous Maintainer: Nikolai Weibull +-" Latest Revision: 2025 Jul 23 ++" Latest Revision: 2026 Jul 23 + " License: Vim (see :h license) + " Repository: https://github.com/chrisbra/vim-zsh + +@@ -25,9 +25,9 @@ endif + + if executable('zsh') && &shell !~# '/\%(nologin\|false\)$' + if exists(':terminal') == 2 +- command! -buffer -nargs=1 ZshKeywordPrg silent exe ':hor :term zsh -c "autoload -Uz run-help; run-help "' +- else +- command! -buffer -nargs=1 ZshKeywordPrg echo system('MANPAGER= zsh -c "autoload -Uz run-help; run-help 2>/dev/null"') ++ command! -buffer -nargs=1 ZshKeywordPrg call term_start(['zsh', '-c', 'autoload -Uz run-help; run-help "$1"', '--', ]) ++ elseif has("patch-9.2.0250") ++ command! -buffer -nargs=1 ZshKeywordPrg echo system(['zsh', '-c', 'autoload -Uz run-help; MANPAGER= run-help "$1" 2>/dev/null', '--', ]) + endif + setlocal keywordprg=:ZshKeywordPrg + let b:undo_ftplugin .= '| setl keywordprg< | sil! delc -buffer ZshKeywordPrg' +-- +2.34.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index f0524ba730..c132444040 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -43,6 +43,7 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https;tag=v${PV} file://CVE-2026-73073.patch \ file://CVE-2026-73074.patch \ file://CVE-2026-73076.patch \ + file://CVE-2026-73077.patch \ " PV .= ".0340" From patchwork Tue Sep 1 12:27:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hitendra Prajapati X-Patchwork-Id: 96962 X-Patchwork-Delegate: yoann.congal@smile.fr 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 678D5C61DD3 for ; Tue, 1 Sep 2026 12:27:54 +0000 (UTC) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.6853.1788265665939921123 for ; Tue, 01 Sep 2026 05:27:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@mvista.com header.s=google header.b=i1mtbsKG; spf=pass (domain: mvista.com, ip: 209.85.214.180, mailfrom: hprajapati@mvista.com) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2d71d1cc8b2so41879965ad.1 for ; Tue, 01 Sep 2026 05:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista.com; s=google; t=1788265665; x=1788870465; darn=lists.openembedded.org; h=content-transfer-encoding:content-type: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=tHTD60s4wVGXSclRvGsL8l3SIRNkzb1bXrkJNG+7dzY=; b=i1mtbsKGH9MCCTfnZhSuOjBp9X/R24G0DfVFFcc42xWJjTdlkeJCBjLvyMl7Ji7vhB xBGJzWEvg3tFvJMeO721bW/qglm4HSudY4E/3kYNBCdKNGAOKZxSEMn1gIMfesrx71oU skqgaLIeLkVhbB82S7MybTRweQyo2wTq6SMWE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788265665; x=1788870465; h=content-transfer-encoding:content-type: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=tHTD60s4wVGXSclRvGsL8l3SIRNkzb1bXrkJNG+7dzY=; b=V1GNYaUoEtj7CArcLESagqhFOajcyhLnOB2DDasA5z7NcDmAkqP6MZDVZyx2xHmQFw FNaHhIqS5d+n44gBLupMY4KU+d1tqLyizLKjPFoc+SJ7YTHH//xp0D8JDMISC61KZoaU DiBB9JXiTvw35uu0SsBTEaTRwWetZL40QhqNOakouB/X5upd2DzMXV6wojYDo+ppK018 dr1q3uy2JfGGjtjiglQNysjHD4kpNk/0/4VWXCEWiaqvjq4pUm7E+Tr3/5mSyoo0nZvm EgiTD9WlARrM6tnRW+jZ5LW/dPV/NrivHfzKdSiJrTgAchJNa8hGqtlTPFgYXnYZN0g2 WmnA== X-Gm-Message-State: AFuF++nsuHY5X9w9K5wiMtZXEdvjBw+NymVl5CULl2WtvmeJlLo+lJYx MrgQ/SIMkbvwIUIV6lIYo00KJGO+u7zJawI63jfTgqyw0UPeCzcVcxTkWS0vmYpaRHBaicVdSsR dKE0R36M= X-Gm-Gg: AYBFou2EaZ5SwimN9s8iSZ2rcjF2yU+u/IXD24vNQgq6rmejtf1tTZdsYLkQnjmAOjs EvaA5qs2lMsb1QCnVFwEQMlu5XKoo6Whf5cySoMZXqIp+k/+plHmU5uRyHxpyBIDiUDP++09s1z KtynRNZDwpbFeCtbzuGZmAGu7iUkA3bM13KM3jZnBQ56w3v6WY/jI8rGtAzk3BEUCPMZe/TMbR3 kdSnocRTLqS+Bce9eEApOTQeeSb0WcWngovQnJmNN/BP1T+CyMrgLC3wV+8+QFyN8RmJGBi62Zo zmLkw4mqrVEYLIPcKKOij9aEKK95ojAIyw2RWd6vaUXSt+PFoSuHX8apr28tCboGEQA7nRRfYUW f2ZNVnC72wvWSBUAkHfVz16qHJQyZ5sGV1Oj06JJEzutC5jQOgxZwRCF9iZQhQiLA9W+WULt6vn 2Kq7XRooKj1xiJ99gaPayGESmUDEaNIzhkTI7Dlfm4jY34uPZExcTzzG48BWkwr3lLDb/pXBsDq g== X-Received: by 2002:a17:90a:fc45:b0:37f:c22a:c188 with SMTP id 98e67ed59e1d1-396d0ea5359mr52388354a91.4.1788265665218; Tue, 01 Sep 2026 05:27:45 -0700 (PDT) Received: from MVIN00013.mvista.com ([103.250.136.191]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3286f552473sm42722969eec.0.2026.09.01.05.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 05:27:44 -0700 (PDT) From: Hitendra Prajapati To: openembedded-core@lists.openembedded.org Cc: Hitendra Prajapati Subject: [wrynose][PATCH 3/3] vim: Fix for CVE-2026-73078 Date: Tue, 1 Sep 2026 17:57:25 +0530 Message-ID: <20260901122727.85327-3-hprajapati@mvista.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260901122727.85327-1-hprajapati@mvista.com> References: <20260901122727.85327-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 12:27:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/244823 Pick the patch from [1], also referenced in the NVD report [2]. [1] https://github.com/vim/vim/commit/29c6fd090d4520592f8be7d9ec81190edf25ef69 [2] https://nvd.nist.gov/vuln/detail/CVE-2026-73078 Signed-off-by: Hitendra Prajapati --- .../vim/files/CVE-2026-73078.patch | 94 +++++++++++++++++++ meta/recipes-support/vim/vim.inc | 1 + 2 files changed, 95 insertions(+) create mode 100644 meta/recipes-support/vim/files/CVE-2026-73078.patch diff --git a/meta/recipes-support/vim/files/CVE-2026-73078.patch b/meta/recipes-support/vim/files/CVE-2026-73078.patch new file mode 100644 index 0000000000..62d156f568 --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2026-73078.patch @@ -0,0 +1,94 @@ +From 29c6fd090d4520592f8be7d9ec81190edf25ef69 Mon Sep 17 00:00:00 2001 +From: Yasuhiro Matsumoto +Date: Mon, 6 Jul 2026 13:54:03 +0900 +Subject: [PATCH] patch 9.2.0840: [security]: code injection in netrw via + bookmarks + +Problem: [security]: code injection in netrw via bookmarks and history + (David Carliez) +Solution: Escape the '|' explicitly (Yasuhiro Matsumoto) + +The bookmark and history menu builders interpolate paths into :execute'd +:menu commands using g:netrw_menu_escape, which did not escape the Ex +command separator '|'. A crafted path could break out of the :menu command +and run arbitrary Ex/shell commands when the menu was built or triggered. + +Add '|' to g:netrw_menu_escape for the menu names, escape the :e right-hand +side with fnameescape(), and quote the netrw#MakeTgt() argument with +string() instead of raw single-quote interpolation. + +Github Security Advisory: +https://github.com/vim/vim/security/advisories/GHSA-rcr7-f3wr-22r2 + +Signed-off-by: Yasuhiro Matsumoto +Signed-off-by: Christian Brabandt + +CVE: CVE-2026-73078 +Upstream-Status: Backport [https://github.com/vim/vim/commit/29c6fd090d4520592f8be7d9ec81190edf25ef69] +Signed-off-by: Hitendra Prajapati +--- + runtime/pack/dist/opt/netrw/autoload/netrw.vim | 16 +++++++++------- + 1 file changed, 9 insertions(+), 7 deletions(-) + +diff --git a/runtime/pack/dist/opt/netrw/autoload/netrw.vim b/runtime/pack/dist/opt/netrw/autoload/netrw.vim +index d7eca30e45..c240bbd13f 100644 +--- a/runtime/pack/dist/opt/netrw/autoload/netrw.vim ++++ b/runtime/pack/dist/opt/netrw/autoload/netrw.vim +@@ -398,7 +398,7 @@ if has("win32") + else + call s:NetrwInit("g:netrw_glob_escape",'*[]?`{~$\') + endif +-call s:NetrwInit("g:netrw_menu_escape",'.&? \') ++call s:NetrwInit("g:netrw_menu_escape",'.&? \|') + call s:NetrwInit("s:netrw_map_escape","<|\n\r\\\\"") + if has("gui_running") && (&enc == 'utf-8' || &enc == 'utf-16' || &enc == 'ucs-4') + let s:treedepthstring= "│ " +@@ -3752,13 +3752,14 @@ function s:NetrwBookmarkMenu() + if exists("g:netrw_bookmarklist") && g:netrw_bookmarklist != [] && g:netrw_dirhistmax > 0 + let cnt= 1 + for bmd in g:netrw_bookmarklist +- let bmd= escape(bmd,g:netrw_menu_escape) ++ let ebmd= escape(bmd,g:netrw_menu_escape) ++ let fbmd= escape(fnameescape(bmd),'|') + + " show bookmarks for goto menu +- exe 'sil! menu '.g:NetrwMenuPriority.".2.".cnt." ".g:NetrwTopLvlMenu.'Bookmarks.'.bmd.' :e '.bmd."\" ++ exe 'sil! menu '.g:NetrwMenuPriority.".2.".cnt." ".g:NetrwTopLvlMenu.'Bookmarks.'.ebmd.' :e '.fbmd."\" + + " show bookmarks for deletion menu +- exe 'sil! menu '.g:NetrwMenuPriority.".8.2.".cnt." ".g:NetrwTopLvlMenu.'Bookmarks\ and\ History.Bookmark\ Delete.'.bmd.' '.cnt."mB" ++ exe 'sil! menu '.g:NetrwMenuPriority.".8.2.".cnt." ".g:NetrwTopLvlMenu.'Bookmarks\ and\ History.Bookmark\ Delete.'.ebmd.' '.cnt."mB" + let cnt= cnt + 1 + endfor + +@@ -3774,7 +3775,8 @@ function s:NetrwBookmarkMenu() + let priority = g:netrw_dirhistcnt + histcnt + if exists("g:netrw_dirhist_{cnt}") + let histdir= escape(g:netrw_dirhist_{cnt},g:netrw_menu_escape) +- exe 'sil! menu '.g:NetrwMenuPriority.".3.".priority." ".g:NetrwTopLvlMenu.'History.'.histdir.' :e '.histdir."\" ++ let ehistdir= escape(fnameescape(g:netrw_dirhist_{cnt}),'|') ++ exe 'sil! menu '.g:NetrwMenuPriority.".3.".priority." ".g:NetrwTopLvlMenu.'History.'.histdir.' :e '.ehistdir."\" + endif + let first = 0 + let cnt = ( cnt - 1 ) % g:netrw_dirhistmax +@@ -7119,7 +7121,7 @@ function s:NetrwTgtMenu() + let tgtdict[bmd]= cnt + let ebmd= escape(bmd,g:netrw_menu_escape) + " show bookmarks for goto menu +- exe 'sil! menu '.g:NetrwMenuPriority.".19.1.".cnt." ".g:NetrwTopLvlMenu.'Targets.'.ebmd." :call netrw#MakeTgt('".bmd."')\" ++ exe 'sil! menu '.g:NetrwMenuPriority.".19.1.".cnt." ".g:NetrwTopLvlMenu.'Targets.'.ebmd." :call netrw#MakeTgt(".escape(string(bmd),'|').")\" + let cnt= cnt + 1 + endfor + endif +@@ -7137,7 +7139,7 @@ function s:NetrwTgtMenu() + endif + let tgtdict[histentry] = histcnt + let ehistentry = escape(histentry,g:netrw_menu_escape) +- exe 'sil! menu '.g:NetrwMenuPriority.".19.2.".priority." ".g:NetrwTopLvlMenu.'Targets.'.ehistentry." :call netrw#MakeTgt('".histentry."')\" ++ exe 'sil! menu '.g:NetrwMenuPriority.".19.2.".priority." ".g:NetrwTopLvlMenu.'Targets.'.ehistentry." :call netrw#MakeTgt(".escape(string(histentry),'|').")\" + endif + let histcnt = histcnt + 1 + endwhile +-- +2.34.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index c132444040..77f681410a 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -44,6 +44,7 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https;tag=v${PV} file://CVE-2026-73074.patch \ file://CVE-2026-73076.patch \ file://CVE-2026-73077.patch \ + file://CVE-2026-73078.patch \ " PV .= ".0340"