binutils: Fix CVE-2022-48065
PATCH 1/1 binutils: Fix CVE-2022-48065
Signed-off-by Sanjana <[email protected]>
--- .../binutils/binutils-2.38.inc | 3 + .../binutils/0029-CVE-2022-48065-1.patch | 31 +++++ .../binutils/0029-CVE-2022-48065-2.patch | 115 +++++++++++++++++ .../binutils/0029-CVE-2022-48065-3.patch | 122 ++++++++++++++++++ 4 files changed, 271 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/0029-CVE-2022-48065-1.patch create mode 100644 meta/recipes-devtools/binutils/binutils/0029-CVE-2022-48065-2.patch create mode 100644 meta/recipes-devtools/binutils/binutils/0029-CVE-2022-48065-3.patch
meta/recipes-devtools/binutils/binutils-2.38.inc +3 -0
@@ -56,5 +56,8 @@ SRC_URI = "\ file://0023-CVE-2023-25585.patch \ file://0026-CVE-2023-1972.patch \ file://0025-CVE-2023-25588.patch \ + file://0029-CVE-2022-48065-1.patch \ + file://0029-CVE-2022-48065-2.patch \ + file://0029-CVE-2022-48065-3.patch \ " S = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/0029-CVE-2022-48065-1.patch new file +31 -0
@@ -0,0 +1,31 @@ +From: Jan Beulich <[email protected]> +Date: Tue, 29 Mar 2022 06:19:14 +0000 (+0200) +Subject: bfd/Dwarf2: gas doesn't mangle names +X-Git-Tag: binutils-2_39~1287 +X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=ddfc2f56d5782af79c696d7fef7c73bba11e8b09 + +bfd/Dwarf2: gas doesn't mangle names + +Include the language identifier emitted by gas in the set of ones where +no mangled names are expected. Even if there could be "hand-mangled" +names, gas doesn't emit DW_AT_linkage_name in the first place. +Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=ddfc2f56d5782af79c696d7fef7c73bba11e8b09] + +CVE: CVE-2022-48065 + +Signed-off-by: Sanjana Venkatesh <[email protected]> + +--- + +diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c +index 8cd0ce9d425..9aa4e955a5e 100644 +--- a/bfd/dwarf2.c ++++ b/bfd/dwarf2.c +@@ -1441,6 +1441,7 @@ non_mangled (int lang) + case DW_LANG_PLI: + case DW_LANG_UPC: + case DW_LANG_C11: ++ case DW_LANG_Mips_Assembler: + return true; + } + }
meta/recipes-devtools/binutils/binutils/0029-CVE-2022-48065-2.patch new file +115 -0
115 lines not on this page · raw message
meta/recipes-devtools/binutils/binutils/0029-CVE-2022-48065-3.patch new file +122 -0
122 lines not on this page · raw message
Signature · 1 line
2.34.1