From patchwork Wed Nov 18 15:20:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaipaul Cheernam X-Patchwork-Id: 104770 Received: from OSPPR02CU001.outbound.protection.outlook.com (OSPPR02CU001.outbound.protection.outlook.com [40.107.159.1]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14963.1795015219320867461 for ; Wed, 18 Nov 2026 07:20:20 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@est.tech header.s=selector1 header.b=x3jvg8/O; spf=pass (domain: est.tech, ip: 40.107.159.1, mailfrom: jaipaul.cheernam@est.tech) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=M9wWHnaPX108cIOVIwZO5SWBZJYeHNYyX4N8dJu9DWeUhqyy8PzrSPkKvPtc1XaIIc5lAzxaBE1GLtoz1uhMplW4tjZVXwWSlKLiTSVNl0kYkJQo1n/WpWGng9xAZugpYFcjCOyHpenVSlPM5W35kPl/19E6M+Q6yaRTDSEfM+he3gwei1lf9mBZi/hZAhhwRD1ShWFkYr9uBEJsRoIVT3vBGQR74cM1apJDU2KKtxk6MXc69jHkjdsGhENLKhOp6hVGw306P0XUzz1Ui7kMBP+u4P/8NPdjQFTq/gGSru6wb/uSZ11K/yAZKhsCRLUAqL8gTkuK94Pi1dEeMTItZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mcYbJ7Mc7RGU5ylwYKN24Rn6l9PzBTN9/vRmLdh6EqI=; b=aRjFcyGFRKfqykcBU9SbdOJPgHcYGXTr1AAh5p1e1qHEewCnje5maSkYsWKEVCfcOQ3W5Ev5kwymF3oS2JrMJjKQVs36l+UtG2+nChour6dxWqBVor7ugFSSoymoENg9/+3DkEGdtzKZ5EURZd/0Pb6noP9Ft6AVAqHK40OprLW2wocS5Wbb9WuZByVH3Dh6TFjwEgF2Ujl+2sEUvnxJLJdVT5WB7SkGkef+0F1gDJq4L3eMYtDVP9B4p4hFiSz4bAfpq9JVwZOGiiqPgqozi09sjse+LT6IAuhNVRwlk7iF2tr1kBWkDfUbDOH4AvLmO8piHIXtAEYdXqApN+CsJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=est.tech; dmarc=pass action=none header.from=est.tech; dkim=pass header.d=est.tech; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=est.tech; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mcYbJ7Mc7RGU5ylwYKN24Rn6l9PzBTN9/vRmLdh6EqI=; b=x3jvg8/OXcSWHAB94Kfzb6pLoAyN6ixhdTMev7qaBA9tpyX19WuBriNoJuSL98tGxZskSPX6P2wp7CBONWqx8JT/gJRFgKR+Iy/585n40mYC78qibmE/bVfjBNYNs2RUa9K5OQplaAGDqL/Iul44wtsQEXK8NbP6vcofds6scjeUMxZQ3UdpMcEL97A7zWGl2HR0VieTH4pUcTh/JCkoLROPJWaeHEzIsYiIT/HsQUdGqznq0j9I1S6ikGBTo9s05E0pui87kAXDP0c3Qvy9EQ8MuFLEu77tgSGkmOQBmHCABBvf4FkTq0iaVyDn5NFAUn8f3EzEgzgs4R0Sem6ltg== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=est.tech; Received: from AM6P189MB3107.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6c0::19) by VI6PPF8FC981689.EURP189.PROD.OUTLOOK.COM (2603:10a6:808:1::19f) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.14; Wed, 18 Nov 2026 15:20:15 +0000 Received: from AM6P189MB3107.EURP189.PROD.OUTLOOK.COM ([fe80::bc97:3847:8f02:acb]) by AM6P189MB3107.EURP189.PROD.OUTLOOK.COM ([fe80::bc97:3847:8f02:acb%6]) with mapi id 15.21.0615.013; Wed, 18 Nov 2026 15:20:15 +0000 From: Jaipaul Cheernam To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/3] binutils: Patch CVE-2026-91781 Date: Wed, 18 Nov 2026 16:20:09 +0100 Message-ID: <20261118152011.24213-2-jaipaul.cheernam@est.tech> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20261118152011.24213-1-jaipaul.cheernam@est.tech> References: <20261118152011.24213-1-jaipaul.cheernam@est.tech> X-ClientProxiedBy: LO4P123CA0579.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:276::20) To AM6P189MB3107.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6c0::19) Return-Path: jaipaul.cheernam@est.tech MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6P189MB3107:EE_|VI6PPF8FC981689:EE_ X-MS-Office365-Filtering-Correlation-Id: cfa5c5e3-87be-4adb-cc7a-08df45877247 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|366016|1800799024|376014|6133799003|261009223027099003|18002099003|22082099003|13003099007|261022075727099003|261021123027099003|261021121427099003|261028144727099003|261022105027099003|261102123227099003|56012099006|261026140227099003|10067099003|11063799006; X-Microsoft-Antispam-Message-Info: nbB49dKS8r+fotAnJ9qzsVjsQFPL804T56Uv0mrbDQrG9Qod+iVlRfDXfOlf3G69UpkAtuvU5iMI/IZtiE+2a5VvCh6zqvuiSt6lU9VfJ+GN8eEpRCrRoVnZXDglK+BrdK+LGZZb1M37usodfMXhUdwaHQqwjaxttH9dMkGSkrrplEftLfRv2z46V6cIk1XqQx1kasFncdgb2abwEfSFp+YYChD/NzfOCKcLEX4tBaH7KbxWSYXmSM56atIfOn8UqVVMIY0hLTUOxEsuftMPdq1eoDT9VS4CmJ7emauRb42xLM6eN1LYzYjNoOgA0dCoaCLDRxRREI/U1fEwGeUFrYZk5v6SlwmUXSXIEkSHEBrpb2l4Cz8lEXUUV9UereVsQE05cIJkxXxMPD7IGHzukUYx4ijQOKM2opWOggaTQkezJZqQ4JzOfZ0523PimAA4m1NpeEullbpQAMjrFwlq6cU5V6cjXX/+tFuetgwbU4+QReJOKCYDDoR9Ob+doAz6jqQmaOYsUxgmbHau39oE4i/jPF7gtzPivU5/WwCe+ItcH6IIfhkca6yI7VBAuZtmbR1srue+Q8gI2+Ym1IVFyGSZEaSC3mAtD1FZmOEvrdejiUBRwdqO6knupqQNCbd7 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6P189MB3107.EURP189.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(23010399003)(366016)(1800799024)(376014)(6133799003)(261009223027099003)(18002099003)(22082099003)(13003099007)(261022075727099003)(261021123027099003)(261021121427099003)(261028144727099003)(261022105027099003)(261102123227099003)(56012099006)(261026140227099003)(10067099003)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NNytBYnQMCjZT+ljR8dTYb2/f8K6jSaX9lN9uGswWnt79oWJHjEyMkvRw9HMttBH58zECFr6EibQNxo9kJSbFBf2iG9tliJm8EU1uZv7Y/iF0WUKVXkxRsgOi4zJB8qTuyDqoOJfCttF9+pxyXXDgcyQ5a86zOVImZvn/U4ROgJyJaMr4I2L6P1b0nlj/X+cO6JvDtuH9ki88U3oEI4Ni8P9et9UT+Gq5qwvBwsvFewzZrQ5af/yvvH9q9soZbj9vSvgqEAum8HgYhHoC1MkVQOcBV0laexOJmbNA8fveS7D7ES4g1WWnqXF+chN6GpNsRZCSEX/mhKOF6v3tYpyxHSkbOdVlNnuNTsbZZBOkax5OIv0CLXtgywe9dgFwcOr9i0b6yxWoer652RLcMAJTKjZAaLMAH0UXmLvR3nsDjhxUrZ4SiVbZ1s25fxQvK5Pe6pFEi6Q3rcSHIYWBbkpZ+9UDq+ZtmsUX04f2YxopAdZCnUrfX0m1muMQZW9lKvQcL5gJyGk4t29s403gd8UFQoHcLjon9bok83znX0id59i0bd68mTXxv8+mrI0lhjIQTJQVO809j4Bpx4rUO71khIIVqxytH2X4mnMC53fouEmhPJIOA7fc7hFwUFv5vu17uHBuFqk7qHzguhyRbkEq699i2xE8LtNwboKo+ml65cWlFK0EMq1/YV+oZ75QpvL/aMgF1wCqWkA2KdeO9SpHurFiv6YzOoEHWEVzLr2dKIRveyJva2DsPeErCh/gqH25ia7f6IZHtORi0Fxf3xgHSbDTtlh7sqduDKlrj2kGpmRHeWYFt+xWdlWexJicaTfpSMkG9m9fKHU4yEc9Sh4bG89H1hXtLIwUIlVvKR6l6vqFELhZ6QYmtKK674AAwFW6bEFY91XOlIAs4ngUh/jAKsvrrql64ATgx2ZQ/v2NzrTLbbqHctNXrdGmE42Qr0d3PEBRIGAzfyt7a90iXHZHOjEx3NDlS4y0F9kePaAEXGc+UgAe57mJyI2k3eEuRM+60i7ZF0E6+zIseQUEzjqoCFRUlzOopLoEOMPtaDsPbgNm0hrrRcX8i5f5L+Szj6Cnu+uW3xazCEYsCx/PCQdUVOtg7DMBObRVU586ODFrYrAU5RGFa16xaAhRP5SmuQMO5JrootZ5TDsUIFyc4VG1gwQKSQi0VOCGO2vjnO9ESHGa2Dc4iFyvL4fJDRFpKEWvQk0ugQis+WxBnWqLJoJxU69sDgfjKNJ6x31TMdle3hjUbqxaw4x6her98SsZK0wSfaPf/RL6eMB0zUVBnvp4HZq4RgX4KiiW/7mljM53TRmN7a60WQxtJ0mw09FbWm4jZUwTjwP/QKD43PtZZqG7bZfgrrIKOibPquGSAn3Lroe9VTxB1xUdRadeAwC1SncI5RDU8ie3SacQ5qAtAAIrsZjDZIsmW2N1hl95JWWV3NmsRukRCW6fLld8lWgRSf505s2MPpS8zzORI58P0jDbQb38AeMhKVPfl5/kfRZiLKfsEaKl+50vCgo3YwQgDxNxqQGP24H2zx8LdLdGPLWbibnU+rV2QZettT7H7YULcnhXAO7V2sksPtfm+Ur/J4jwNLq5A9xkWhlMdiCjKrtsooyn2zwlm9m3iit4FnIjbV8bl1r8lKhqQ+3Xxyh8lq6/T6ueUzPRky2Mz69Te+zYY61OfBpdNoYjZQ47skZJxMfg/h7yMb4B9u5xRCw4uADbYgi+WhRPyvhrTnXVMnEyw== X-OriginatorOrg: est.tech X-MS-Exchange-CrossTenant-Network-Message-Id: cfa5c5e3-87be-4adb-cc7a-08df45877247 X-MS-Exchange-CrossTenant-AuthSource: AM6P189MB3107.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2026 15:20:15.1335 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d2585e63-66b9-44b6-a76e-4f4b217d97fd X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0zZXdyQK50NMTWPhxLhN9Jc7Q40TYwQku89sjEPdKwdqCm5PW+GmbED1v6jdK6z0UqUkRD9wAVNqNdqF1BQHRZ32aOkPluCsHfNlTbS8XYs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI6PPF8FC981689 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 18 Nov 2026 15:20:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250558 NVD[1] lists only 2.47, but PoC ([3], attachment 16881) reproduces the SEGV on 2.42 and 2.46 too. So, backported fix from [2] to 2.47 binutils-testsuite summary: binutils: 336 tests passed, 0 expected failures, 5 untested, 7 unsupported. gas: 2,098 tests passed, 0 expected failures, 0 untested, 4 unsupported. ld: 2,710 tests passed, 59 expected failures, 4 untested, 339 unsupported. References: [1] https://nvd.nist.gov/vuln/detail/cve-2026-91781 [2] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7322e9bc30cb282575a701c307851fd3d66fee68 [3] https://sourceware.org/bugzilla/show_bug.cgi?id=34449 Signed-off-by: Jaipaul Cheernam --- .../binutils/binutils-2.47.inc | 1 + .../binutils/binutils/CVE-2026-91781.patch | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2026-91781.patch diff --git a/meta/recipes-devtools/binutils/binutils-2.47.inc b/meta/recipes-devtools/binutils/binutils-2.47.inc index b66d9110fd2..5b57380a48a 100644 --- a/meta/recipes-devtools/binutils/binutils-2.47.inc +++ b/meta/recipes-devtools/binutils/binutils-2.47.inc @@ -38,4 +38,5 @@ SRC_URI = "\ file://0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \ file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \ file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \ + file://CVE-2026-91781.patch \ " diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2026-91781.patch b/meta/recipes-devtools/binutils/binutils/CVE-2026-91781.patch new file mode 100644 index 00000000000..ff14147097c --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2026-91781.patch @@ -0,0 +1,36 @@ +From 03e5dab2f6f1b3ccc151722f189642614fa09f13 Mon Sep 17 00:00:00 2001 +From: "H.J. Lu" +Date: Thu, 30 Jul 2026 15:47:05 +0800 +Subject: [PATCH] x86-64: Return SHN_COMMON on non-ELF input + +elf_x86_64_common_definition segfaults on PE/x86-64 input. Return +SHN_COMMON on non-ELF input. Linker now gets assertion fail at +bfd/coffgen.c:575, instead of getting segfault. + + PR ld/34449 + * elf64-x86-64.c (elf_x86_64_common_definition): Return + SHN_COMMON on non-ELF input. + +Signed-off-by: H.J. Lu + +CVE: CVE-2026-91781 +Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7322e9bc30cb282575a701c307851fd3d66fee68] +Signed-off-by: Jaipaul Cheernam +--- + bfd/elf64-x86-64.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c +index abf97b2dde5..0d1ef1d38bc 100644 +--- a/bfd/elf64-x86-64.c ++++ b/bfd/elf64-x86-64.c +@@ -5518,7 +5518,8 @@ elf_x86_64_common_definition (Elf_Internal_Sym *sym) + static unsigned int + elf_x86_64_common_section_index (asection *sec) + { +- if ((elf_section_flags (sec) & SHF_X86_64_LARGE) == 0) ++ if (bfd_get_flavour (sec->owner) != bfd_target_elf_flavour ++ || (elf_section_flags (sec) & SHF_X86_64_LARGE) == 0) + return SHN_COMMON; + else + return SHN_X86_64_LCOMMON; From patchwork Wed Nov 18 15:20:10 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaipaul Cheernam X-Patchwork-Id: 104771 Received: from OSPPR02CU001.outbound.protection.outlook.com (OSPPR02CU001.outbound.protection.outlook.com [40.107.159.1]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14963.1795015219320867461 for ; Wed, 18 Nov 2026 07:20:22 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@est.tech header.s=selector1 header.b=DqFqWcl1; spf=pass (domain: est.tech, ip: 40.107.159.1, mailfrom: jaipaul.cheernam@est.tech) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hhC+QesXnS46LBAOF8iuBdpo05ca01UxItaod/5HaXrAKk/4y3O4ma6xO47rbb4eZBoUSpudW1dd4YL8c5idi7gOYZJWrBk8yAOKzpWnU0VeI9LKNUbAwkVvGTwjI/LLtYb4N7tC8tmnwdiim/rdNZ8wWZKNGe5KzgMCiRU2o97lflIozTFIHu/kY4Sf/d6G/dxglkqVExcRc2H4xGfbTStuveji+MqnMruyfjN4P2Eqa+3fEbp5UcaTkV/JUKCOVPzUjOXP9aFurBqP5xqR+/7HhSfSvW559T6+C6t/yRx6oSAtvNdBE+A06aT8qjcDEObBWMj3IrYgDPOcglJDnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=euGraZPUlidT9v56Oo7YhMD3FCOOuQDwZ5Qj3CxwN5s=; b=S18bA4osxSHwvXT2/KpIYxvCtxL3uiXjzDxKaO6nk+YTVxK8xHFx2sAKQUDP6eosyp1cpbHDlVrE82N5QC9k+ds0Yzl1tO37cHjN0N5rJSIBIhlXZMjM+FyfF9jD5Gp9xq4zjdFB9crpB6DU1cm1ws14ob4L1CIS99j/6YoF1Xai2B/6hRGJ4osNThK2x9gJpAYC5eTzy9Xvs2NtKj/jtiMtYNYMeh/uH45NZrxzHjmW3DlpD2DW3oG95PzVO47RFVsaQDjdNcfifCpQawGhYplYTDyn1UDDSnOcCu21FQEDXhbzNmKWlh9wrOx4qanufjUvs8/T0PZ2AYJXM1YFKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=est.tech; dmarc=pass action=none header.from=est.tech; dkim=pass header.d=est.tech; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=est.tech; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=euGraZPUlidT9v56Oo7YhMD3FCOOuQDwZ5Qj3CxwN5s=; b=DqFqWcl1rGgiS0psT+/Wkurm5nNu8C4TPa202GFer0gccKqVtODGx8xRoESN2pfqgwp6Ghg3YjYWghZByAQL97GVM2q167AQyAA4ckmSZyRpnRU0pGQMkXsRxU/Gz5U98pgGUEC2TIc3E4UdVoVEFXwcKxwNozTpH/SNMfNbZ7BYr/vsv+og3zDSWZrhWxe4XHnLzxL3KER/WnrmZR6suFdlCBWJUuWIkMd1+Fnk/Ip/l7z3S/pK2nIELFRJRNNapuYBtkUjd7ajYsU8DaL2lLGCcgGhI91x/jYFu06eBDx8Vbe9xv6Ui3PywXlmbK4P8WJM/NuaAMCG66K6skNM/w== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=est.tech; Received: from AM6P189MB3107.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6c0::19) by VI6PPF8FC981689.EURP189.PROD.OUTLOOK.COM (2603:10a6:808:1::19f) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.14; Wed, 18 Nov 2026 15:20:16 +0000 Received: from AM6P189MB3107.EURP189.PROD.OUTLOOK.COM ([fe80::bc97:3847:8f02:acb]) by AM6P189MB3107.EURP189.PROD.OUTLOOK.COM ([fe80::bc97:3847:8f02:acb%6]) with mapi id 15.21.0615.013; Wed, 18 Nov 2026 15:20:16 +0000 From: Jaipaul Cheernam To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/3] binutils: Patch for CVE-2026-90828 Date: Wed, 18 Nov 2026 16:20:10 +0100 Message-ID: <20261118152011.24213-3-jaipaul.cheernam@est.tech> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20261118152011.24213-1-jaipaul.cheernam@est.tech> References: <20261118152011.24213-1-jaipaul.cheernam@est.tech> X-ClientProxiedBy: LO4P123CA0404.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:189::13) To AM6P189MB3107.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6c0::19) Return-Path: jaipaul.cheernam@est.tech MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6P189MB3107:EE_|VI6PPF8FC981689:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c3b8668-44c1-4e14-c706-08df45877341 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|366016|1800799024|376014|6133799003|261009223027099003|18002099003|22082099003|3023799007|13003099007|261026121527099003|261022075727099003|261021123027099003|261021121427099003|261028144727099003|261022105027099003|261102123227099003|56012099006|261026140227099003|10067099003|11063799006; X-Microsoft-Antispam-Message-Info: DOjYe2BgXyAHDyGncWfqAZJ5LNyRIsmn84IcfHCKg28QKzcfPTM3fdWQaDY9SIOiW9e2cDwjfJ3NlHcUhCf/GiXZ82nqTTOem1OEmfcINVzMilTmnqLAFuqPwWxxCQVHnzq1C1oii8f+vmLr/l8RgLhSl1jnYDpUnYp+tqBSBriC8vGSAiKKlAuAgVJhJn4aB7z0fOvOxCUjB8BfdDZzGtlMWfT/8+UR1FEf43GIRrKCOu+kjXwbURHOUjMg4OyEBPdpS9elwdOZnrU0Fg7AIiCumVj6BTE8bjD0loecRoUmBoADRgdoIsFVmBztLS/N3XnnCP62DhngYyeVPzBN6GUH1t2wbNXAIkdCqC/DDwQJEcGxxL3jN+XG02CKfWlvilzxfhxP6mkC3udiRWJv5gTqOeFQQ77YvzRA9azWgxVlW7Il68iYdFZD5LBsQ5EMT0KhwizcS2r/bJjAmOMf3Ayi8KEnodBtdZCqBzpDVRUXPTnYO/6jWUVcoexbfcsGnh5DsofvDIOWU67lF8a88rPLLp64P7Wr0fw95zj33JDumjWfg4+ja45MkPafPRBa9y2vMZFNZSr+oYKoQ4SvRUNe0BlIJLvO7hbOk+9dWpfq3bFMMHj+WaM/ktsNTQdz X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6P189MB3107.EURP189.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(23010399003)(366016)(1800799024)(376014)(6133799003)(261009223027099003)(18002099003)(22082099003)(3023799007)(13003099007)(261026121527099003)(261022075727099003)(261021123027099003)(261021121427099003)(261028144727099003)(261022105027099003)(261102123227099003)(56012099006)(261026140227099003)(10067099003)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2Jec9G20Z98MDZuaSmq8cJiGcsyMFjhxmsyscyAIGZNDw2TCndeR9qicDhNp2uA8TascVQRTuZr73ZxETu2w48QnyDrEhD5c3o/oGSc78+0JfsgSDUIoek1ihdA1XRht44AOkMS+8Yrm5Axtjmjwuq53GHGIE6BZKaiqT27QlXWjiQ+Q1odrBZgabSRS1ma/30aNOlpPJKFnctbP40l/Lq2cX2QICeNmj1c+RbiEEY40qfZaJMw/0v3N/wxXVoHcnp2gGdFPDMvBjvUck6I3+JosnoRjATep96ld8HIqBuRdSGourVJLl560x43PDkjneVOQuqeVfgCQ4gBfwsC1lwqzuzetyXciF7uMloRxXNj8BOQsPyiPKpRbH1DaweU/Z54CPLJrR5eKw2SNf4cL3laKlYHlaM15eThcqEFUCfzrBNKtCIpktWgSkE+ChIxc6JPYuxAgNXLlfPcGWtAo2+/0yxHD75FlybmRg9fIRatG5zC02Io8zBzfWH8yilCx/vATnm8UDkIuDbUPr8fyJBqz0mC0l/Pzefhs9cMrf79IvwEJ/hI+YK95Eda9aFb3deUJno8r9N/uerM35Tf//9O+iFpBEAPdALfMfZdj7vQEv3XW9fIM2NcNbnPhYwAls0UQIvPVcQnfiAJgiMSeVTJADZvOP7+NbbsTYsPKL15hpLYSGr6b8sAQ8t9YYnT5j82CQHUlXny1+SmJbhGY+1JZbwfxYJSdkc/PAbtkHMkjpUGFJw7tFL/rQ541HbGE+iFb4hWQKi8QvlfchEQIfHw5E1a1rPJB3Fc3zjJJ4p9RRH/kdyxSkpz9s3UCTaVLSp1Zodf0WcJa8C0s566axhy9tdnfgI38+zSMUrxSiB5Q90qT5TOKn3pqN0oZPU7aljzDGwbqIlC/wvOh9QYIDqJxUkZbxukCLZGWmaOpOnuyWvnxfdN3QBMbls9rq4PTPTcTQ6B9q3jKN4QEFIfSY9NFV/XShXtSQE05g5ybuPc+68EgyFbR57slE7i7dGQXUmaP0I8o5g40R5phHpkNMxaQJ+FG1ScOvICE9lTrd94/68SHECr+lgeAqB1zDPNiwMu+76FOiIwkXNbwOfyLPWWV1PSC/44o1XF+jDWNorXIwxxgNN2rIVu8XJfQFF34MmqZhiq9OvOnGHfVopdrbTfMj8ls7ewzZlzA7pH9lqmXgS68G8/1Ko/B9yf7OJweljWzek/GF3Dc+Z3cz3D+hJwiir+veQpQXOIJwGv53WWfwjnn0Jf1xmlWrwDQhnvcQM/nUF0tKwhi8kAStDSfCmmtd7h4ylVDKoQayCVCLATaXMN+u75iEXVezc7Y7ulQ0cownu69Td1h6BklyLtEJ4IPdRyqHCImF4Nni9kaEl9YCS3BoBs+IhYcJFN9WeEmCO46RBb2x7CKm9kbOq3/z5+xc2AIq8q83oYMPWgEfUbp7hLMoLTtPlSR3sDgn3Io7UV+iH6pxhr3/KsQJbG9vWDZwQQkCSN1vX6pvnu46NVhvDbStD3KM2Tobx5LzOwXrsefzpSm7s9vkiBO07z8hrC7tviDk+j+mtwO+C8uMjRY75K9x2jRaMHmtUgNF41NCxWqYN9MuZgWEsEKSyBfZJMUbcv8oFV1qJ4P6AOPu1sFyjX5BwNpH6i053L0LtP0rXwA8wefqiD3INiK06qGQKrggtcX3aAYAKdaGcQ8YUMkvZKCLvpLSz4BuXJu/txBz4O1XUQoxXlZSgqil2oYOQ== X-OriginatorOrg: est.tech X-MS-Exchange-CrossTenant-Network-Message-Id: 0c3b8668-44c1-4e14-c706-08df45877341 X-MS-Exchange-CrossTenant-AuthSource: AM6P189MB3107.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2026 15:20:16.7673 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d2585e63-66b9-44b6-a76e-4f4b217d97fd X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nbKG7ogIETEpwf7ZFi2JrmXlXVNTOzl23C5jIBdvC1k9dkw2F1TQzAqoiP7QzUldLaxwUMd8neTwqtSDEjptlYzjatFNRZhYzHUB0c4+jAk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI6PPF8FC981689 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 18 Nov 2026 15:20:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250559 backport [3] fix mentioned in [2] for CVE [1] References: [1] https://nvd.nist.gov/vuln/detail/cve-2026-90828 [2] https://sourceware.org/bugzilla/show_bug.cgi?id=34450 [3] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=123e4a5eab2db300b44288dcc1a29c903f9622f9 Signed-off-by: Jaipaul Cheernam --- .../binutils/binutils-2.47.inc | 1 + .../binutils/binutils/CVE-2026-90828.patch | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2026-90828.patch diff --git a/meta/recipes-devtools/binutils/binutils-2.47.inc b/meta/recipes-devtools/binutils/binutils-2.47.inc index 5b57380a48a..2807ab84e8b 100644 --- a/meta/recipes-devtools/binutils/binutils-2.47.inc +++ b/meta/recipes-devtools/binutils/binutils-2.47.inc @@ -39,4 +39,5 @@ SRC_URI = "\ file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \ file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \ file://CVE-2026-91781.patch \ + file://CVE-2026-90828.patch \ " diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2026-90828.patch b/meta/recipes-devtools/binutils/binutils/CVE-2026-90828.patch new file mode 100644 index 00000000000..a84e1fb8472 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2026-90828.patch @@ -0,0 +1,29 @@ +From a8d25ed8b1ac9d8e47fcce90cb901bacf863074c Mon Sep 17 00:00:00 2001 +From: Alan Modra +Date: Tue, 22 Sep 2026 21:27:03 +0930 +Subject: [PATCH] PR 34450 SEGV in elf_orphan_compatible + +Don't trust that SHF_LINK_ORDER set means linked_to is non-NULL. + + * ldelf.c (elf_orphan_compatible): Sanity check linked_to before + dereferencing. + +CVE: CVE-2026-90828 +Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=123e4a5eab2db300b44288dcc1a29c903f9622f9] +Signed-off-by: Jaipaul Cheernam +--- + ld/ldelf.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/ld/ldelf.c b/ld/ldelf.c +index 3d36e033b0c..50eb8d18799 100644 +--- a/ld/ldelf.c ++++ b/ld/ldelf.c +@@ -2087,6 +2087,7 @@ elf_orphan_compatible (asection *in, asection *out) + || ((elf_section_flags (in) & SHF_LINK_ORDER) != 0 + && (elf_section_flags (out) & SHF_LINK_ORDER) != 0 + && elf_linked_to_section (in) != NULL ++ && elf_linked_to_section (out) != NULL + && (elf_linked_to_section (in)->output_section + != elf_linked_to_section (out)->output_section)) + || ((elf_section_flags (out) ^ elf_section_flags (in)) From patchwork Wed Nov 18 15:20:11 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaipaul Cheernam X-Patchwork-Id: 104772 Received: from OSPPR02CU001.outbound.protection.outlook.com (OSPPR02CU001.outbound.protection.outlook.com [40.107.159.1]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14963.1795015219320867461 for ; Wed, 18 Nov 2026 07:20:23 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@est.tech header.s=selector1 header.b=XV+bGqGI; spf=pass (domain: est.tech, ip: 40.107.159.1, mailfrom: jaipaul.cheernam@est.tech) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dgXWgocNlMFrPrOayGTNIqWEMy5sGrN04vdijxskT+8GcOfEc3Hr8SqAqJTCPsFSm0FzrTj5HHgBAQINpSl2yXcWSxAXMYHJVhgr7fI0oKtboArkwNlX52s0VR+Jq5DsvoVjY/3gpocs0cXXjyoTWu3Kup9geX4XvBAjjLyEMx1KyUqjfEfPaPS/67VKEYXteNWTIBG4mNL7Uy4f5YuuPxRMjmznZ705kuY3y5vq22a6u9mAR/vdmT31f67Ep/ME5/qUwbsSAubNwVynmVGGIGzDTscVJ1sf9HxVRSNEdoPiTQpLvMtkcF3Ieg+TCvKTwpl2LS3ay5pwy20rvbYZFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bNjMyHvjJm8kAK7BEU7LI2EzWvSCEVOkgeG23cGFj2s=; b=HEfYQQQVNYbRn/iVfZxuF+ISr0oc1zU6BbfLlsPUKkJ/NNCcLV2KevQ4JvpgsM9BkWPETusM5Ks00OqYXde7LzIiVhQEO/7ZXW9cykr1eht64tVW4Cx2Q7HOk+CXfi1xrGKA7YtfVm0aVLxhIWixMWCfGB+YS+yDZQ9FvpLazesnaWxZmXWAQeWCfKxxX7/BT5+0S5Lgc3XZLfHLbx2dsaSvOJrrCr8rhgYg7tkEP2uhp/YMeOJOsG3H6tFoccn3VducL9LPU0rF14ZJnatM0CY6tA9XH+1DanMTKlHeGmMMzwQaKXoKeG6LFCMLIN33a6Fd3oaMfDM+SSa0hMc3Gg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=est.tech; dmarc=pass action=none header.from=est.tech; dkim=pass header.d=est.tech; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=est.tech; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bNjMyHvjJm8kAK7BEU7LI2EzWvSCEVOkgeG23cGFj2s=; b=XV+bGqGIOzIb/37zTcLMwCc2E+ftIWmN5phdxptiiOobc6TryrCCmwPRJu3C+sEBFksSiiuYHeL78Q3UpXbiX14AJdRywt2mo4gHrX8U1qFkhnbLhhPJZ6HBg5Vl1lB0cbSph4mARFaWB1x8AHccxLAf+nWIe7d75A7GpA/tUKid06CMIWLAgsIYknpNTR/m53TIncXKly6n0eflfkwrB8MhibXpX7Ho+OZSnjfrJzaY7LlgQ7GuK62fQAA09ukBiAXhdb//ydUFcJ2s0P85Qf20UX/dFu0qUnxsKdOQmfmwQNDNX07WYPrZZTC0zFK1N8sqNeqIWIaLkGgrFP6qfw== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=est.tech; Received: from AM6P189MB3107.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6c0::19) by VI6PPF8FC981689.EURP189.PROD.OUTLOOK.COM (2603:10a6:808:1::19f) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.14; Wed, 18 Nov 2026 15:20:18 +0000 Received: from AM6P189MB3107.EURP189.PROD.OUTLOOK.COM ([fe80::bc97:3847:8f02:acb]) by AM6P189MB3107.EURP189.PROD.OUTLOOK.COM ([fe80::bc97:3847:8f02:acb%6]) with mapi id 15.21.0615.013; Wed, 18 Nov 2026 15:20:18 +0000 From: Jaipaul Cheernam To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/3] binutils: Patch for CVE-2026-91782 Date: Wed, 18 Nov 2026 16:20:11 +0100 Message-ID: <20261118152011.24213-4-jaipaul.cheernam@est.tech> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20261118152011.24213-1-jaipaul.cheernam@est.tech> References: <20261118152011.24213-1-jaipaul.cheernam@est.tech> X-ClientProxiedBy: LO4P123CA0321.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:197::20) To AM6P189MB3107.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6c0::19) Return-Path: jaipaul.cheernam@est.tech MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6P189MB3107:EE_|VI6PPF8FC981689:EE_ X-MS-Office365-Filtering-Correlation-Id: 979f697b-5f1b-4e0b-089a-08df45877432 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|366016|1800799024|376014|6133799003|261009223027099003|18002099003|22082099003|3023799007|13003099007|261026130827099003|261026121527099003|261022075727099003|261026135527099003|261021133027099003|261021123027099003|261021135927099003|261021121427099003|261021130227099003|261028144727099003|261022115727099003|261022113327099003|261022105027099003|261102123227099003|56012099006|261026140227099003|10067099003|5023799004|11063799006; X-Microsoft-Antispam-Message-Info: Y6LyvaOIP1nZ/7P9T4FvuboUPGWcko/r2usVRVHv1db1+hkk6yUyAmCCixXnLM4h3dVHT8Xppee84TGRfmgpsSp+mRM2VYqXVZ6MYgWSQakvnLiEDGCF6AM6IzoBECH2l+fOVue0srBAEWu7tDvxETCyHMVuR9J6YgRjjaCpkFXVTtpRgzzZg7/PnA2QCv44Y1jG3UtViCIk+Km820Trn8APHAhaFvCPdo6+aXJMlWAld71/zPMJrbRkbKJ76YonCpzfVXZs5f1ra0hssDoqL193ATsXKhoQyfdcbOIezsgWJG8VbVOAN3WuMLILz2dykOQA3P0OepUqIiTNj0p2A5QKUraQTxvYFCg6tfFQtKQsklxbWOfyeguP4jOnSpvameKm6DsoZW1gi82EVbO+w3fPoy7YvxEPQT7bqIOIsGrOWnKX2gTvVlrd7ovKYjoLwgYeJZ21CT27GlmAtT7EOV2Of5q8Dq80xtTsfq05Su/NZ/IV/+XT2Nwmnv4DYQMiWuFRxYgR5wHQfAi4egcuIcfPtHYdV6EM7U3i1SNvIVaYVn0OChZaCUAbI1cGHYkADbHawiVp98hQ0LX4t0tn7458hNFWqMTVN2SXIBKXxzo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6P189MB3107.EURP189.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(23010399003)(366016)(1800799024)(376014)(6133799003)(261009223027099003)(18002099003)(22082099003)(3023799007)(13003099007)(261026130827099003)(261026121527099003)(261022075727099003)(261026135527099003)(261021133027099003)(261021123027099003)(261021135927099003)(261021121427099003)(261021130227099003)(261028144727099003)(261022115727099003)(261022113327099003)(261022105027099003)(261102123227099003)(56012099006)(261026140227099003)(10067099003)(5023799004)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qqSfx0SVN6gqFL3WBz0SslkPtC7lRrcmYCY3ohl1RquDCgUljYEgJMcw+eSwiycvW4vo8tmO/9iY7adxxGFesof+e3UNV4ax8ZqVzbclslYqQA1tO9xflT6D0Hx6GfFhp1xNqbvKzJTufas4V40LW0tlJl1OE2viet/8CQIU/qMiLwI4CF1EdwYOokPs2fsKVZsLmBWnZ7G4kqjiaxYlnjt5cvFmfYqZknsprM0pp/+lnwWnGU1c0O2s0lOPrISLLdgR+dE9vTjkb9sfBvj5pg6LIHg7TE0AYrqFkYiDsz5LuIRL0fYlKpeTlZHRfxa3tDkUPZ4hvDIsP3NvuwBOiEAj78VYnm7M3jhWSnJVN6ipEKUXDF/UTx5bdq/dGUZLEztBUq8ZU0axQDPIR70KfqKfIbIXUWOt6SFiAu+57e9XEFZtd0UApCSrr9F1JIR6RU6NPILC4btITFG0/mmy5RO5Iin2pkrpvaWv+QPrlTXvGeCmYXAIvTBb3LDSDWLU161ih/uxLxCvHI+LVr1TSVpUWqXG//TQ17jZwMUlSXoV2rHuZqF5v4erpHMuhsWVBz5KZcZcSzLFvu3zn14yN18VVlmDMUO4Py09liw0OaUCsJbAW6ZN8WWUyv/5e/PzK/qoUV5psLJsr2xzKFN0KhzmiSmua8JVrWqnRzqImI20QWNIDCgMnzH6KkP2/g95kaIN8rbdtHXlRzflQ6puL0q9AkV6E31CEXk/MD0tGzrRLMHdPfsrDjXIpT+yqtWEzBFLmUEUyvWAt9d28s7/KRBPoHyOhcdTV0K4oWd+uG1+r5ER3CgZvbJWHXSJzE7ApDtflb8cZyyoJ15bJcv2oUyxUcMPCGZMif6autNjuzyVnRTv8Vk7MeILQLb2FPu8zqhpFv46T9EAAEysTHe/ujrntXfY02VvrU+Mskmu7vkJPT24s6Douvay7EYtVACgfn5k/vVFlqHI//x6iYZ7Vb+EcY4daFqlEB8AMMj77HOI8v6GMFGdwEJs3mcLf3mBmmmZTRODCglBFKkSmOfyHW3Y8/AxWIRI+sIFR4Fcjc/9WPQmGJ8uFTOEAaqrsLzgs0VBYae8WTNHZPZIxrJK0+oT88M8ty9b6spExo/FVRRirQKG4YzC39VtBAJw/1I7gk1x04rhA8ZV/EJ+51Gs37HLK4WXJDVPDXmCTsdu1o1yOxOldPoMCppg/KXIbhhm6zNzk9SKrBBPBr5PomV1hga+RMp9XSllTVgb28fkSWdfwYJzrIJUS1Q4fKr4qiapjyKOXHUgcOxG1lea5MFbYWb4bJaslrriISQhyoldqTkzIibjgoDpRoL1+F2vRX3uZNeqmeemyhcpt+rLw40IfbAWP4dR9A2zSNbnEEFpRowVMmq5b+aAmeazaL3IHI1JMrqedhr438zEYAi6JjrFQk7Xmd2ilVxcZgojMZIQ55fP0hu8DgLisg1W4JGrgGpXeAeQOOY6vdQLHllZVlLDA80kr7VlgHsi1g6EtjqpDP4FfVGr3AVIg6nTLZdzJE7/JB/Bt8P6tCiTvWwHc8gfXfyFNoK9HodblXJZjtorObtKd2EzfIe6Oeocr+A7pr9E8rVndYHsySo2QARhOEpif+uCHdHqI3FqsnKL49ve2QkLdlu9R2MreD8aNjiBLWcNRpjDN5P5nMxeEck9GUyQTsK9Zff5k94DmL3Skgtl43LkUnQ25lYkgQtWhSSH0jePh26egJsJj/BXmCMXlN/Kjg== X-OriginatorOrg: est.tech X-MS-Exchange-CrossTenant-Network-Message-Id: 979f697b-5f1b-4e0b-089a-08df45877432 X-MS-Exchange-CrossTenant-AuthSource: AM6P189MB3107.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2026 15:20:18.3983 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d2585e63-66b9-44b6-a76e-4f4b217d97fd X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KMyGy03bl+OxMJffe5hgTR3W9v1exxCHloMZOOA9+rDXxDcJ9EF+d4mxRK/2WDR8/80RDpCwrZONeUeYyNVoIz5J6ZofAk95WW1uW8vPe5U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI6PPF8FC981689 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 18 Nov 2026 15:20:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250560 NVD [1] points 5 commits (mentioned below from [2] to [6]) as fix for this CVE [1] https://nvd.nist.gov/vuln/detail/cve-2026-91782 [2] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d1268210b6f6eddd267a4ebe4b7d36b802af628d [3] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=471130b39c03623ec6d78ece377ff4da3f6bfe7b [4] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=283d3198beda5110a8417fd09b336a34bbd2705c [5] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0a84e5602163e9f95a6f137ced28aff0507ce790 [6] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a692a633d407995a5ce87e84a0b1032e9ac51360 Signed-off-by: Jaipaul Cheernam --- .../binutils/binutils-2.47.inc | 5 + .../binutils/binutils/CVE-2026-91782-1.patch | 80 ++++ .../binutils/binutils/CVE-2026-91782-2.patch | 424 ++++++++++++++++++ .../binutils/binutils/CVE-2026-91782-3.patch | 130 ++++++ .../binutils/binutils/CVE-2026-91782-4.patch | 50 +++ .../binutils/binutils/CVE-2026-91782-5.patch | 65 +++ 6 files changed, 754 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2026-91782-1.patch create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2026-91782-2.patch create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2026-91782-3.patch create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2026-91782-4.patch create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2026-91782-5.patch diff --git a/meta/recipes-devtools/binutils/binutils-2.47.inc b/meta/recipes-devtools/binutils/binutils-2.47.inc index 2807ab84e8b..9b91680cbde 100644 --- a/meta/recipes-devtools/binutils/binutils-2.47.inc +++ b/meta/recipes-devtools/binutils/binutils-2.47.inc @@ -40,4 +40,9 @@ SRC_URI = "\ file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \ file://CVE-2026-91781.patch \ file://CVE-2026-90828.patch \ + file://CVE-2026-91782-1.patch \ + file://CVE-2026-91782-2.patch \ + file://CVE-2026-91782-3.patch \ + file://CVE-2026-91782-4.patch \ + file://CVE-2026-91782-5.patch \ " diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-1.patch b/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-1.patch new file mode 100644 index 00000000000..0572c727a14 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-1.patch @@ -0,0 +1,80 @@ +From 1ae6ab7e4bea886349adda9972d73e123279e206 Mon Sep 17 00:00:00 2001 +From: "H.J. Lu" +Date: Thu, 30 Jul 2026 15:10:36 +0800 +Subject: [PATCH 1/5] ld: Don't define section symbols for excluded sections + +When the SEC_EXCLUDE bit is set on a section, for example, sections with +the SHF_EXCLUDE flag bit set in ELF input, the contents of the section +are excluded by the linker for non-relocatable output. Define __start, +__stop, .startof. and .sizeof. symbols for relocatable link or if the +SEC_EXCLUDE bit on the section is cleared. + + PR ld/34448 + * ldlang.c (lang_init_start_stop): Call lang_define_start_stop + for relocatable link or if the SEC_EXCLUDE bit on the section + is cleared. + +Signed-off-by: H.J. Lu + +CVE: CVE-2026-91782 +Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d1268210b6f6eddd267a4ebe4b7d36b802af628d] + +Signed-off-by: Jaipaul Cheernam +--- + ld/ldlang.c | 39 +++++++++++++++++++++------------------ + 1 file changed, 21 insertions(+), 18 deletions(-) + +diff --git a/ld/ldlang.c b/ld/ldlang.c +index b04ba113aaa..886c49a1861 100644 +--- a/ld/ldlang.c ++++ b/ld/ldlang.c +@@ -7283,28 +7283,31 @@ lang_init_start_stop (void) + + for (abfd = link_info.input_bfds; abfd != NULL; abfd = abfd->link.next) + for (s = abfd->sections; s != NULL; s = s->next) +- { +- const char *ps; +- const char *secname = s->name; ++ if (bfd_link_relocatable (&link_info) ++ || (s->flags & SEC_EXCLUDE) == 0) ++ { ++ const char *ps; ++ const char *secname = s->name; + +- for (ps = secname; *ps != '\0'; ps++) +- if (!ISALNUM ((unsigned char) *ps) && *ps != '_') +- break; +- if (*ps == '\0') +- { +- char *symbol = (char *) xmalloc (10 + strlen (secname)); ++ for (ps = secname; *ps != '\0'; ps++) ++ if (!ISALNUM ((unsigned char) *ps) && *ps != '_') ++ break; ++ if (*ps == '\0') ++ { ++ char *symbol = (char *) xmalloc (10 + strlen (secname)); + +- symbol[0] = leading_char; +- sprintf (symbol + (leading_char != 0), "__start_%s", secname); +- lang_define_start_stop (symbol, s); ++ symbol[0] = leading_char; ++ sprintf (symbol + (leading_char != 0), "__start_%s", ++ secname); ++ lang_define_start_stop (symbol, s); + +- symbol[1] = leading_char; +- memcpy (symbol + 1 + (leading_char != 0), "__stop", 6); +- lang_define_start_stop (symbol + 1, s); ++ symbol[1] = leading_char; ++ memcpy (symbol + 1 + (leading_char != 0), "__stop", 6); ++ lang_define_start_stop (symbol + 1, s); + +- free (symbol); +- } +- } ++ free (symbol); ++ } ++ } + } + + /* Iterate over start_stop_syms. */ diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-2.patch b/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-2.patch new file mode 100644 index 00000000000..9a4dda6da61 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-2.patch @@ -0,0 +1,424 @@ +From 768f1c1e85bd8e9fc621914a9f5fdddf2eb6fb07 Mon Sep 17 00:00:00 2001 +From: "H.J. Lu" +Date: Thu, 30 Jul 2026 13:43:56 +0800 +Subject: [PATCH 2/5] x86: Check invalid GOT/PLT/TLS relocations + +1. Since non-alloc sections aren't checked for TLS, GOT and PLT usages, +relocate_section should issue error for TLS, GOT and PLT relocations in +non-alloc and non-debugging sections. +2. Since TLS relocations must be against thread local symbols, scan_relocs +should issue an error for TLS relocation against non-thread local symbol. + + PR ld/34444 + PR ld/34448 + * elf32-i386.c (elf_i386_tls_transition): Replace + _bfd_x86_elf_link_report_tls_invalid_section_error with + _bfd_x86_elf_link_report_error. + (elf_i386_scan_relocs): Issue an error for TLS relocation against + non-thread local symbol. + (elf_i386_relocate_section): Issue error for TLS, GOT and PLT + relocations in non-alloc and non-debugging sections. + * elf64-x86-64.c (elf_x86_64_tls_transition): Replace + _bfd_x86_elf_link_report_tls_invalid_section_error with + _bfd_x86_elf_link_report_error. + (elf_x86_64_scan_relocs): Issue an error for TLS relocation + against non-thread local symbol. + * elfxx-x86.c (_bfd_x86_elf_link_report_tls_invalid_section_error): + Renamed to ... + (_bfd_x86_elf_link_report_error): This. Add an argument for + link error type and handle it. + * elfxx-x86.h (elf_x86_error_type): New enum. + (_bfd_x86_elf_link_report_tls_invalid_section_error): Renamed + to ... + (_bfd_x86_elf_link_report_error): This. Add an argument of + enum elf_x86_error_type. + +Signed-off-by: H.J. Lu + +CVE: CVE-2026-91782 +Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=471130b39c03623ec6d78ece377ff4da3f6bfe7b] + +Signed-off-by: Jaipaul Cheernam +--- + bfd/elf32-i386.c | 50 ++++++++++++++++++++++++++++++++++++++----- + bfd/elf64-x86-64.c | 53 +++++++++++++++++++++++++++++++++++++++++----- + bfd/elfxx-x86.c | 53 ++++++++++++++++++++++++++++++++++++++-------- + bfd/elfxx-x86.h | 11 ++++++++-- + 4 files changed, 146 insertions(+), 21 deletions(-) + +diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c +index 954803fcc3f..e9192ede6ac 100644 +--- a/bfd/elf32-i386.c ++++ b/bfd/elf32-i386.c +@@ -1171,8 +1171,8 @@ elf_i386_tls_transition (struct bfd_link_info *info, bfd *abfd, + || (sec->flags & SEC_CODE) == 0)) + { + reloc_howto_type *howto = elf_i386_rtype_to_howto (from_type); +- _bfd_x86_elf_link_report_tls_invalid_section_error +- (abfd, sec, symtab_hdr, h, sym, howto); ++ _bfd_x86_elf_link_report_error (abfd, sec, symtab_hdr, h, sym, ++ howto, elf_x86_error_tls); + return false; + } + +@@ -1745,11 +1745,15 @@ elf_i386_scan_relocs (bfd *abfd, + + if (tls_type >= GOT_TLS_GD + && tls_type <= GOT_TLS_GDESC +- && (elf_section_type (sec) != SHT_PROGBITS ++ && ((h != NULL ++ ? h->type != STT_TLS ++ : ELF_ST_TYPE (isym->st_info) != STT_TLS) ++ || elf_section_type (sec) != SHT_PROGBITS + || (sec->flags & SEC_CODE) == 0)) + { +- _bfd_x86_elf_link_report_tls_invalid_section_error +- (abfd, sec, symtab_hdr, h, isym, howto); ++ _bfd_x86_elf_link_report_error (abfd, sec, symtab_hdr, ++ h, isym, howto, ++ elf_x86_error_tls); + goto error_return; + } + +@@ -2581,6 +2585,18 @@ elf_i386_relocate_section (struct bfd_link_info *info, + { + case R_386_GOT32X: + case R_386_GOT32: ++ /* Since we don't allow non-alloced sections to create GOT/PLT ++ entries, issue an error if a non-alloced section references ++ GOT. */ ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ { ++ non_alloc_error: ++ _bfd_x86_elf_link_report_error (input_bfd, input_section, ++ symtab_hdr, h, sym, howto, ++ elf_x86_error_non_alloc); ++ return false; ++ } ++ + /* Relocation is to the entry for this symbol in the global + offset table. */ + if (htab->elf.sgot == NULL) +@@ -2713,6 +2729,9 @@ elf_i386_relocate_section (struct bfd_link_info *info, + break; + + case R_386_GOTOFF: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + /* Relocation is relative to the start of the global offset + table. */ + +@@ -2777,6 +2796,9 @@ elf_i386_relocate_section (struct bfd_link_info *info, + break; + + case R_386_GOTPC: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + /* Use global offset table as symbol value. */ + relocation = htab->elf.sgotplt->output_section->vma + + htab->elf.sgotplt->output_offset; +@@ -2784,6 +2806,9 @@ elf_i386_relocate_section (struct bfd_link_info *info, + break; + + case R_386_PLT32: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + /* Relocation is to the entry for this symbol in the + procedure linkage table. */ + +@@ -2911,6 +2936,9 @@ elf_i386_relocate_section (struct bfd_link_info *info, + break; + + case R_386_TLS_IE: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + if (!bfd_link_executable (info)) + { + Elf_Internal_Rela outrel; +@@ -2938,6 +2966,9 @@ elf_i386_relocate_section (struct bfd_link_info *info, + case R_386_TLS_DESC_CALL: + case R_386_TLS_IE_32: + case R_386_TLS_GOTIE: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + tls_type = GOT_UNKNOWN; + if (h == NULL && local_got_offsets) + tls_type = elf_x86_local_got_tls_type (input_bfd) [r_symndx]; +@@ -3436,6 +3467,9 @@ elf_i386_relocate_section (struct bfd_link_info *info, + break; + + case R_386_TLS_LDM: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + if (! elf_i386_tls_transition (info, input_bfd, + input_section, contents, + symtab_hdr, sym_hashes, +@@ -3508,6 +3542,9 @@ elf_i386_relocate_section (struct bfd_link_info *info, + break; + + case R_386_TLS_LDO_32: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + if (!bfd_link_executable (info) + || (input_section->flags & SEC_CODE) == 0) + relocation -= _bfd_x86_elf_dtpoff_base (info); +@@ -3518,6 +3555,9 @@ elf_i386_relocate_section (struct bfd_link_info *info, + + case R_386_TLS_LE_32: + case R_386_TLS_LE: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + if (!bfd_link_executable (info)) + { + Elf_Internal_Rela outrel; +diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c +index 575995d4957..97661b9fc1e 100644 +--- a/bfd/elf64-x86-64.c ++++ b/bfd/elf64-x86-64.c +@@ -1632,8 +1632,8 @@ elf_x86_64_tls_transition (struct bfd_link_info *info, bfd *abfd, + { + reloc_howto_type *howto = elf_x86_64_rtype_to_howto (abfd, + from_type); +- _bfd_x86_elf_link_report_tls_invalid_section_error +- (abfd, sec, symtab_hdr, h, sym, howto); ++ _bfd_x86_elf_link_report_error (abfd, sec, symtab_hdr, h, ++ sym, howto, elf_x86_error_tls); + return false; + } + +@@ -2771,11 +2771,15 @@ need_got: + + if (tls_type >= GOT_TLS_GD + && tls_type <= GOT_TLS_GDESC +- && (elf_section_type (sec) != SHT_PROGBITS ++ && ((h != NULL ++ ? h->type != STT_TLS ++ : ELF_ST_TYPE (isym->st_info) != STT_TLS) ++ || elf_section_type (sec) != SHT_PROGBITS + || (sec->flags & SEC_CODE) == 0)) + { +- _bfd_x86_elf_link_report_tls_invalid_section_error +- (abfd, sec, symtab_hdr, h, isym, howto); ++ _bfd_x86_elf_link_report_error (abfd, sec, symtab_hdr, ++ h, isym, howto, ++ elf_x86_error_tls); + goto error_return; + } + +@@ -3601,6 +3605,18 @@ elf_x86_64_relocate_section (struct bfd_link_info *info, + case R_X86_64_GOTPCREL64: + /* Use global offset table entry as symbol value. */ + case R_X86_64_GOTPLT64: ++ /* Since we don't allow non-alloced sections to create GOT/PLT ++ entries, issue an error if a non-alloced section references ++ GOT. */ ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ { ++ non_alloc_error: ++ _bfd_x86_elf_link_report_error (input_bfd, input_section, ++ symtab_hdr, h, sym, howto, ++ elf_x86_error_non_alloc); ++ return false; ++ } ++ + /* This is obsolete and treated the same as GOT64. */ + base_got = htab->elf.sgot; + +@@ -3739,6 +3755,9 @@ elf_x86_64_relocate_section (struct bfd_link_info *info, + break; + + case R_X86_64_GOTOFF64: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + /* Relocation is relative to the start of the global offset + table. */ + +@@ -3805,6 +3824,9 @@ elf_x86_64_relocate_section (struct bfd_link_info *info, + + case R_X86_64_GOTPC32: + case R_X86_64_GOTPC64: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + /* Use global offset table as symbol value. */ + relocation = htab->elf.sgotplt->output_section->vma + + htab->elf.sgotplt->output_offset; +@@ -3812,6 +3834,9 @@ elf_x86_64_relocate_section (struct bfd_link_info *info, + break; + + case R_X86_64_PLTOFF64: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + /* Relocation is PLT entry relative to GOT. For local + symbols it's the symbol itself relative to GOT. */ + if (h != NULL +@@ -3848,6 +3873,9 @@ elf_x86_64_relocate_section (struct bfd_link_info *info, + break; + + case R_X86_64_PLT32: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + /* Relocation is to the entry for this symbol in the + procedure linkage table. */ + +@@ -4156,6 +4184,9 @@ elf_x86_64_relocate_section (struct bfd_link_info *info, + case R_X86_64_CODE_4_GOTTPOFF: + case R_X86_64_CODE_5_GOTTPOFF: + case R_X86_64_CODE_6_GOTTPOFF: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + tls_type = GOT_UNKNOWN; + if (h == NULL && local_got_offsets) + tls_type = elf_x86_local_got_tls_type (input_bfd) [r_symndx]; +@@ -4882,6 +4913,9 @@ elf_x86_64_relocate_section (struct bfd_link_info *info, + break; + + case R_X86_64_TLSLD: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + if (! elf_x86_64_tls_transition (info, input_bfd, + input_section, contents, + symtab_hdr, sym_hashes, +@@ -5011,6 +5045,9 @@ elf_x86_64_relocate_section (struct bfd_link_info *info, + break; + + case R_X86_64_DTPOFF32: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + if (!bfd_link_executable (info) + || (input_section->flags & SEC_CODE) == 0) + relocation -= _bfd_x86_elf_dtpoff_base (info); +@@ -5020,11 +5057,17 @@ elf_x86_64_relocate_section (struct bfd_link_info *info, + + case R_X86_64_TPOFF32: + case R_X86_64_TPOFF64: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + BFD_ASSERT (bfd_link_executable (info)); + relocation = elf_x86_64_tpoff (info, relocation); + break; + + case R_X86_64_DTPOFF64: ++ if ((input_section->flags & (SEC_ALLOC | SEC_DEBUGGING)) == 0) ++ goto non_alloc_error; ++ + BFD_ASSERT ((input_section->flags & SEC_CODE) == 0); + relocation -= _bfd_x86_elf_dtpoff_base (info); + break; +diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c +index b531a261fd4..1de8135c977 100644 +--- a/bfd/elfxx-x86.c ++++ b/bfd/elfxx-x86.c +@@ -3369,23 +3369,58 @@ _bfd_x86_elf_link_report_tls_transition_error + bfd_set_error (bfd_error_bad_value); + } + +-/* Report TLS invalid section error. */ ++/* Report link error. */ + + void +-_bfd_x86_elf_link_report_tls_invalid_section_error ++_bfd_x86_elf_link_report_error + (bfd *abfd, asection *sec, Elf_Internal_Shdr *symtab_hdr, + struct elf_link_hash_entry *h, Elf_Internal_Sym *sym, +- reloc_howto_type *howto) ++ reloc_howto_type *howto, enum elf_x86_error_type type) + { + const char *name; ++ bool non_thread_local; + if (h) +- name = h->root.root.string; ++ { ++ non_thread_local = h->type != STT_TLS; ++ name = h->root.root.string; ++ } + else +- name = bfd_elf_sym_name (abfd, symtab_hdr, sym, NULL); +- _bfd_error_handler +- /* xgettext:c-format */ +- (_("%pB: relocation %s against thread local symbol `%s' in " +- "invalid section `%pA'"), abfd, howto->name, name, sec); ++ { ++ non_thread_local = ELF_ST_TYPE (sym->st_info) != STT_TLS; ++ name = bfd_elf_sym_name (abfd, symtab_hdr, sym, NULL); ++ if (name[0] == '\0') ++ name = "*unknown*"; ++ } ++ ++ switch (type) ++ { ++ case elf_x86_error_tls: ++ if (non_thread_local) ++ _bfd_error_handler ++ /* xgettext:c-format */ ++ (_("%pB: relocation %s against non-thread local symbol " ++ "`%s' in section `%pA'"), ++ abfd, howto->name, name, sec); ++ else ++ _bfd_error_handler ++ /* xgettext:c-format */ ++ (_("%pB: relocation %s against thread local symbol `%s' in " ++ "invalid section `%pA'"), abfd, howto->name, name, sec); ++ break; ++ ++ case elf_x86_error_non_alloc: ++ _bfd_error_handler ++ /* xgettext:c-format */ ++ (_("%pB: relocation %s against symbol `%s' in non-alloc " ++ "section `%pA'"), ++ abfd, howto->name, name, sec); ++ break; ++ ++ default: ++ abort (); ++ break; ++ } ++ + bfd_set_error (bfd_error_bad_value); + } + +diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h +index 4932b2e43c5..430d61d3097 100644 +--- a/bfd/elfxx-x86.h ++++ b/bfd/elfxx-x86.h +@@ -794,6 +794,12 @@ enum elf_x86_tls_error_type + elf_x86_tls_error_yes + }; + ++enum elf_x86_error_type ++{ ++ elf_x86_error_tls, ++ elf_x86_error_non_alloc ++}; ++ + /* Set if a relocation is converted from a GOTPCREL relocation. */ + #define R_X86_64_converted_reloc_bit (1 << 7) + +@@ -951,9 +957,10 @@ extern void _bfd_x86_elf_link_report_tls_transition_error + const Elf_Internal_Rela *, const char *, const char *, + enum elf_x86_tls_error_type) ATTRIBUTE_HIDDEN; + +-extern void _bfd_x86_elf_link_report_tls_invalid_section_error ++extern void _bfd_x86_elf_link_report_error + (bfd *, asection *, Elf_Internal_Shdr *, struct elf_link_hash_entry *, +- Elf_Internal_Sym *, reloc_howto_type *) ATTRIBUTE_HIDDEN; ++ Elf_Internal_Sym *, reloc_howto_type *, ++ enum elf_x86_error_type) ATTRIBUTE_HIDDEN; + + extern bool + _bfd_elf_x86_copy_special_section_fields diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-3.patch b/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-3.patch new file mode 100644 index 00000000000..ffe27798b46 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-3.patch @@ -0,0 +1,130 @@ +From b7fff15e0fe5494490ea2d222b996f8495b15ad2 Mon Sep 17 00:00:00 2001 +From: "H.J. Lu" +Date: Fri, 31 Jul 2026 05:47:15 +0800 +Subject: [PATCH 3/5] x86: Improve relocation error reporting + +For bfd_reloc_outofrange relocation error, instead of + +ld: pr34448-bug_4.o(.debug_addr+0x7f000008): reloc against `.text.get_tls': error 4 + +linker now reports: + +ld: pr34448-bug_4.o(.debug_addr+0x7f000008): relocation `R_X86_64_64' against `.text.get_tls': out of section range + + PR ld/34448 + * elf32-i386.c (elf_i386_relocate_section): Call + _bfd_x86_elf_link_report_relocation_error for relocation error. + * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. + * elfxx-x86.c (_bfd_x86_elf_link_report_relocation_error): New. + * elfxx-x86.h (_bfd_x86_elf_link_report_relocation_error): New. + +Signed-off-by: H.J. Lu + +CVE: CVE-2026-91782 +Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=283d3198beda5110a8417fd09b336a34bbd2705c] + +Signed-off-by: Jaipaul Cheernam +--- + bfd/elf32-i386.c | 9 ++++----- + bfd/elf64-x86-64.c | 9 ++++----- + bfd/elfxx-x86.c | 31 +++++++++++++++++++++++++++++++ + bfd/elfxx-x86.h | 4 ++++ + 4 files changed, 43 insertions(+), 10 deletions(-) + +diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c +index e9192ede6ac..adc641f5347 100644 +--- a/bfd/elf32-i386.c ++++ b/bfd/elf32-i386.c +@@ -3644,11 +3644,10 @@ elf_i386_relocate_section (struct bfd_link_info *info, + (bfd_vma) 0, input_bfd, input_section, rel->r_offset); + else + { +- _bfd_error_handler +- /* xgettext:c-format */ +- (_("%pB(%pA+%#" PRIx64 "): reloc against `%s': error %d"), +- input_bfd, input_section, +- (uint64_t) rel->r_offset, name, (int) r); ++ _bfd_x86_elf_link_report_relocation_error (input_bfd, ++ input_section, ++ name, rel, ++ howto, r); + return false; + } + } +diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c +index 97661b9fc1e..dbabcf97d9b 100644 +--- a/bfd/elf64-x86-64.c ++++ b/bfd/elf64-x86-64.c +@@ -5151,11 +5151,10 @@ elf_x86_64_relocate_section (struct bfd_link_info *info, + } + else + { +- _bfd_error_handler +- /* xgettext:c-format */ +- (_("%pB(%pA+%#" PRIx64 "): reloc against `%s': error %d"), +- input_bfd, input_section, +- (uint64_t) rel->r_offset, name, (int) r); ++ _bfd_x86_elf_link_report_relocation_error (input_bfd, ++ input_section, ++ name, rel, ++ howto, r); + return false; + } + } +diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c +index 1de8135c977..12af0e8ec7b 100644 +--- a/bfd/elfxx-x86.c ++++ b/bfd/elfxx-x86.c +@@ -3424,6 +3424,37 @@ _bfd_x86_elf_link_report_error + bfd_set_error (bfd_error_bad_value); + } + ++/* Report link relocation error. */ ++ ++void ++_bfd_x86_elf_link_report_relocation_error (bfd *abfd, asection *sec, ++ const char *name, ++ Elf_Internal_Rela *rel, ++ reloc_howto_type *howto, ++ bfd_reloc_status_type status) ++{ ++ const char *error_msg; ++ ++ switch (status) ++ { ++ case bfd_reloc_outofrange: ++ error_msg = _("out of section range"); ++ break; ++ ++ case bfd_reloc_notsupported: ++ error_msg = _("not supported"); ++ break; ++ ++ default: ++ abort (); ++ } ++ ++ _bfd_error_handler ++ /* xgettext:c-format */ ++ (_("%pB(%pA+%#" PRIx64 "): relocation `%s' against `%s': %s"), ++ abfd, sec, (uint64_t) rel->r_offset, howto->name, name, error_msg); ++} ++ + /* Return TRUE if symbol should be hashed in the `.gnu.hash' section. */ + + bool +diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h +index 430d61d3097..48e8ab4ad73 100644 +--- a/bfd/elfxx-x86.h ++++ b/bfd/elfxx-x86.h +@@ -962,6 +962,10 @@ extern void _bfd_x86_elf_link_report_error + Elf_Internal_Sym *, reloc_howto_type *, + enum elf_x86_error_type) ATTRIBUTE_HIDDEN; + ++extern void _bfd_x86_elf_link_report_relocation_error ++ (bfd *, asection *, const char *, Elf_Internal_Rela *, ++ reloc_howto_type *, bfd_reloc_status_type) ATTRIBUTE_HIDDEN; ++ + extern bool + _bfd_elf_x86_copy_special_section_fields + (const bfd *, bfd *, const Elf_Internal_Shdr *, diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-4.patch b/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-4.patch new file mode 100644 index 00000000000..dac9b3ba524 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-4.patch @@ -0,0 +1,50 @@ +From bde043c2c54d0c0fe230bd7e6e045b884178563d Mon Sep 17 00:00:00 2001 +From: "H.J. Lu" +Date: Sat, 1 Aug 2026 11:23:39 +0800 +Subject: [PATCH 4/5] x86: Check if needed dynamic relocation section is + created + +Since elf_link_read_relocs_from_section aborts for bad relocation, +further relocations won't be processed and needed dynamic relocation +section won't be created. Skip dynamic relocation count if needed +dynamic relocation section hasn't been created. + + PR ld/34448 + * elfxx-x86.c (_bfd_x86_elf_late_size_sections): Skip dynamic + relocation count if needed dynamic relocation section hasn't been + created. + +Signed-off-by: H.J. Lu + +CVE: CVE-2026-91782 +Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0a84e5602163e9f95a6f137ced28aff0507ce790] + +Signed-off-by: Jaipaul Cheernam +--- + bfd/elfxx-x86.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c +index 12af0e8ec7b..79fb4b1535f 100644 +--- a/bfd/elfxx-x86.c ++++ b/bfd/elfxx-x86.c +@@ -2331,6 +2331,19 @@ _bfd_x86_elf_late_size_sections (struct bfd_link_info *info) + else if (p->count != 0) + { + srel = elf_section_data (p->sec)->sreloc; ++ if (!srel) ++ { ++ /* NB: Since elf_link_read_relocs_from_section ++ aborts for bad relocation, further relocations ++ won't be processed and needed dynamic relocation ++ section won't be created afterwards. */ ++ _bfd_error_handler ++ /* xgettext:c-format */ ++ (_("%pB: dynamic relocation section is needed " ++ "for section `%pA'"), ++ p->sec->owner, p->sec); ++ continue; ++ } + srel->size += p->count * htab->sizeof_reloc; + if ((p->sec->output_section->flags & SEC_READONLY) != 0 + && (info->flags & DF_TEXTREL) == 0) diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-5.patch b/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-5.patch new file mode 100644 index 00000000000..0a67d586dac --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2026-91782-5.patch @@ -0,0 +1,65 @@ +From a153109ece5591bc4f7eede453168dc76b301d56 Mon Sep 17 00:00:00 2001 +From: "H.J. Lu" +Date: Wed, 5 Aug 2026 16:43:05 +0800 +Subject: [PATCH 5/5] ld: Check input section garbage collection error + +The ELF backend gc_mark_extra_sections function may return false for +error and bfd_gc_sections may return false on invalid input: + +ld: pr34448-bug_18.o: bad reloc symbol index (0xf2000005 >= 0x13) for offset 0x4 in section `.text.get_tls[get_tls]' + +Change bfd_elf_gc_sections to return false if gc_mark_extra_sections +return false. Change lang_gc_sections to check bfd_gc_sections return +and report the fatal error. + +bfd/ + PR ld/34448 + * elflink.c (bfd_elf_gc_sections): Return false if + gc_mark_extra_sections return false. + +ld/ + PR ld/34448 + * ldlang.c (lang_gc_sections): Check bfd_gc_sections return and + report the fatal error. + +Signed-off-by: H.J. Lu + +CVE: CVE-2026-91782 +Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a692a633d407995a5ce87e84a0b1032e9ac51360] + +Signed-off-by: Jaipaul Cheernam +--- + bfd/elflink.c | 3 ++- + ld/ldlang.c | 5 +++-- + 2 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/bfd/elflink.c b/bfd/elflink.c +index 0af9837a28c..7f354520fc2 100644 +--- a/bfd/elflink.c ++++ b/bfd/elflink.c +@@ -14753,7 +14753,8 @@ bfd_elf_gc_sections (bfd *obfd, struct bfd_link_info *info) + } + + /* Allow the backend to mark additional target specific sections. */ +- obed->gc_mark_extra_sections (info, gc_mark_hook); ++ if (!obed->gc_mark_extra_sections (info, gc_mark_hook)) ++ return false; + + /* ... and mark SEC_EXCLUDE for those that go. */ + return elf_gc_sweep (obfd, info); +diff --git a/ld/ldlang.c b/ld/ldlang.c +index 886c49a1861..65494acca00 100644 +--- a/ld/ldlang.c ++++ b/ld/ldlang.c +@@ -8165,8 +8165,9 @@ lang_gc_sections (void) + } + } + +- if (link_info.gc_sections) +- bfd_gc_sections (link_info.output_bfd, &link_info); ++ if (link_info.gc_sections ++ && !bfd_gc_sections (link_info.output_bfd, &link_info)) ++ fatal (_("%P: --gc-sections failed: %E\n")); + } + + /* Worker for lang_find_relro_sections_1. */