From patchwork Fri May 8 06:25:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 87667 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 4D66CCD3436 for ; Fri, 8 May 2026 06:26:46 +0000 (UTC) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7700.1778221604638223101 for ; Thu, 07 May 2026 23:26:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=DWYKfUE/; spf=pass (domain: smile.fr, ip: 209.85.128.49, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-488b0046078so13419615e9.1 for ; Thu, 07 May 2026 23:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1778221603; x=1778826403; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=03H8+6WDHV4+n5IAiXkeuDgCAcZBbTD2JDMwYARiYyI=; b=DWYKfUE/Xq3uqc9DmXmJ0dMNtsObSH1odJQ2OqIGHUtnVnD2Ka01Gbpo5sdE90qGWQ rlEUJHKoExYhDXGfneaPKsoWtKVJasMXYVB6g7iv51w0ttT3XvUbdYwbijmO1wp2zGkN 4BAx4Qyxl4rd5RKO1nWH4zUkGpfr+JJRTHMHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778221603; x=1778826403; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=03H8+6WDHV4+n5IAiXkeuDgCAcZBbTD2JDMwYARiYyI=; b=mHyp0H3CEtUCX9+PGQpKd/TlpcpWMpEwVbmjKgQ4L4QNmtxL88qeajgVskDZKDzT5n b+t5traY2PmbJUj4bj63hwkP3y/irZmUc+rT5S89qedPMe3UKVuBlUI+jMkj0Kuod/vo zeWHgwzRLuO/OiuG9YuwmW+CiJS37AB2wSY08bmmXgkz6q/BBJhCbk6B1B/cPUsUqoAi wIEQfLl0fGWECFY+3Ry5RBsDupICPUkMXzGXi5747pGYrF4wpMhIr2vNYMLfDAsWcFzo gLlT5FRE7laV1UocIKO52sHVOTmiLNVu/mMwACuX14hhy9SPn/vR6dQ1Z2/xdAlgNQgP wBiw== X-Gm-Message-State: AOJu0YxKjGj8Kz9MMTlENfg5KlfBnuyE0Y3ptt+IBlMyWL4JaIrLhNwV MepByTzWRssVzMLO3MkVGTYhceKulB9dgw3+MfKPMtW7CE5dqf+sFYY4yi+3cnLWFLlVO5w/6wQ DFfUhPO4= X-Gm-Gg: AeBDies7T0eBAtNlvkMIKZC6pB2zShZcMnftL81OaG3uwP4xqekycbcaZvZz9jArb2L 7c+L197+j4EA7gxNwPDBzfQbQObZoE5SBJLvWD778IFpuJsVYemicvN2xe5Ce/HF2Ul4S1XNwUN 435rja9VAoGgFfw7a09gjqTHAgQjjBzM97HaJzzEP8pxveEN1C5ejQqHvPvLKWksj6Lx5MrCN+v siYOVhl4sgd0ur2243BFtQupD8L9C/lUC5GYXeVXMPkCmWe9/B9zBb58OcfGXyvdAztrs/5da8V UxpFrPhudCx0ENnA9jjIF0Fey5P1zBa4T9wk1VTyVDGj11Nb0SAR8ZlXYbO1JkFQcBFizcXHYlY XTeT/fMW6LeyE6d31ZghPo8f+VHI73cpZ6w0aFp5aQqNp7Y5U5tpP6nzGyPu+sMgwu67NPtZvKa HuuMSXOUSWpTLY/hM8rgO6Mxy8yK4SUPLrwhjwTK8iqJBag/pbE/wKFX/DnmI2wvpu+XGWzuJfb Rfxq3RqChx6PYjI2CRvahFzLBdxwfoj4ZPGkQ== X-Received: by 2002:a05:600c:354b:b0:48a:554d:b9a2 with SMTP id 5b1f17b1804b1-48e51e0c7c9mr165780915e9.6.1778221602544; Thu, 07 May 2026 23:26:42 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e68ec5c49sm15202695e9.11.2026.05.07.23.26.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 23:26:42 -0700 (PDT) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][scarthgap 1/8] grub: update search parameter Date: Fri, 8 May 2026 08:25:53 +0200 Message-ID: <2f509e353e2fc04923fc742312c81ed69b419643.1778198884.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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 ; Fri, 08 May 2026 06:26:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236633 From: Xiangyu Chen [ Upstream commit 42b530581f7246b3143ee50e3c6f981dcbb1dc74 ] Grub would report an error message in boot stage as below: "error: no such device: ((hd0,gpt1)/EFI/BOOT)/EFI/BOOT/grub.cfg" Consequently, the root variable is not set, and the intended protection against cross-device configuration loading (the purpose of the original 2014 commit) is lost. The most robust fix is to use the --hint parameter. This separates the search target from the device hint, avoiding fragile string concatenation and supporting both prefixed and non-prefixed $cmdpath formats. Fixes: 5ce73b6055ac ("grub: add cmdpath to grub configuration file") Signed-off-by: Xiangyu Chen Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie Signed-off-by: Xiangyu Chen Signed-off-by: Yoann Congal --- meta/recipes-bsp/grub/files/cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-bsp/grub/files/cfg b/meta/recipes-bsp/grub/files/cfg index 8ca53d24d7b..8fe1a8d0c74 100644 --- a/meta/recipes-bsp/grub/files/cfg +++ b/meta/recipes-bsp/grub/files/cfg @@ -1,2 +1,2 @@ -search.file ($cmdpath)/EFI/BOOT/grub.cfg root +search --file --set=root --hint-efi=$cmdpath /EFI/BOOT/grub.cfg set prefix=($root)/EFI/BOOT From patchwork Fri May 8 06:25:54 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 87668 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 3E2AFCD342F for ; Fri, 8 May 2026 06:26:46 +0000 (UTC) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7702.1778221605358026130 for ; Thu, 07 May 2026 23:26:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=i7ySC50Z; spf=pass (domain: smile.fr, ip: 209.85.128.42, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-488d2079582so17772535e9.2 for ; Thu, 07 May 2026 23:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1778221603; x=1778826403; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=buYkeoczFaZzlB3RWIqzJmoYcPqzDKhBsW/5+Rry/Vc=; b=i7ySC50ZkfURWvL0OwIqtnnguFSRb1ckuX4x7LCrTahHtwW7aM+KmgUU97O2gJ1z6W s3c/77wRFrur91dO2USA6o8vCUEN/driY/yTBufbKL6Fjj3ywRPkVwrrMgDDaYz5f8Eu fE4FsmR4vGS7PS443dLXpQPv9zXdg0mFNDHYw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778221603; x=1778826403; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=buYkeoczFaZzlB3RWIqzJmoYcPqzDKhBsW/5+Rry/Vc=; b=CjncoLCvYVgDCLzzKoSQvO9ARux4N4GHpoiVbtWNilMzrbQq7jh8N+1Bh+qcgTDtm9 GZ0rImyFAnPy9CTzOF9oSvR/5p/ZCVynzmG1X89/qrGUFTBmKBwaEoxu4q8uZgUvS/Y3 1S5ngNHo1BX8bpZ7jl/5qsLqgyU8h+9KK5W9eWY+He3lSnscxaoBNfxLrAUlfrzmvhZw hD/LL2GC9CdWTATiN5L4gA2ytpzjjxV2B6Ete2uSjymCw/B1LFpQkxBbnEmV52BA8T5V qjGwqwZOTl6z+ptowYdtWeGdeAMTn5QbR1uUKCZDbTEzD17bufv+W+cK6pDsOZUR+7tU KGpA== X-Gm-Message-State: AOJu0YwR6BcMcCyT3w+rrmuKMUvM5W4C5QvYyP+CNwtPRP7luKvCbZOR YUaQBxmJnaIcGv0K5kPQ8ywFvtnUc4xXkGR4dYbUHL9f2VkKmjSXM/nrYZkbox6bl95TRVTApx1 CKXfztS8= X-Gm-Gg: AeBDietWex0me7t7PggrUor9Mv8wh9P2X+poIDkwVkYu6N3r9tPI/9kG4NQ7YuYBuR8 CdfTQuhENLZpuSJKShdEm3rS4IpkOpLCp3QqZPPxehtj5mcIU1C1X9bjEWZu0M4BnRALi0Y0pb1 T7z3pkvdcG+NScPM0u3YH7HkoZb/KntlEiuxK6uG1MnKNzNsQDgthIIW2+XnTlhhynjB10NjiSd TDYHREs0TK2c+OwWRCifIfGzaRfzosFUMcpXgkELViDNwgha8XS76w4F4oIqwUuzo7zP8OtxG1w hFeF0AY9qsBvLts8rZidLVvDKFYdS84eMZpAuwkryKYfqtiPMfv+azotl9E9zJJUDLBfnLmHh6Z 8D0alUnmeraBcRlHEpsQE2a0r6JRJswbTZl1PnwKmo/MsvI7UO0m35CCHhy+QVkqp3MSa8JrE5E LiJ1E/gHvH4369oHvLZuLOlhbURuU6ajM1eQMIn07fuoumRfR3Y/bh31eXYqGsnzxORqJKsWkTQ n7mPy6SI9V5Bnoi5WQ5MKKGVJs= X-Received: by 2002:a05:600d:18:b0:488:b811:51c4 with SMTP id 5b1f17b1804b1-48e51f3c4f4mr137375955e9.25.1778221603241; Thu, 07 May 2026 23:26:43 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e68ec5c49sm15202695e9.11.2026.05.07.23.26.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 23:26:42 -0700 (PDT) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][scarthgap 2/8] libarchive: fix for CVE-2026-4426 Date: Fri, 8 May 2026 08:25:54 +0200 Message-ID: X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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 ; Fri, 08 May 2026 06:26:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236634 From: Hitendra Prajapati Pick patch from [1] also mentioned at Debian report in [2] [1] https://github.com/libarchive/libarchive/commit/c3cb1c568ebf9e8f7f478cfc0356ae54e99712b0 [2] https://security-tracker.debian.org/tracker/CVE-2026-4426 More details: https://nvd.nist.gov/vuln/detail/CVE-2026-4426 Signed-off-by: Hitendra Prajapati Signed-off-by: Yoann Congal --- .../libarchive/libarchive/CVE-2026-4426.patch | 58 +++++++++++++++++++ .../libarchive/libarchive_3.7.9.bb | 1 + 2 files changed, 59 insertions(+) create mode 100644 meta/recipes-extended/libarchive/libarchive/CVE-2026-4426.patch diff --git a/meta/recipes-extended/libarchive/libarchive/CVE-2026-4426.patch b/meta/recipes-extended/libarchive/libarchive/CVE-2026-4426.patch new file mode 100644 index 00000000000..c303c2372a5 --- /dev/null +++ b/meta/recipes-extended/libarchive/libarchive/CVE-2026-4426.patch @@ -0,0 +1,58 @@ +From c3cb1c568ebf9e8f7f478cfc0356ae54e99712b0 Mon Sep 17 00:00:00 2001 +From: elhananhaenel +Date: Sat, 7 Mar 2026 22:14:23 +0200 +Subject: [PATCH] iso9660: validate pz_log2_bs in parse_rockridge_ZF1() + +The zisofs block size exponent (pz_log2_bs) read from the Rock Ridge ZF +extension entry is used directly in shift expressions without validation. +The zisofs specification only permits values 15, 16, or 17 (corresponding +to 32K, 64K, and 128K block sizes). + +When pz_log2_bs >= 64 on 64-bit systems (or >= 32 on 32-bit), the +expression (size_t)1UL << pz_log2_bs is undefined behavior per C11 +6.5.7. On 32-bit systems, a large exponent also causes the block pointer +allocation size computation (ceil + 1) * 4 to overflow to zero, leading +to a heap buffer overflow write after malloc(0). + +Fix: reject any pz_log2_bs outside the range [15, 17] by disabling +zisofs for the entry (file->pz = 0), which prevents the zisofs +decompression path from executing. + +Found by fuzzing with ASAN/UBSAN. + +CVE: CVE-2026-4426 +Upstream-Status: Backport [https://github.com/libarchive/libarchive/commit/c3cb1c568ebf9e8f7f478cfc0356ae54e99712b0] +Signed-off-by: Hitendra Prajapati +--- + libarchive/archive_read_support_format_iso9660.c | 15 ++++++++++----- + 1 file changed, 10 insertions(+), 5 deletions(-) + +diff --git a/libarchive/archive_read_support_format_iso9660.c b/libarchive/archive_read_support_format_iso9660.c +index 7d3655a..477aae9 100644 +--- a/libarchive/archive_read_support_format_iso9660.c ++++ b/libarchive/archive_read_support_format_iso9660.c +@@ -2756,11 +2756,16 @@ parse_rockridge_ZF1(struct file_info *file, const unsigned char *data, + { + + if (data[0] == 0x70 && data[1] == 0x7a && data_length == 12) { +- /* paged zlib */ +- file->pz = 1; +- file->pz_log2_bs = data[3]; +- file->pz_uncompressed_size = archive_le32dec(&data[4]); +- } ++ /* paged zlib */ ++ file->pz = 1; ++ file->pz_log2_bs = data[3]; ++ if (file->pz_log2_bs < 15 || file->pz_log2_bs > 17) { ++ /* Invalid block size exponent; disable zisofs. */ ++ file->pz = 0; ++ return; ++ } ++ file->pz_uncompressed_size = archive_le32dec(&data[4]); ++ } + } + + static void +-- +2.50.1 + diff --git a/meta/recipes-extended/libarchive/libarchive_3.7.9.bb b/meta/recipes-extended/libarchive/libarchive_3.7.9.bb index bc0d3ba0743..de9682400a8 100644 --- a/meta/recipes-extended/libarchive/libarchive_3.7.9.bb +++ b/meta/recipes-extended/libarchive/libarchive_3.7.9.bb @@ -46,6 +46,7 @@ SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz \ file://CVE-2025-60753-02.patch \ file://CVE-2026-4111-1.patch \ file://CVE-2026-4111-2.patch \ + file://CVE-2026-4426.patch \ " UPSTREAM_CHECK_URI = "http://libarchive.org/" From patchwork Fri May 8 06:25:55 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 87670 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 62DA9CD342F for ; Fri, 8 May 2026 06:26:56 +0000 (UTC) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7591.1778221606009568927 for ; Thu, 07 May 2026 23:26:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=kJ/iudRr; spf=pass (domain: smile.fr, ip: 209.85.128.44, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-488a9033b2cso15207515e9.2 for ; Thu, 07 May 2026 23:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1778221604; x=1778826404; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=PdzBHTty7k914pVNmhW+92GprYPRh3xCg7Rv/T5lfuE=; b=kJ/iudRr5jvLEaQL+7NZUGF0FVa6Lsd6gzEBarua/73fuYqriEmCsxGEl4DzAfvNAh TCrRMD/FGLliIDZixPSdgzICkPaX+KTlq7LEL7rfF+iFhs5BUyP5nTpwSxzn37toFEMk PI8SVx/T/jIXWtC57HJE4V6nNqvi/HWw6cknQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778221604; x=1778826404; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=PdzBHTty7k914pVNmhW+92GprYPRh3xCg7Rv/T5lfuE=; b=kewj7zTArhqjq1LqeKuq2HH0/IwDLcZCJaO6htRDLAnEbfEoMT1Pa5rO7pY5chzBWZ arKi6pl0pG3dDhrSrMUqbVcukYTrb/t1EA6vDxU7x7jLVUQSAW5iIBQVQE6qid1Rnn7+ J+GmAVVVCaPM3DtS5v++VKCF5e3mJ+8eNj6oJRszF/yobGfjvumXE+rPDRr2SKFHv5kP +Ob9aG/8t2s8mJQWIyMaLfOk7hDvdZA+3xDyFtBoaGnrpjkPLh3MFBIpUkRA9lLA7OIk Igrkf4y5eTJkNJRQsQo2d1z0awe2wKIZhkmF4lWuSy3SWrDcGnNdBcEk0rrpJxdWZP8m 9/Og== X-Gm-Message-State: AOJu0YwT1h1tbgteT08g5dWXEPa8CHSTNRljZ/YLDXNQtb6XfnY5BmnM XRzTp+KdpOLyf/zDQ7+/HfzslqiuzCl60a26NzR+ICfhH8eOjl/M2QrXIRQzfi8w2VNSVIWR/s2 cSkUegFA= X-Gm-Gg: AeBDieu1lEwl2H+g8xS46dchayD8hNKXa8P5gM1W6Q2Yymp/jZe3lYDxRAOKOp7ObSP Ev2IXRJ8ur2VhuhgwhYQd9/EDY1z0p1aT2j/l/rZXL1xJofg6OYYkHMeeswYFZXvrLJgA6hgwns 6wss/u/CUXLt8Qg6O+gj0EFWn9h/ZXNSHYu5wd65jsQu+Fqx2banTRnyMOUc09tY/QkH5edxzXe MEGlAzDiL/KQlq51qnpOz/JlRcwIBbtB6cNwGdUjkmj8wbJoPH14lsmMnDtpQ3md7f4sZSjLyo2 b3qoBFibUQEU/PZlyIllMEPIrMKBmz/RrrsPZenY/HPgGw4eTX2d2JjjxG0FT8yrZiBU2aU2Z8p YB94znIRARs73COdd9EBzCZaUh61CHzmXHBlwLXhkZxY7dkSfB046l5a28BDXZYx0a7RDOi1oUY VdHtK0vN/z/SEnakSFnZNu7wRWGUgJvl5JcBZn7XkubY84wCTaRKgFWSJnsFHx+fIoSNmD+WTMw gUma/kjAC3MHSVh3KvDg1OC4JCbk4wqiaKJaQ== X-Received: by 2002:a05:600c:c107:b0:48e:51f8:eb37 with SMTP id 5b1f17b1804b1-48e51f8eb65mr135974015e9.25.1778221603970; Thu, 07 May 2026 23:26:43 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e68ec5c49sm15202695e9.11.2026.05.07.23.26.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 23:26:43 -0700 (PDT) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][scarthgap 3/8] vim: fix for CVE-2026-39881 Date: Fri, 8 May 2026 08:25:55 +0200 Message-ID: X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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 ; Fri, 08 May 2026 06:26:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236635 From: Hitendra Prajapati Pick patch from [1] also mentioned at Debian report in [2] [1] https://github.com/vim/vim/commit/7ab76a86048ed492374ac6b19c6cb52f89a365b4 [2] https://security-tracker.debian.org/tracker/CVE-2026-39881 More details: https://nvd.nist.gov/vuln/detail/CVE-2026-39881 Signed-off-by: Hitendra Prajapati Signed-off-by: Yoann Congal --- .../vim/files/CVE-2026-39881.patch | 248 ++++++++++++++++++ meta/recipes-support/vim/vim.inc | 1 + 2 files changed, 249 insertions(+) create mode 100644 meta/recipes-support/vim/files/CVE-2026-39881.patch diff --git a/meta/recipes-support/vim/files/CVE-2026-39881.patch b/meta/recipes-support/vim/files/CVE-2026-39881.patch new file mode 100644 index 00000000000..e0d21c5f239 --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2026-39881.patch @@ -0,0 +1,248 @@ +From 7ab76a86048ed492374ac6b19c6cb52f89a365b4 Mon Sep 17 00:00:00 2001 +From: Christian Brabandt +Date: Tue, 7 Apr 2026 17:32:02 +0000 +Subject: [PATCH] patch 9.2.0316: [security]: command injection in netbeans + interface via defineAnnoType + +Problem: [security]: The netbeans defineAnnoType command passes typeName, fg and bg + unsanitized to coloncmd(), allowing a malicious server to inject + arbitrary Ex commands via '|'. Similarly, specialKeys does not + validate key tokens before building a map command. +Solution: Validate typeName, fg and bg against an allowlist of safe + characters before passing them to coloncmd() + +Github Advisory: +https://github.com/vim/vim/security/advisories/GHSA-mr87-rhgv-7pw6 + +Supported by AI + +Signed-off-by: Christian Brabandt + +CVE: CVE-2026-39881 +Upstream-Status: Backport [https://github.com/vim/vim/commit/7ab76a86048ed492374ac6b19c6cb52f89a365b4] +Signed-off-by: Hitendra Prajapati +--- + runtime/doc/netbeans.txt | 4 +-- + runtime/doc/tags | 1 + + src/errors.h | 3 ++- + src/netbeans.c | 46 ++++++++++++++++++++++++++++++++++- + src/po/vim.pot | 5 +++- + src/testdir/test_netbeans.py | 4 ++- + src/testdir/test_netbeans.vim | 38 +++++++++++++++++++++++++++++ + 7 files changed, 96 insertions(+), 7 deletions(-) + +diff --git a/runtime/doc/netbeans.txt b/runtime/doc/netbeans.txt +index ca32f06f66..fa53eae784 100644 +--- a/runtime/doc/netbeans.txt ++++ b/runtime/doc/netbeans.txt +@@ -1,4 +1,4 @@ +-*netbeans.txt* For Vim version 9.1. Last change: 2025 Aug 10 ++*netbeans.txt* For Vim version 9.1. Last change: 2026 Apr 30 + + + VIM REFERENCE MANUAL by Gordon Prieur et al. +@@ -847,7 +847,7 @@ REJECT Not used. + These errors occur when a message violates the protocol: + *E627* *E628* *E629* *E632* *E633* *E634* *E635* *E636* + *E637* *E638* *E639* *E640* *E641* *E642* *E643* *E644* *E645* *E646* +-*E647* *E648* *E650* *E651* *E652* ++*E647* *E648* *E649* *E650* *E651* *E652* + + + ============================================================================== +diff --git a/runtime/doc/tags b/runtime/doc/tags +index 8af54eae0a..300dfd18a6 100644 +--- a/runtime/doc/tags ++++ b/runtime/doc/tags +@@ -5236,6 +5236,7 @@ E645 netbeans.txt /*E645* + E646 netbeans.txt /*E646* + E647 netbeans.txt /*E647* + E648 netbeans.txt /*E648* ++E649 netbeans.txt /*E649* + E65 pattern.txt /*E65* + E650 netbeans.txt /*E650* + E651 netbeans.txt /*E651* +diff --git a/src/errors.h b/src/errors.h +index 5d6867464b..01ed16a035 100644 +--- a/src/errors.h ++++ b/src/errors.h +@@ -1664,7 +1664,8 @@ EXTERN char e_invalid_buffer_identifier_in_setdot[] + INIT(= N_("E647: Invalid buffer identifier in setDot")); + EXTERN char e_invalid_buffer_identifier_in_close[] + INIT(= N_("E648: Invalid buffer identifier in close")); +-// E649 unused ++EXTERN char e_invalid_identifier_in_defineannotype[] ++ INIT(= N_("E649: Invalid identifier name in defineAnnoType")); + EXTERN char e_invalid_buffer_identifier_in_defineannotype[] + INIT(= N_("E650: Invalid buffer identifier in defineAnnoType")); + EXTERN char e_invalid_buffer_identifier_in_addanno[] +diff --git a/src/netbeans.c b/src/netbeans.c +index 8a341a20be..599cdc1994 100644 +--- a/src/netbeans.c ++++ b/src/netbeans.c +@@ -40,6 +40,11 @@ + #define GUARDEDOFFSET 1000000 // base for "guarded" sign id's + #define MAX_COLOR_LENGTH 32 // max length of color name in defineAnnoType + ++// Characters valid in a sign/highlight group name ++#define VALID_CHARS (char_u *)"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" ++#define VALID_SIGNNAME_CHARS VALID_CHARS "_" ++#define VALID_COLOR_CHARS VALID_CHARS "#" ++ + // The first implementation (working only with Netbeans) returned "1.1". The + // protocol implemented here also supports A-A-P. + static char *ExtEdProtocolVersion = "2.5"; +@@ -77,6 +82,22 @@ static int dosetvisible = FALSE; + static int needupdate = 0; + static int inAtomic = 0; + ++/* ++ * Return TRUE if "str" contains only characters from "allowed". ++ * Used to validate NetBeans-supplied strings before interpolating them ++ * into Ex commands via coloncmd(). ++ */ ++ static int ++nb_is_safe_string(char_u *str, char_u *allowed) ++{ ++ if (str == NULL) ++ return FALSE; ++ for (char_u *p = str; *p != NUL; p++) ++ if (vim_strchr(allowed, *p) == NULL) ++ return FALSE; ++ return TRUE; ++} ++ + /* + * Callback invoked when the channel is closed. + */ +@@ -1949,6 +1970,15 @@ nb_do_cmd( + VIM_CLEAR(typeName); + parse_error = TRUE; + } ++ else if (!nb_is_safe_string(typeName, VALID_SIGNNAME_CHARS) || ++ (*fg != NUL && !nb_is_safe_string(fg, VALID_COLOR_CHARS)) || ++ (*bg != NUL && !nb_is_safe_string(bg, VALID_COLOR_CHARS))) ++ { ++ nbdebug((" invalid chars in typeName/fg/bg in defineAnnoType\n")); ++ emsg(_(e_invalid_identifier_in_defineannotype)); ++ VIM_CLEAR(typeName); ++ parse_error = TRUE; ++ } + else if (typeName != NULL && tooltip != NULL && glyphFile != NULL) + addsigntype(buf, typeNum, typeName, tooltip, glyphFile, fg, bg); + +@@ -2321,11 +2351,25 @@ special_keys(char_u *args) + + if (strlen(tok) + i < KEYBUFLEN) + { +- strcpy(&keybuf[i], tok); ++ // Only allow alphanumeric and function-key name characters. ++ // Reject anything else to prevent map command injection. ++ int safe = TRUE; ++ for (char_u *tp = (char_u *)tok; *tp != NUL; tp++) ++ { ++ if (!ASCII_ISALNUM(*tp) && *tp != '-') ++ { ++ safe = FALSE; ++ break; ++ } ++ } ++ if (safe) ++ { ++ vim_strncpy((char_u *)&keybuf[i], (char_u *)tok, KEYBUFLEN - i - 1); + vim_snprintf(cmdbuf, sizeof(cmdbuf), + "<%s> :nbkey %s", keybuf, keybuf); + do_map(MAPTYPE_MAP, (char_u *)cmdbuf, MODE_NORMAL, FALSE); + } ++ } + tok = strtok(NULL, " "); + } + vim_free(save_str); +diff --git a/src/po/vim.pot b/src/po/vim.pot +index bf44567726..9608271418 100644 +--- a/src/po/vim.pot ++++ b/src/po/vim.pot +@@ -8,7 +8,7 @@ msgid "" + msgstr "" + "Project-Id-Version: Vim\n" + "Report-Msgid-Bugs-To: vim-dev@vim.org\n" +-"POT-Creation-Date: 2025-08-23 16:16+0200\n" ++"POT-Creation-Date: 2026-04-30 12:40+0200\n" + "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" + "Last-Translator: FULL NAME \n" + "Language-Team: LANGUAGE \n" +@@ -5866,6 +5866,9 @@ msgstr "" + msgid "E648: Invalid buffer identifier in close" + msgstr "" + ++msgid "E649: Invalid identifier name in defineAnnoType" ++msgstr "" ++ + msgid "E650: Invalid buffer identifier in defineAnnoType" + msgstr "" + +diff --git a/src/testdir/test_netbeans.py b/src/testdir/test_netbeans.py +index 585886fb40..ba5fd638ec 100644 +--- a/src/testdir/test_netbeans.py ++++ b/src/testdir/test_netbeans.py +@@ -113,7 +113,9 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler): + 'endAtomic_Test' : '0:endAtomic!95\n', + 'AnnoScale_Test' : "".join(['2:defineAnnoType!60 ' + str(i) + ' "s' + str(i) + '" "x" "=>" blue none\n' for i in range(2, 26)]), + 'detach_Test' : '2:close!96\n1:close!97\nDETACH\n', +- 'specialKeys_overflow_Test' : '0:specialKeys!200 "' + 'A'*80 + '-X"\n' ++ 'specialKeys_overflow_Test' : '0:specialKeys!200 "' + 'A'*80 + '-X"\n', ++ 'defineAnnoType_injection_Test': '1:defineAnnoType!1 "MySign guifg=red|call writefile([\'inject\'],\'Xinject\')|" "tooltip" "glyphFile" 1 2\n' ++ + + } + # execute the specified test +diff --git a/src/testdir/test_netbeans.vim b/src/testdir/test_netbeans.vim +index d1be5066ef..a464c63acc 100644 +--- a/src/testdir/test_netbeans.vim ++++ b/src/testdir/test_netbeans.vim +@@ -1024,4 +1024,42 @@ func Test_nb_specialKeys_overflow() + call s:run_server('Nb_specialKeys_overflow') + endfunc + ++func Nb_defineAnnoType_injection(port) ++ call writefile([], "Xnetbeans", 'D') ++ let g:last = 0 ++ ++ exe 'nbstart :localhost:' .. a:port .. ':bunny' ++ call assert_true(has("netbeans_enabled")) ++ call WaitFor('len(ReadXnetbeans()) > (g:last + 2)') ++ let g:last += 3 ++ ++ split Xcmdbuf ++ let cmdbufnr = bufnr() ++ call WaitFor('len(ReadXnetbeans()) > (g:last + 2)') ++ let g:last += 3 ++ hide ++ ++ sleep 1m ++ ++ call delete('Xinject') ++ call appendbufline(cmdbufnr, '$', 'defineAnnoType_injection_Test') ++ " E475 from :sign is expected — catch it before RunServer sees it. ++ " give it a bit of time to process it ++ try ++ sleep 500m ++ catch /E475/ ++ catch /E649/ ++ endtry ++ ++ " Injected call must not have created this file ++ call assert_false(filereadable('Xinject')) ++ call delete('Xinject') ++ bwipe! Xcmdbuf ++ nbclose ++endfunc ++ ++func Test_nb_defineAnnoType_injection() ++ call ch_log('Test_nb_defineAnnoType_injection') ++ call s:run_server('Nb_defineAnnoType_injection') ++endfunc + " vim: shiftwidth=2 sts=2 expandtab +-- +2.50.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index 9456cf3e13c..1396ac4fbc7 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -21,6 +21,7 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \ file://CVE-2026-33412.patch \ file://CVE-2026-28418.patch \ file://CVE-2026-28419.patch \ + file://CVE-2026-39881.patch \ " PV .= ".1683" From patchwork Fri May 8 06:25:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 87674 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 904ECCD37B1 for ; Fri, 8 May 2026 06:26:56 +0000 (UTC) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7592.1778221606614020633 for ; Thu, 07 May 2026 23:26:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=altNu1JY; spf=pass (domain: smile.fr, ip: 209.85.128.43, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-488a88aeec9so19222835e9.2 for ; Thu, 07 May 2026 23:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1778221605; x=1778826405; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=liURZfgWxdeLevXBuLNSsUTGaxJEmbmU8974nCYJyg4=; b=altNu1JY3gamED9xuzAUJSZWJwq+z43GtPGAMlh66IfJCIEXoLlf97+HALdPeN9FX8 xt2DvDc0ybtg3+XqdkzBc0liKy8T6fsDMjN5NYLgQwR/wYK8/FtkS9qxDbqC07/xYjmB S21JG+06LmWPqbmuN92EqihMj8+Ihcc8TVwME= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778221605; x=1778826405; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=liURZfgWxdeLevXBuLNSsUTGaxJEmbmU8974nCYJyg4=; b=XODpPt4L8sOmWtJAcKxnyrwDKsvjzENUSmdan9zIwEnQd8KF7hBTtP4la0SIGEXkKN ZsRp8fe3FzHSc5qf3Jk90g4Wpbu6aCtc3AEmrLLh93H85hpKxwIH0ShvoQw8qOVQzBfZ OoiwDVgmSBtH+1a6hk3gUEDQX3D54VNjEiM2oBRfozzP430d+z7GkyKKlSjI+LPg9F/R KJGXm3r/lKlj8eu9ZDCAe6KuPQNMiM8tD1+YVWjNkEmFLfjP1OEMEiQG95onokIT187n a1YvT1agN7wlluznfIulzbbHsHQdyLO2QTZq9ipZ1uU0SLaEgqWeosbP6ovGPTPu+eB7 9pwA== X-Gm-Message-State: AOJu0YzZDwNcHPMPlznq0rcACa2YcnDT4by+Pba05nQqe3DF/Z9dbrSq eqgCuYWnC1CyCsvqNTdgEECHcJuLnubSgHRJAwLhQkkzba9huk+At/lhH7eIhUDgJs+7QCQ/sBr JNFY5OJE= X-Gm-Gg: AeBDiestnlnS7+/iOcTbBWutpVqdHEbfL3KAv6XKf0Ocs9LNz9vQS12dgOb5ovoFFyd kVznf3YGole6SPIYICRgq1NtvJCrYoGFv4+/+/+IatlQsyLbIVSC1cwAMl3JJs5eCIz3amg21Lx czmwMVC6+cgg7J8AFUEookoqeslJtYiG8aj7ICgQf2RbTEY3IbnIPgdYILK3cBTMfwr3Jo1A9US 0J5FP03YOeKrnXTXfuzCL3+qckCFWlLLIo9tFdfnq67tNY8Z8VqFvzVqePOP+I37dtB+y8P7x/t ffZcmk+fVLdY0yW6imwrwsLVzeRd56P+oc9sjlzmk5997Qk67gDAMVkyCAIMdIC6mRLs5lJEDFd C9dmB8E0U2ovdfgkIn0gqq4YZdbJmikBYAfdcpnWFmeDsx0yB7f82XXohWPsFfuVd4VPKb4HW7n 5/t5l7+raD7pMNvZtJaq4kVVBvsweEfTG1D8yPv5orsg2eYNIGpaEyRAvL4CDprihqR0GgLj8VA e3wT0iXDVI/5UhwayufCr5knbk= X-Received: by 2002:a05:600c:3ba8:b0:48a:7676:30bc with SMTP id 5b1f17b1804b1-48e52bd5035mr196923395e9.14.1778221604560; Thu, 07 May 2026 23:26:44 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e68ec5c49sm15202695e9.11.2026.05.07.23.26.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 23:26:44 -0700 (PDT) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][scarthgap 4/8] sudo: fix for CVE-2026-35535 Date: Fri, 8 May 2026 08:25:56 +0200 Message-ID: X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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 ; Fri, 08 May 2026 06:26:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236636 From: Hitendra Prajapati Pick patch from [1] also mentioned at Debian report in [2] [1] https://github.com/sudo-project/sudo/commit/3e474c2f201484be83d994ae10a4e20e8c81bb69 [2] https://security-tracker.debian.org/tracker/CVE-2026-35535 [3] https://nvd.nist.gov/vuln/detail/CVE-2026-35535 Signed-off-by: Hitendra Prajapati Signed-off-by: Yoann Congal --- .../sudo/files/CVE-2026-35535.patch | 150 ++++++++++++++++++ meta/recipes-extended/sudo/sudo_1.9.17p2.bb | 1 + 2 files changed, 151 insertions(+) create mode 100644 meta/recipes-extended/sudo/files/CVE-2026-35535.patch diff --git a/meta/recipes-extended/sudo/files/CVE-2026-35535.patch b/meta/recipes-extended/sudo/files/CVE-2026-35535.patch new file mode 100644 index 00000000000..8c27d2772bb --- /dev/null +++ b/meta/recipes-extended/sudo/files/CVE-2026-35535.patch @@ -0,0 +1,150 @@ +From 3e474c2f201484be83d994ae10a4e20e8c81bb69 Mon Sep 17 00:00:00 2001 +From: "Todd C. Miller" +Date: Sat, 8 Nov 2025 15:34:02 -0700 +Subject: [PATCH] exec_mailer: Set group as well as uid when running the mailer + +Also make a setuid(), setgid() or setgroups() failure fatal. + +Found by the ZeroPath AI Security Engineer + +CVE: CVE-2026-35535 +Upstream-Status: Backport [https://github.com/sudo-project/sudo/commit/3e474c2f201484be83d994ae10a4e20e8c81bb69] +Signed-off-by: Hitendra Prajapati +--- + include/sudo_eventlog.h | 3 ++- + lib/eventlog/eventlog.c | 21 +++++++++++++++++---- + lib/eventlog/eventlog_conf.c | 4 +++- + plugins/sudoers/logging.c | 2 +- + plugins/sudoers/policy.c | 2 +- + 5 files changed, 24 insertions(+), 8 deletions(-) + +diff --git a/include/sudo_eventlog.h b/include/sudo_eventlog.h +index eb9f4f4..485d259 100644 +--- a/include/sudo_eventlog.h ++++ b/include/sudo_eventlog.h +@@ -80,6 +80,7 @@ struct eventlog_config { + int syslog_rejectpri; + int syslog_alertpri; + uid_t mailuid; ++ gid_t mailgid; + bool omit_hostname; + const char *logpath; + const char *time_fmt; +@@ -151,7 +152,7 @@ void eventlog_set_syslog_rejectpri(int pri); + void eventlog_set_syslog_alertpri(int pri); + void eventlog_set_syslog_maxlen(size_t len); + void eventlog_set_file_maxlen(size_t len); +-void eventlog_set_mailuid(uid_t uid); ++void eventlog_set_mailuser(uid_t uid, gid_t gid); + void eventlog_set_omit_hostname(bool omit_hostname); + void eventlog_set_logpath(const char *path); + void eventlog_set_time_fmt(const char *fmt); +diff --git a/lib/eventlog/eventlog.c b/lib/eventlog/eventlog.c +index 5a32824..d56c4e4 100644 +--- a/lib/eventlog/eventlog.c ++++ b/lib/eventlog/eventlog.c +@@ -304,15 +304,13 @@ exec_mailer(int pipein) + syslog(LOG_ERR, _("unable to dup stdin: %m")); // -V618 + sudo_debug_printf(SUDO_DEBUG_ERROR, + "unable to dup stdin: %s", strerror(errno)); +- sudo_debug_exit(__func__, __FILE__, __LINE__, sudo_debug_subsys); +- _exit(127); ++ goto bad; + } + + /* Build up an argv based on the mailer path and flags */ + if ((mflags = strdup(evl_conf->mailerflags)) == NULL) { + syslog(LOG_ERR, _("unable to allocate memory")); // -V618 +- sudo_debug_exit(__func__, __FILE__, __LINE__, sudo_debug_subsys); +- _exit(127); ++ goto bad; + } + argv[0] = sudo_basename(mpath); + +@@ -331,11 +329,23 @@ exec_mailer(int pipein) + if (setuid(ROOT_UID) != 0) { + sudo_debug_printf(SUDO_DEBUG_ERROR, "unable to change uid to %u", + ROOT_UID); ++ goto bad; ++ } ++ if (setgid(evl_conf->mailgid) != 0) { ++ sudo_debug_printf(SUDO_DEBUG_ERROR, "unable to change gid to %u", ++ (unsigned int)evl_conf->mailgid); ++ goto bad; ++ } ++ if (setgroups(1, &evl_conf->mailgid) != 0) { ++ sudo_debug_printf(SUDO_DEBUG_ERROR, "unable to set groups to %u", ++ (unsigned int)evl_conf->mailgid); ++ goto bad; + } + if (evl_conf->mailuid != ROOT_UID) { + if (setuid(evl_conf->mailuid) != 0) { + sudo_debug_printf(SUDO_DEBUG_ERROR, "unable to change uid to %u", + (unsigned int)evl_conf->mailuid); ++ goto bad; + } + } + sudo_debug_exit(__func__, __FILE__, __LINE__, sudo_debug_subsys); +@@ -347,6 +357,9 @@ exec_mailer(int pipein) + sudo_debug_printf(SUDO_DEBUG_ERROR, "unable to execute %s: %s", + mpath, strerror(errno)); + _exit(127); ++bad: ++ sudo_debug_exit(__func__, __FILE__, __LINE__, sudo_debug_subsys); ++ _exit(127); + } + + /* Send a message to the mailto user */ +diff --git a/lib/eventlog/eventlog_conf.c b/lib/eventlog/eventlog_conf.c +index 0663a38..ec3b569 100644 +--- a/lib/eventlog/eventlog_conf.c ++++ b/lib/eventlog/eventlog_conf.c +@@ -70,6 +70,7 @@ static struct eventlog_config evl_conf = { + MAXSYSLOGLEN, /* syslog_maxlen */ + 0, /* file_maxlen */ + ROOT_UID, /* mailuid */ ++ ROOT_GID, /* mailgid */ + false, /* omit_hostname */ + _PATH_SUDO_LOGFILE, /* logpath */ + "%h %e %T", /* time_fmt */ +@@ -151,9 +152,10 @@ eventlog_set_file_maxlen(size_t len) + } + + void +-eventlog_set_mailuid(uid_t uid) ++eventlog_set_mailuser(uid_t uid, gid_t gid) + { + evl_conf.mailuid = uid; ++ evl_conf.mailgid = gid; + } + + void +diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c +index bd4de92..9535289 100644 +--- a/plugins/sudoers/logging.c ++++ b/plugins/sudoers/logging.c +@@ -1157,7 +1157,7 @@ init_eventlog_config(void) + eventlog_set_syslog_alertpri(def_syslog_badpri); + eventlog_set_syslog_maxlen(def_syslog_maxlen); + eventlog_set_file_maxlen(def_loglinelen); +- eventlog_set_mailuid(ROOT_UID); ++ eventlog_set_mailuser(ROOT_UID, ROOT_GID); + eventlog_set_omit_hostname(!def_log_host); + eventlog_set_logpath(def_logfile); + eventlog_set_time_fmt(def_log_year ? "%h %e %T %Y" : "%h %e %T"); +diff --git a/plugins/sudoers/policy.c b/plugins/sudoers/policy.c +index f3adfb0..27f6e58 100644 +--- a/plugins/sudoers/policy.c ++++ b/plugins/sudoers/policy.c +@@ -639,7 +639,7 @@ sudoers_policy_deserialize_info(struct sudoers_context *ctx, void *v, + } + + #ifdef NO_ROOT_MAILER +- eventlog_set_mailuid(ctx->user.uid); ++ eventlog_set_mailuser(ctx->user.uid, ctx->user.gid); + #endif + + /* Dump settings and user info (XXX - plugin args) */ +-- +2.50.1 + diff --git a/meta/recipes-extended/sudo/sudo_1.9.17p2.bb b/meta/recipes-extended/sudo/sudo_1.9.17p2.bb index d715bc2075f..c934dfdce27 100644 --- a/meta/recipes-extended/sudo/sudo_1.9.17p2.bb +++ b/meta/recipes-extended/sudo/sudo_1.9.17p2.bb @@ -3,6 +3,7 @@ require sudo.inc SRC_URI = "https://www.sudo.ws/dist/sudo-${PV}.tar.gz \ ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ file://0001-sudo.conf.in-fix-conflict-with-multilib.patch \ + file://CVE-2026-35535.patch \ " PAM_SRC_URI = "file://sudo.pam" From patchwork Fri May 8 06:25:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 87671 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 81CA8CD37AA for ; Fri, 8 May 2026 06:26:56 +0000 (UTC) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7593.1778221607195294103 for ; Thu, 07 May 2026 23:26:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=ZqOhCYYS; spf=pass (domain: smile.fr, ip: 209.85.128.44, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4891f625344so17576315e9.0 for ; Thu, 07 May 2026 23:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1778221605; x=1778826405; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=r9fJCqNd2jMaCXUfcz/32twzTx2E0wPEZKbXTL1EGYg=; b=ZqOhCYYShq0jKZjcrSDVQbUuCzuyJSQeZ46oR0lfkg7iPmSDakbeO3UR5ZigUV4f+6 aZuoRFuGWRdqGUuidK9o/+nNQXhXJQ05q2FTsrV1MQ3X2mYsNndJFWD2MWfM0ckAgGod xR3G0Zn0NTihYqSW7J8FHCyohC6ZTVP2GYsv8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778221605; x=1778826405; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=r9fJCqNd2jMaCXUfcz/32twzTx2E0wPEZKbXTL1EGYg=; b=Xr6UOi8jvOhxqs0oLDylRvsWNRL6HFT0LCUFVzHnk0ADKgzo7oMNW0EJnvL6SggPw6 FkJms2XimzHFw6gVy/5/PUWdNsc5GxDY0Tgq6udyVGQNjVeKbqc0nal5V5uvXgvZvFGL wp1R9PpmvtjlPlNQUQ23kX2bbvuxgHKLHDHgT6GzTGVDMhQXKUWkAsWAYoqWHNZ0a0af 9bUxcNrMRpmqvGWUkiHbj6uVY8Ecx1FAGbJfgA8uDLKpwwylB9MLrh+CZkKNbdXG1pBF qgDvTXAX8VEf0LzCXtX0s+OJsQsQ/Ne/p4JXXckJWPBMI6/NTQtQOwjFA3sgnPePFH3B qpew== X-Gm-Message-State: AOJu0YwBj7xbY2T74M01hDKd3iHSBnwI/VyQGlCrA5g43R26CLgZ8jZP aC2tadhtcntNHKokWvITPN05IF6OKbE5UQ3cmItzTBKmUQSem3Qe9F6TyjjwkBX4bSwCzbEKejs mmN1IdR0= X-Gm-Gg: AeBDievjblmxhye3HnlssYbqI7fX7yWjonmVprF92joR6JTcsjomDH0KBxh6eiX0GQU OfE03SqNoC1Uxq32/krcOF1v7gOpA8NIzvNaeIk6FzUk1MbfQh1EzddJbqaJNpaA8Y3uq8ecEDz iQhy7iIgPaaiH4eerOv5/G1hSDEIsqx9BrQ59PZKiV9YpaAIEsZxNQ/yUQfwBiHll9We4ROm31p L7uUvtlDxmVyIhtsnWMEEFSg2JnmYarnRAsVHU7vMixD9t3yLP/seRc51PTVYZoWaQ2jRybNJTE 6eeOQPvW9XCqbtHH4kgq6sY1a4ent0sirm3TnUXf7HHK/2IgsBzCqSvhccT/fz7gUH6OnYniHT1 cX2zKw92+YjquqXeMbMk1RoZT+9A8pV5RxniwAezZ/gl8v158+uCWSC2tpQPJXbSM0zEZ9yyhAl GeUj6B2SkIgLafFgvAobzhfS6V92RPYSQpqvamzq8Sh6mQSsnhPNk72otX49tc0HyImKsG4mMUL PYCc5sMYI7SyaTej7x6Jnw7MU0= X-Received: by 2002:a05:600c:32af:b0:48a:534a:eed8 with SMTP id 5b1f17b1804b1-48e5dfcd722mr53586325e9.1.1778221605221; Thu, 07 May 2026 23:26:45 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e68ec5c49sm15202695e9.11.2026.05.07.23.26.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 23:26:44 -0700 (PDT) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][scarthgap 5/8] coreutils: set CVE_PRODUCT Date: Fri, 8 May 2026 08:25:57 +0200 Message-ID: <348391ccf91ac474252f75a5679fc42505faa54d.1778198884.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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 ; Fri, 08 May 2026 06:26:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236637 From: Peter Marko This removes rust uutils coreutils CVEs from reports. Comparing sbom-cve-check shows that only CVE-2026-35338..CVE-2026-35381 are removed and all of them contained reference to uutils. Signed-off-by: Peter Marko Signed-off-by: Richard Purdie (From OE-Core rev: 5c39687f62e5864ea783cbed497c2eb5387dcf96) Signed-off-by: Peter Marko Signed-off-by: Yoann Congal --- meta/recipes-core/coreutils/coreutils_9.4.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-core/coreutils/coreutils_9.4.bb b/meta/recipes-core/coreutils/coreutils_9.4.bb index caed1f8c499..a9618c8ab84 100644 --- a/meta/recipes-core/coreutils/coreutils_9.4.bb +++ b/meta/recipes-core/coreutils/coreutils_9.4.bb @@ -23,6 +23,8 @@ SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \ " SRC_URI[sha256sum] = "ea613a4cf44612326e917201bbbcdfbd301de21ffc3b59b6e5c07e040b275e52" +CVE_PRODUCT = "gnu:coreutils" + # http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=v8.27-101-gf5d7c0842 # CVE_STATUS[CVE-2016-2781] = "disputed: runcon is not really a sandbox command, use `runcon ... setsid ...` to avoid this particular issue." From patchwork Fri May 8 06:25:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 87673 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 75104CD37AC for ; Fri, 8 May 2026 06:26:56 +0000 (UTC) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7703.1778221607833048063 for ; Thu, 07 May 2026 23:26:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=2yAfDErT; spf=pass (domain: smile.fr, ip: 209.85.128.54, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4891c0620bcso11852925e9.1 for ; Thu, 07 May 2026 23:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1778221606; x=1778826406; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=LzGdwZmkASr175rA3WPJiOvnPfz16Tbby1iJ1/SBFX8=; b=2yAfDErTW38z0atOQf3OTpadB0Q+LvwPUsQ1853C4l0CETVqa1/aOUK8UbvHqOuct5 wYDUSBEfoT4UukzdM4Rt/GbdpRDKMrnQiNjjFG8BoYm6ZljPtsKShb7FbzV0LUqFC1Lv WO8fhyhp3NavGa+YRJcnDw9Z+fLu2nOYuoIns= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778221606; x=1778826406; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=LzGdwZmkASr175rA3WPJiOvnPfz16Tbby1iJ1/SBFX8=; b=IUeceEbSKHM85nmrnE95NzgSFBD/ABnGzSyqMlib4tNJz2H3EIgIzy2mNNwNLHEHmC vdxE1ynBcoRmmX+TXG84jyWRh0qZaMtcdA5p1ekCsGt0bLTpIKTRbI1wd9/ilEpHOlDi +FSTN5ihNSKSPKIgrdWcFEOJFkc/VzOk8cRciI/psrdbytnXhfGLyPPWgniy9SVOZUgF lrhdjKe33XfzlI32HGsaGWcT39i0FMJmjXXwvArC/B38yK8SD67iLwR8YLBvDrXXyDQN Z0RpAtH8bvUY8kWtc/0do+5aKVSyi7oScL8AfFGjK+hPzkmOif4rwXqV7TfNuFii4ADi n+Rw== X-Gm-Message-State: AOJu0Yy2c2F6JrpsIxoNSvG4s3i5mxeQQ8J9tPXw3jxtG2lXM5XVUa6S phLHx8xPag1gWFHS0Yi9Nj4zG7cwko+lomrWYxMoCSgwFjBxRiaKz5K+4OlXjzrg8qUAfYhtjJg 0TVfs15g= X-Gm-Gg: AeBDieshW6SRkOkLx2dx0ExJJMLsi4xfrGLeV+HnGNx+kYAuI0QiutE39n+t0Fmh2EB CJnqK9juDfizI6M9cs4MMo2LBzCr7SSopKt2fdD8D1X7qhTLnTTUiEN64J8x81c9jnwwpOm6mUM Pa/htDp9cdSYDtS80o6ar+6y74/zA8dWK3J9IQTxJdpWaHQUvvZdF6pOxWpG5HISlJoT1bFem9E pg7h3i5LGrLu8n7oYkvslPhPSZ+qA5KopKH5+QwNL7hPl8juQ1UNFRg96nwIsjaXUgD7eJJVvJi ykGwBEqGEHn2Li3K3j+l5Pni+1Htm/L91cA3e6HQTZi1O4KiN6YcgO+zjWxzl3xuEFiv6xKQyRn ekRnts6MDClCd5PY5QYS+DxWZCyPajyT9SUK83l9QJiMEGbo2vGVrqv1xjNjN/G7UAZOlH6Fhu8 EA+dKOMykFLQTLYu9ratm68+HgY24TepdjuPpGOimJtNhw/nYyKjIiIizgV/JOga13Q1E3ucqPs PuhlXGVaB5Km4ZCYfoHR5w86lw= X-Received: by 2002:a05:600c:8594:b0:485:39b2:a47c with SMTP id 5b1f17b1804b1-48e676b65a9mr13985855e9.25.1778221605861; Thu, 07 May 2026 23:26:45 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e68ec5c49sm15202695e9.11.2026.05.07.23.26.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 23:26:45 -0700 (PDT) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][scarthgap 6/8] inetutils: fix for CVE-2026-32772 Date: Fri, 8 May 2026 08:25:58 +0200 Message-ID: <02b29ddc66956c83af2702bbf0fcd4985c00fa68.1778198884.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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 ; Fri, 08 May 2026 06:26:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236638 From: Hitendra Prajapati Pick patch from [1] also mentioned at NVD report in [2] [1] https://www.openwall.com/lists/oss-security/2026/03/13/1 [2] https://nvd.nist.gov/vuln/detail/CVE-2026-32772 [3] https://cgit.git.savannah.gnu.org/cgit/inetutils.git/patch/?id=d6b8b83aa51616946fd314bc48087312d13c99f8 [4] https://security-tracker.debian.org/tracker/CVE-2026-32772 Signed-off-by: Hitendra Prajapati [YC: NEWS diff in [3] links to [1]] Signed-off-by: Yoann Congal --- .../inetutils/inetutils/CVE-2026-32772.patch | 172 ++++++++++++++++++ .../inetutils/inetutils_2.5.bb | 1 + 2 files changed, 173 insertions(+) create mode 100644 meta/recipes-connectivity/inetutils/inetutils/CVE-2026-32772.patch diff --git a/meta/recipes-connectivity/inetutils/inetutils/CVE-2026-32772.patch b/meta/recipes-connectivity/inetutils/inetutils/CVE-2026-32772.patch new file mode 100644 index 00000000000..cc44f9531a4 --- /dev/null +++ b/meta/recipes-connectivity/inetutils/inetutils/CVE-2026-32772.patch @@ -0,0 +1,172 @@ +From d6b8b83aa51616946fd314bc48087312d13c99f8 Mon Sep 17 00:00:00 2001 +From: Collin Funk +Date: Thu, 26 Mar 2026 22:52:54 -0700 +Subject: telnet: don't leak the value of unexported environment variables + +Patch based on the following OpenBSD commit: + + +* telnet/commands.c (env_getvalue): Add a boolean argument to prevent +prevent unexported variables from being returned. +* telnet/externs.h (env_getvalue): Adjust the function declaration. +* telnet/authenc.c (telnet_getenv): Add the new argument. +* telnet/telnet.c (dooption, gettermname, suboption, env_opt_add) +(telnet): Likewise. + +A telnet server can read a client's environment variables with the +NEW-ENVIRON option and the SEND ENV_USERVAR command. + +This had previously been reported as CVE-2005-0488, but inetutils never +got a fix for it. + +Reported-by: Justin Swartz +Based-on-patch: https://gitlab.com/redhat/centos-stream/rpms/telnet/-/blob/c9s/telnet-0.17-env.patch +Link: https://www.openwall.com/lists/oss-security/2026/03/13/1 + +CVE: CVE-2026-32772 +Upstream-Status: Backport [https://cgit.git.savannah.gnu.org/cgit/inetutils.git/patch/?id=d6b8b83aa51616946fd314bc48087312d13c99f8] +Signed-off-by: Hitendra Prajapati +--- + libtelnet/misc-proto.h | 4 +++- + telnet/authenc.c | 4 ++-- + telnet/commands.c | 5 +++-- + telnet/externs.h | 4 +++- + telnet/telnet.c | 10 +++++----- + 5 files changed, 16 insertions(+), 11 deletions(-) + +diff --git a/libtelnet/misc-proto.h b/libtelnet/misc-proto.h +index abf8316..a836a69 100644 +--- a/libtelnet/misc-proto.h ++++ b/libtelnet/misc-proto.h +@@ -68,6 +68,8 @@ + #ifndef __MISC_PROTO__ + # define __MISC_PROTO__ + ++#include ++ + void auth_encrypt_init (char *, char *, char *, char *, int); + void auth_encrypt_user (char *); + void auth_encrypt_connect (int); +@@ -79,6 +81,6 @@ void printd (unsigned char *, int); + int net_write (unsigned char *, int); + void net_encrypt (void); + int telnet_spin (void); +-char *telnet_getenv (char *); ++char *telnet_getenv (char *, bool); + char *telnet_gets (char *, char *, int, int); + #endif +diff --git a/telnet/authenc.c b/telnet/authenc.c +index b019251..dcd19e8 100644 +--- a/telnet/authenc.c ++++ b/telnet/authenc.c +@@ -91,9 +91,9 @@ telnet_spin () + } + + char * +-telnet_getenv (char *val) ++telnet_getenv (char *val, bool exported_only) + { +- return ((char *) env_getvalue (val)); ++ return ((char *) env_getvalue (val, exported_only)); + } + + char * +diff --git a/telnet/commands.c b/telnet/commands.c +index 2a133c9..d8d0864 100644 +--- a/telnet/commands.c ++++ b/telnet/commands.c +@@ -66,6 +66,7 @@ + #include + #include + ++#include + #include + #include /* LLONG_MAX for Solaris. */ + +@@ -2059,10 +2060,10 @@ env_default (int init, int welldefined) + } + + unsigned char * +-env_getvalue (const char *var) ++env_getvalue (const char *var, bool exported_only) + { + register struct env_lst *ep = env_find (var); +- if (ep) ++ if (ep && (!exported_only || ep->export)) + return (ep->value); + return (NULL); + } +diff --git a/telnet/externs.h b/telnet/externs.h +index f79c6ae..e0d9fbc 100644 +--- a/telnet/externs.h ++++ b/telnet/externs.h +@@ -67,6 +67,7 @@ + # endif + #endif + ++#include + #include + #include + #if defined CRAY && !defined NO_BSD_SETJMP +@@ -331,7 +332,8 @@ env_opt (unsigned char *, int), + env_opt_start (void), + env_opt_start_info (void), env_opt_add (unsigned char *), env_opt_end (int); + +-extern unsigned char *env_default (int, int), *env_getvalue (const char *); ++extern unsigned char *env_default (int, int); ++extern unsigned char *env_getvalue (const char *, bool); + + int dosynch (const char *); + int get_status (const char *); +diff --git a/telnet/telnet.c b/telnet/telnet.c +index 8884b6e..6a5cf8b 100644 +--- a/telnet/telnet.c ++++ b/telnet/telnet.c +@@ -496,7 +496,7 @@ dooption (int option) + #endif + + case TELOPT_XDISPLOC: /* X Display location */ +- if (env_getvalue ("DISPLAY")) ++ if (env_getvalue ("DISPLAY", false)) + new_state_ok = 1; + break; + +@@ -793,7 +793,7 @@ gettermname (void) + resettermname = 0; + if (tnamep && tnamep != unknown) + free (tnamep); +- if ((tname = (char *) env_getvalue ("TERM")) && ++ if ((tname = (char *) env_getvalue ("TERM", false)) && + (init_term (tname, &err) == 0)) + { + tnamep = mklist (termbuf, tname); +@@ -992,7 +992,7 @@ suboption (void) + unsigned char temp[50], *dp; + int len; + +- if ((dp = env_getvalue ("DISPLAY")) == NULL) ++ if ((dp = env_getvalue ("DISPLAY", false)) == NULL) + { + /* + * Something happened, we no longer have a DISPLAY +@@ -1727,7 +1727,7 @@ env_opt_add (register unsigned char *ep) + env_opt_add (ep); + return; + } +- vp = env_getvalue ((char *) ep); ++ vp = env_getvalue ((char *) ep, true); + if (opt_replyp + (vp ? strlen ((char *) vp) : 0) + + strlen ((char *) ep) + 6 > opt_replyend) + { +@@ -2484,7 +2484,7 @@ telnet (char *user) + send_will (TELOPT_LINEMODE, 1); + send_will (TELOPT_NEW_ENVIRON, 1); + send_do (TELOPT_STATUS, 1); +- if (env_getvalue ("DISPLAY")) ++ if (env_getvalue ("DISPLAY", false)) + send_will (TELOPT_XDISPLOC, 1); + if (eight) + tel_enter_binary (eight); +-- +2.50.1 + diff --git a/meta/recipes-connectivity/inetutils/inetutils_2.5.bb b/meta/recipes-connectivity/inetutils/inetutils_2.5.bb index 29ff62379d3..2e1d2a30d7a 100644 --- a/meta/recipes-connectivity/inetutils/inetutils_2.5.bb +++ b/meta/recipes-connectivity/inetutils/inetutils_2.5.bb @@ -22,6 +22,7 @@ SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.xz \ file://CVE-2026-24061-2.patch \ file://CVE-2026-28372.patch \ file://CVE-2026-32746.patch \ + file://CVE-2026-32772.patch \ " inherit autotools gettext update-alternatives texinfo From patchwork Fri May 8 06:25:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 87672 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 8B314CD37AF for ; Fri, 8 May 2026 06:26:56 +0000 (UTC) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7704.1778221608349899346 for ; Thu, 07 May 2026 23:26:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=o1uZsCPP; spf=pass (domain: smile.fr, ip: 209.85.128.46, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4891e5b9c1fso16017695e9.2 for ; Thu, 07 May 2026 23:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1778221606; x=1778826406; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=jHTrFOqq1RhncdqkZIRPovHgTszz+sYh6Lwl4zbNtUs=; b=o1uZsCPP9vTbQLWj1682qg3hcrGvAx5nL4FqH9l1cOFHs3fr50FYuAyTh0/xbx629W uZYKGdWIsbEkEbiVTxwsWJC+BX0n/dvxFf/++ABeubtCb1XcJWri9gzsNx2sZuiQadzo dQ+9MdlzyWc6+oiY/r+2bzS5ACxHZqsEnGDkQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778221606; x=1778826406; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=jHTrFOqq1RhncdqkZIRPovHgTszz+sYh6Lwl4zbNtUs=; b=Aj8WUkYyK/vWtVpVjYbbGS/ehehdD6FrCxV1dfOABE/3nhEz1CSvVyc2QxSF1WYa3V zJ5BBF5OC0+ebEhdBLcLyaHF5tdS0uvR+YtJP42t+atXnj+jP7wEz1yMDgnS8W2k35BY Hc70g1WUMnZ3FPmBkoC418WXwxTyS6i6npVBj/L/oHkBV0f4UWvnkjprtximv3Hcql3Q 5ODY/7oMcnBmOpUZMTZDkEFzhxctc1kBP7tMWCJzyBM6Jv6arWymTjCcfDMfMARmXjxA uXECnCWujCt4Ww+RNdG2O2R5ywX2mzltAbnXnnSU8ywacNZ0yp0bMX58Y4TRL6EdMSmS AYqg== X-Gm-Message-State: AOJu0YyQVizB4K+aTEJ6RoLi3B76vXtqlvMpPjlJ0k/biq3SBCtC0eOU hQW6XMn/vSp9xC2E16veSFUN/U2ZpP4amRscF6QwVWFkxJNdPObj/el4Af8gFFoma4PsSHGNy5y xZ8XM3CM= X-Gm-Gg: AeBDieu+fn/1DeX8T166oYAyD8+nP7LxxqOgfamNEccQVtHdlX8fDuk11cJVDeQry1P Itlw63kDfEuQZ6+8bGi7OcE92yjCIIcYZGAVOQ3ikviqGFqLmBHhuNeTg+2KEyiExKq7JxbbB8r XXSYO1Jb9lJ6YdC+zaUk0Gxyw7uMdxU5+aWilN5VJiWtpY470q+Kj6dSlBHvA1H78ZqUeuH1ts8 USxaxHxeAJ20NcJ83e0g5q/S+3XLYsLkw7sVrmIdAhfanm0MhvzaU8ensDmKaDihPs6dIrvkacu eeHraTSXoS7xYR2hKqpjND/9tgadoOusrd5KwGGHYuf5tioHBMXueBI0U6ZJ/N13TwPUZzVehhP 8F88Du1ZMDqa7I12wKBw3urUDAf4pH1PwTMj2XmSf6CFaW+AsKoXISP2Lh2JoPH+9ZzxKlE+7mt 7pGjSOJsTKsS6/m5PrsPUvyzosXdVzFYUDvgiVtheB7g0fBR00hYbJukofJoZ/A6GfvsyzsSu00 CuUwm9esSIhQTzuIQXdqe/COmI= X-Received: by 2002:a05:600c:17d8:b0:488:a797:f0ac with SMTP id 5b1f17b1804b1-48e51f46abemr102404285e9.28.1778221606476; Thu, 07 May 2026 23:26:46 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e68ec5c49sm15202695e9.11.2026.05.07.23.26.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 23:26:46 -0700 (PDT) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][scarthgap 7/8] devtool: Disable gpg signing when setting up source tree repos Date: Fri, 8 May 2026 08:25:59 +0200 Message-ID: X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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 ; Fri, 08 May 2026 06:26:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236639 From: Moritz Haase This stops 'devtool modify foo' from failing with an error message like ERROR: Execution of 'git -c user.name=\"OpenEmbedded\" -c user.email=\"oe.patch@oe\" commit -q -m "Initial commit from upstream at version 1.90.0"' failed with exit code 128: error: cannot run ssh-keygen: No such file or directory error: fatal: failed to write commit object when GPG signing is enabled in the git configuration. (cherry picked from commit b5c84b07b87eafb4f68f7662b6cf26d8b73e3247) Signed-off-by: Moritz Haase Signed-off-by: Richard Purdie Signed-off-by: Yoann Congal --- scripts/lib/devtool/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py index 6133c1c5b4d..c18887c6ced 100644 --- a/scripts/lib/devtool/__init__.py +++ b/scripts/lib/devtool/__init__.py @@ -202,7 +202,7 @@ def setup_git_repo(repodir, version, devbranch, basetag='devtool-base', d=None): bb.process.run('git add -f -A .', cwd=repodir) commit_cmd = ['git'] oe.patch.GitApplyTree.gitCommandUserOptions(commit_cmd, d=d) - commit_cmd += ['commit', '-q'] + commit_cmd += ['commit', '-q', '--no-gpg-sign'] stdout, _ = bb.process.run('git status --porcelain', cwd=repodir) if not stdout: commit_cmd.append('--allow-empty') From patchwork Fri May 8 06:26:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 87669 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 53532CD3436 for ; Fri, 8 May 2026 06:26:56 +0000 (UTC) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7705.1778221608837526789 for ; Thu, 07 May 2026 23:26:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=tdc3C9Pf; spf=pass (domain: smile.fr, ip: 209.85.128.48, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-48a7fe4f40bso17547575e9.0 for ; Thu, 07 May 2026 23:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1778221607; x=1778826407; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=WT3HkSSu7vqj//UjkgG5lhICEiNqfBVVRUAYL1at7uY=; b=tdc3C9Pf9Mx3eF5jriCnlVZ3mmOo0WJdVjum0MAy/IZDP/bI/9kt6Hrlw6ef7J5F26 CJehP6M9JRSNQ+cdKvq/EiUxxV9XhxSS3fzhpiiV/4x/Z39rb8SWz0q42jffCwUVTcJE iiMYB30fK3mcg7oygU0hff/z74XugHOB27AZs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778221607; x=1778826407; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=WT3HkSSu7vqj//UjkgG5lhICEiNqfBVVRUAYL1at7uY=; b=odyJT/iwqsqi1hnXdWVSqeM0ZCmF+S+5mJMIhh3e1ZE9ZTimQD/+hx2Ka83Cpcm01S QsQ4YVl/yNyzSMN1/zBd3TNFNeB6JCpL3bIdjQw3qpO6cR3Y1/B749Y5HnbRA2GvSZMm Jz5X5HQRWP4vjXm4f+z87a5U8n8poWnoLIcURJg16EYofBpRv4ZaIZsARKI4K+xqB0lE xDA3DZW6p9s/sEMOhoF/vvhJhRJ2gZVLsWlNuhETLoFkZx4JQ1j7G1zwRSWkbH1RjL6R epYS3L9I9zsImgYHidcXAYPVWDGBiVOPjkf/K+8rxYlYapZkmsda1a6vQc5hk0fLmrsk k5dg== X-Gm-Message-State: AOJu0YzHR1JfL6L7hcIm4pWLQWejr/gO02ChXXbqPlTCTD+IdAkGfCel RLTTTvZAFInhKYW24jrjb+SY/4zTlmv5YwOXi5qyNBtYScvNdbVb9OCdta04K69M9+hx/B/9Bkr 2TqSYhnw= X-Gm-Gg: AeBDiet4e4O4wEpIKL/sxnZJVWWTluRmTMDg4S5ULUEETv9AHKzywtrUeKi+d/NaUIr rtXvOQSpnfiz3qFB7J96OLI245U/9pd6zsSY1S7U277Gsi4kyJiRnCx0Wd8fZS3UY8DpF8cENcM GlbPfbsW0I3Y11ZDwJc/FuLX8Kaz6mEYlc9yFjDNCeFYttde7otDvvlIpIR+Ymkg7MFmdYVFdZk pQWg4pqwXeMUjQISOUFTZe71WRu5peoIsN4uI8nXRY3dEolLb4X/DLXrkw+h2SBJdl5hqHWs3Lh +DZacTR5l3gFOI8BG+o6Cmjt/8yXj4aDQz4gvnxoYmmGzCyWfJhf/nsb68zPMFZ9t35WQvOllo1 Rru9SC7/lL8mF6MNw9hvNcBDFsrkng/fiM3uKrqaGSYrPEQBQ7d+q3OC7xw8KSJOC79Rt6w5May HtJMWYQfesu3o2SXOWxFxsVlAa4I4wNxE3nBKcamaIylQJHBSBd9tZn/jPmFQI3jFHAKK9HagKy mvExhI4ZPFHAxloy4E/ibTfWPC1HvNANTNQii9jBKEccK3p X-Received: by 2002:a05:600c:c11c:b0:489:1e8a:90b4 with SMTP id 5b1f17b1804b1-48e51f37212mr126787015e9.21.1778221606923; Thu, 07 May 2026 23:26:46 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e68ec5c49sm15202695e9.11.2026.05.07.23.26.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 23:26:46 -0700 (PDT) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][scarthgap 8/8] glibc: Fix recipe bug that disabled stack protector Date: Fri, 8 May 2026 08:26:00 +0200 Message-ID: <7952d214393b6c5230ba115f63b6f6d245a728bc.1778198884.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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 ; Fri, 08 May 2026 06:26:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236640 From: Ivan Nestlerode Fixes [YOCTO #16265] The glibc recipe is supposed to be building with --enable-stack-protector=strong, but some CACHED_CONFIGVARS values are actually breaking this, causing glibc to be built with no stack protector at all. Remove these CACHED_CONFIGVARS values so that stack protector support is detected properly in do_configure and then enabled properly during do_compile. Full details are here: https://bugzilla.yoctoproject.org/show_bug.cgi?id=16265 Signed-off-by: Ivan Nestlerode Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 43f0602ede37428f3c35cf665bba934b84355240) Signed-off-by: Yoann Congal --- meta/recipes-core/glibc/glibc.inc | 3 --- 1 file changed, 3 deletions(-) diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index b08a70aa46a..225d0539a01 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc @@ -17,9 +17,6 @@ CACHED_CONFIGUREVARS += " \ libc_cv_slibdir=${base_libdir} \ libc_cv_rootsbindir=${base_sbindir} \ libc_cv_localedir=${localedir} \ - libc_cv_ssp_strong=no \ - libc_cv_ssp_all=no \ - libc_cv_ssp=no \ libc_cv_include_x86_isa_level=no \ "