From patchwork Tue Sep 1 07:44:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hitendra Prajapati X-Patchwork-Id: 96938 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 0BB72C61DD3 for ; Tue, 1 Sep 2026 07:45:05 +0000 (UTC) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2548.1788248698705204451 for ; Tue, 01 Sep 2026 00:44:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@mvista.com header.s=google header.b=MiIhF69I; spf=pass (domain: mvista.com, ip: 209.85.216.53, mailfrom: hprajapati@mvista.com) Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-398b3d66515so3243862a91.0 for ; Tue, 01 Sep 2026 00:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista.com; s=google; t=1788248698; x=1788853498; 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=Pq8bO0PzDc2RkRwb4HUlSRQIgs6hFvJSxBcGCrIbpc8=; b=MiIhF69I3Fm2JQpvPOyDpLPOezTaKLBQPBKHZYyth+LSk0sUV44J/64uMe+lO0isY4 /DxpK7GhYc8aQc6BHnLzQfXw4WsTIb+Ik0C1gLkigIaG/CQuoUhaIc5WN4YRDdypTmJ6 f+/ykdzQ2/2avLJ3QE+qzbm1knGCPHoR9Z+ag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788248698; x=1788853498; 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=Pq8bO0PzDc2RkRwb4HUlSRQIgs6hFvJSxBcGCrIbpc8=; b=hF4wwc8t17upqD+yWWzfd9jrN8tFJC4vtl6K2yvLrQs7R3syM1mWFYhAhNe+wwc25e XvPiXoAUNjzf6xsjA8RqvM0Sib98h70kD2Z74Z2x6AcKZJ9x3luEbeVf3kWihVrIXyhv 6pKKuGaBWmVuN7U9BLCiIeky2TUIwe3RdjXGVnga8YOwGVEi+dvSgoNu/L9+uOAUFjf2 4M4E4x360MbpjOZOgoFvD8IT2/oAs39E8JBVtBbXR0O6qlRgvlFiDIpfiAX5RrXkeCub Gyyw7VCLEnvl6nDwCZwlPICTmCMZfS+xV8p0q4INYgPes9u2C6mZNaQwaIrCLXOEN3Z7 a/pQ== X-Gm-Message-State: AFuF++m4qLnRxa2Cn3r6y89KRM7ZVLnlyeIbgF+wKnAwN+Y+A5fEgEfp BwOadqtnMRG466ycUQRBlQFrHupo96yaiDKzZZaKeWEtGVxHVzDh26Zs3A/GblYZ+MIVL9h7Gig GEA1M X-Gm-Gg: AYBFou1VXTc6UwLMBR1XkNldub6yCOUBFrQloaVH9xbH1EGRTDDt/8ZTnik38hGXEYy rXNEHW2dOTNe0XppYyaqooNbmfEToCXmTIGvjdzB4n2TttbM7nFzv479+VTzn7pr9OjTHPe1oNG AavUNEMwYJcHlZR1Nst0MbWqvF2tmTcQUE1ol5//jyGsVrrYTeIYBggRfY2zQklBq6QO3WJ7fjc pZH8jRGkvVPqFeSrG4Ul2Ng0mcto0ObBJlO8coiDtRJsOLPNx/S7tM7A9QkkcDSqePhs7ry7VFY yN3f9KjfeEucwTmn8bH2mcZozLBCF0oloGQJec+CgMPjdp3Swfr8b0fz/6DcenCmQ5oYAUFoOG2 hCOxcpzjRnZ2ancsIhHDiujhUDVbOL6XydU4GaYhR49aKvto1OGpglDlpqc62za4KW6T1TryW3Q lbOVfzNTC5+QN+DNRASh8kL0CBTSlCatiAwUQyWXZ/vv3nDF9jB9bSy6JVwz6QHF1YtpCETFecr w== X-Received: by 2002:a17:90b:538c:b0:398:d6e6:4671 with SMTP id 98e67ed59e1d1-398d6e68870mr23154859a91.25.1788248698009; Tue, 01 Sep 2026 00:44:58 -0700 (PDT) Received: from MVIN00013.mvista.com ([103.250.136.191]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-142e0de4de3sm47564414c88.12.2026.09.01.00.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 00:44:57 -0700 (PDT) From: Hitendra Prajapati To: openembedded-core@lists.openembedded.org Cc: Hitendra Prajapati Subject: [scarthgap][PATCH 1/3] vim: Fix for CVE-2026-73072 Date: Tue, 1 Sep 2026 13:14:42 +0530 Message-ID: <20260901074444.59811-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:45:05 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/244802 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 577656c6c1..6097fb72a2 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -51,6 +51,7 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \ file://CVE-2026-59856.patch \ file://CVE-2026-59857.patch \ file://CVE-2026-59858.patch \ + file://CVE-2026-73072.patch \ " PV .= ".1683" From patchwork Tue Sep 1 07:44:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hitendra Prajapati X-Patchwork-Id: 96939 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 E1578C61DD6 for ; Tue, 1 Sep 2026 07:45:24 +0000 (UTC) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2555.1788248720397482565 for ; Tue, 01 Sep 2026 00:45:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@mvista.com header.s=google header.b=kMkmkVED; spf=pass (domain: mvista.com, ip: 209.85.216.52, mailfrom: hprajapati@mvista.com) Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-396750cfee6so3574097a91.2 for ; Tue, 01 Sep 2026 00:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista.com; s=google; t=1788248720; x=1788853520; 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=CWGfx+UUNtGpNlLy7RVwYblDdrzeNj9UUGuetIAs6NU=; b=kMkmkVED2r5+3Cb/kkROLm+DtRpEZmrpvF6l/LF2/fF4k/HQm1Js+St1B8OXne37U1 hSMu/SVoLhI5HMTEHGGSfhBOEx2X2vLveMSIYB+PiXBHa1G2nRWAoxw03wpemPUubSrV wrh9RmvSGNxIf0kayy0Sh1uzf4Ck4hWPfbXds= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788248720; x=1788853520; 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=CWGfx+UUNtGpNlLy7RVwYblDdrzeNj9UUGuetIAs6NU=; b=kIb8ElXdFVY1Vfnxjd2nGAY3b+x1CoBMAUy+O3YjmeJam2MSaUthDofJszvOqqTep8 /ssWwLX8WT8Qs3FV8ta0396OpTeSxS9bFIkEYqDXjU1/TP+f6frxm3GrcIvcc/HsJaiT V1p3LDnShnETWC/ZziIZCb399Qrx21l42tbMjA13jExpKG9hkJ2SMBPKg5vG9p7lpQgO uypPk3u5cusWneMNySFBaAoVl4pMGI6YNyM8ygn1LbaFv1tjR8hWkfzfgUyIUB/3K078 CtGIVDu5MKGOvRWx2aTxrbQBMa/b0JqChtG8TigF5u8nBOZcQjBVTldXUvyj+coK0FH3 ft+g== X-Gm-Message-State: AFuF++kyfg+hBCylpgEqto1ljgK6LagM7xMeJIUMuzbrLD/fH90xk+46 TvF40YlHLN02S5SFHxkfFM9ekJy0yC5IyenT1rz4jefepvNgnHI/mSlu4oTX6/NwXLAQIcm2ulB ZubUXyEQ= X-Gm-Gg: AYBFou37DBjD6j3p7LUJV80+KbWJ1mcSB9gD4O9h51iBNzrObUutTHJc7ywOGInqBlI G9K29Knvi6grzq6NMBJMOFHLb00Vx5RlOmAUwRA5p2bpiJ7T/Jwj0rWcYKLT8UAvhGhJQFZYKEO XOB94c+Jc5iRAl0NUaXUbM/ivFrDaskDoZa4dqSdZ2ugB5tCz1zhvwHVZhkn/RlG1Zt/SOii6S5 7gHjvNp3wQdd2Bb8kkWe3IAgN5t5Hri3dRTt3BetNGOMDpb5+KIMYHnB9VLZwBuiH5BIlxgJsj4 pf1phqUOHsb4qpf5uIf3HNRQnChHC1MRbsg2Xpb+J5wRuvhqpL2YaFxPDdQbckDxH2+/vlbKUwA /e/ajefh5gdfn6ipKcdNP6/LpV+/957wWN7ZQEA5FEWtfE800jBJzJjQJtcRcrqswuMNHpeeDug QKKQEWpad5irKLiDT5KhGXOaIR32d4qgZWUUl0qNK4uqrwg5Hw1VYa6yfx34ZzVxQjVnTzsRuXS Q== X-Received: by 2002:a17:90b:3c83:b0:398:9bd5:490b with SMTP id 98e67ed59e1d1-3989bd54c84mr35645390a91.18.1788248719735; Tue, 01 Sep 2026 00:45:19 -0700 (PDT) Received: from MVIN00013.mvista.com ([103.250.136.191]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-142e0de4de3sm47564414c88.12.2026.09.01.00.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 00:45:19 -0700 (PDT) From: Hitendra Prajapati To: openembedded-core@lists.openembedded.org Cc: Hitendra Prajapati Subject: [scarthgap][PATCH 2/3] vim: Fix for CVE-2026-73073 Date: Tue, 1 Sep 2026 13:14:43 +0530 Message-ID: <20260901074444.59811-2-hprajapati@mvista.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260901074444.59811-1-hprajapati@mvista.com> References: <20260901074444.59811-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:45:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/244803 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 | 89 +++++++++++++++++++ meta/recipes-support/vim/vim.inc | 1 + 2 files changed, 90 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..932580d3a1 --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2026-73073.patch @@ -0,0 +1,89 @@ +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 ++++++++++++++++++++++++++ + 2 files changed, 30 insertions(+), 1 deletion(-) + +diff --git a/runtime/autoload/ccomplete.vim b/runtime/autoload/ccomplete.vim +index 248d6f2e60..5a48581dcf 100644 +--- a/runtime/autoload/ccomplete.vim ++++ b/runtime/autoload/ccomplete.vim +@@ -592,8 +592,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() +-- +2.50.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index 6097fb72a2..c000f5b3ab 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -52,6 +52,7 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \ file://CVE-2026-59857.patch \ file://CVE-2026-59858.patch \ file://CVE-2026-73072.patch \ + file://CVE-2026-73073.patch \ " PV .= ".1683" From patchwork Tue Sep 1 07:44:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hitendra Prajapati X-Patchwork-Id: 96940 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 E4C93C61DD3 for ; Tue, 1 Sep 2026 07:45:34 +0000 (UTC) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2558.1788248726972160284 for ; Tue, 01 Sep 2026 00:45:27 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@mvista.com header.s=google header.b=fq5LiR84; spf=pass (domain: mvista.com, ip: 209.85.216.48, mailfrom: hprajapati@mvista.com) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-398e9698a70so714263a91.0 for ; Tue, 01 Sep 2026 00:45:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista.com; s=google; t=1788248726; x=1788853526; 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=wgs7m4vC0GjPrMexqfZPrByswlfHGa+nqTNH780ZgSc=; b=fq5LiR84RUpXYaUP4JBqSGfqlOwppyWhBcJSYL4YkUI8ZF/r6zbP9FKUcDo5uQBW39 sM6nVCwRYPYMxRU1mtdVTMzRV3jcJsMRIP+tmchYnKzLLC/rq6orc1BMHRRXxUujCAKa KvFRgkxUAFAZckxvYnS4dcPwn6SX4U16NEQQw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788248726; x=1788853526; 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=wgs7m4vC0GjPrMexqfZPrByswlfHGa+nqTNH780ZgSc=; b=hEDW82FuJb7DfzeVbJQOOkWlOwlC/8g/wa5Wkg9YAOi1zD3gRIaDRe+GTShBJKpxxr jJPuA8Wm0H3KXdSDn/hnWhDN3hEEe9zH/BdtX+IJLJfcQ3z26r6NXctAUZCe6Mdp4bWm lI8tfYUd0wLGNYlikZBPLnMynkEH0rAOK2yhXkkBJmemkB0Ax7Lard6hVEaBv/ML6CAj UEovu1vF0hpK+HiVkm2M/tWVnPqTEkL9nuENCeHdbYbtyXBxY3exRJUvousdqcIKVpHZ 7nPi4is94CC24pw5IlDxXNa6m0wo2wszGXVN9HMM/h+5MezXpn3JTRxTVs6VzHf1Rq9k sc+A== X-Gm-Message-State: AFuF++ks8XF61+oQyJnljDbf+l1HtVCqOcg7RJMQ0OZJmQMjSCHR/UOA eSIlt3xtUjDQmGWgndYC1ZLsRNxz4AUUQ1wlDQPQfn/zK7bFLUdaz2lbz2x+T5Bb9YzbJuxnAuG c+ZXNoN8= X-Gm-Gg: AYBFou3BEkigoqyFnYpFUSA6ct7jp7r6Fcvod3dRg6XDlqJ1WCxseFhYgFRJUH6GB0e oFI9YV2iKcaM/+XBUYw3Ea42Rz228jBGU+xAz55C/ldljNEIpyL9/y2VFK01LTCxvUOSE6xrAKO J1UiUvzt/cNT0s4QSS5pnwueYT2eU6gULNFYl1BtyPSXcH3T6P/B9tycOi7M9T4RQqu1FLLmX9m cYS3wdmtygMWUktAyWJei9jN7Y+rmrreS4Yr7qCiv4x9PVFl870gwUX/VNWu/vNLnpK/bOcytKr t0a2KOSOhMEDar67Q+b4+p6ab1lwdz6m3hEboNXQKVOPUUKqk38PIfSXp6S+MVfyLntWebwVWfH f0EMVHQncsD9qBcR2J9gYSuEXO/D9445XOwZT/pYo/rULGewgA23I02NOncNno7JNRAGKsZgIad ikOcKV3NVLMTLzivYYGyrgBfdnO68nVnsqGpqkHHrXdESJUxRrYm/z0EbXk0exiJwxu5AvP+a0A w== X-Received: by 2002:a17:90a:b8f:b0:398:d292:e6d5 with SMTP id 98e67ed59e1d1-398d292ea0emr14127345a91.24.1788248726188; Tue, 01 Sep 2026 00:45:26 -0700 (PDT) Received: from MVIN00013.mvista.com ([103.250.136.191]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-142e0de4de3sm47564414c88.12.2026.09.01.00.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2026 00:45:25 -0700 (PDT) From: Hitendra Prajapati To: openembedded-core@lists.openembedded.org Cc: Hitendra Prajapati Subject: [scarthgap][PATCH 3/3] vim: Fix for CVE-2026-73074 Date: Tue, 1 Sep 2026 13:14:44 +0530 Message-ID: <20260901074444.59811-3-hprajapati@mvista.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260901074444.59811-1-hprajapati@mvista.com> References: <20260901074444.59811-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:45:34 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/244804 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 | 101 ++++++++++++++++++ meta/recipes-support/vim/vim.inc | 1 + 2 files changed, 102 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..3402b72bd2 --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2026-73074.patch @@ -0,0 +1,101 @@ +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 +++++++ + 4 files changed, 32 insertions(+) + +diff --git a/src/errors.h b/src/errors.h +index 01ed16a035..5354e85f25 100644 +--- a/src/errors.h ++++ b/src/errors.h +@@ -3795,3 +3795,7 @@ EXTERN char e_socket_server_failed_connecting[] + EXTERN char e_socket_server_unavailable[] + INIT(= N_("E1567: Cannot start socket server, socket path is unavailable")); + #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 be79cf0dab..100344e270 100644 +--- a/src/po/vim.pot ++++ b/src/po/vim.pot +@@ -8838,6 +8838,9 @@ msgstr "" + msgid "E1567: Cannot start socket server, socket path is unavailable" + 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 b5c9f63f65..5a69ca75e7 100644 +--- a/src/testdir/test_textprop.vim ++++ b/src/testdir/test_textprop.vim +@@ -4781,4 +4781,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 a06605d3dd..1f06615dbc 100644 +--- a/src/textprop.c ++++ b/src/textprop.c +@@ -240,6 +240,13 @@ prop_add_one( + proplen = get_text_props(buf, lnum, &props, TRUE); + textlen = buf->b_ml.ml_line_len - proplen * sizeof(textprop_T); + ++ // 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 +-- +2.50.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index c000f5b3ab..82697e68ab 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -53,6 +53,7 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \ file://CVE-2026-59858.patch \ file://CVE-2026-73072.patch \ file://CVE-2026-73073.patch \ + file://CVE-2026-73074.patch \ " PV .= ".1683"