diff options
author | poojitha adireddy <pooadire@cisco.com> | 2023-11-28 20:56:26 -0800 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-12-08 11:45:59 -1000 |
commit | 24fe5661555a297057cf05a489416020572d60cd (patch) | |
tree | 7e2e05cd34a2d0ea12df037cafb31ae97642b6f0 /meta | |
parent | b8f1972b8482860d649641ad34ec8a17ef1dd983 (diff) | |
download | poky-24fe5661555a297057cf05a489416020572d60cd.tar.gz |
binutils 2.34: Fix CVE-2021-46174
Upstream Repository: https://sourceware.org/git/binutils-gdb.git
Bug Details: https://nvd.nist.gov/vuln/detail/CVE-2021-46174
Type: Security Fix
CVE: CVE-2021-46174
Score: 7.5
Patch: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cad4d6b91e97
(From OE-Core rev: 94f2468de191f8c1dd236efb91f3094a76ddffc9)
Signed-off-by: poojitha adireddy <pooadire@cisco.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.34.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/CVE-2021-46174.patch | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.34.inc b/meta/recipes-devtools/binutils/binutils-2.34.inc index a9a2bf332f..371e8e9fa4 100644 --- a/meta/recipes-devtools/binutils/binutils-2.34.inc +++ b/meta/recipes-devtools/binutils/binutils-2.34.inc | |||
@@ -54,5 +54,6 @@ SRC_URI = "\ | |||
54 | file://0001-CVE-2021-45078.patch \ | 54 | file://0001-CVE-2021-45078.patch \ |
55 | file://CVE-2022-38533.patch \ | 55 | file://CVE-2022-38533.patch \ |
56 | file://CVE-2023-25588.patch \ | 56 | file://CVE-2023-25588.patch \ |
57 | file://CVE-2021-46174.patch \ | ||
57 | " | 58 | " |
58 | S = "${WORKDIR}/git" | 59 | S = "${WORKDIR}/git" |
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2021-46174.patch b/meta/recipes-devtools/binutils/binutils/CVE-2021-46174.patch new file mode 100644 index 0000000000..2addf5139e --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2021-46174.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 46322722ad40ac1a75672ae0f62f4969195f1368 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alan Modra <amodra@gmail.com> | ||
3 | Date: Thu, 20 Jan 2022 13:58:38 +1030 | ||
4 | Subject: [PATCH] PR28753, buffer overflow in read_section_stabs_debugging_info | ||
5 | |||
6 | PR 28753 | ||
7 | * rddbg.c (read_section_stabs_debugging_info): Don't read past | ||
8 | end of section when concatentating stab strings. | ||
9 | |||
10 | CVE: CVE-2021-46174 | ||
11 | Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cad4d6b91e97] | ||
12 | |||
13 | (cherry picked from commit 085b299b71721e15f5c5c5344dc3e4e4536dadba) | ||
14 | (cherry picked from commit cad4d6b91e97b6962807d33c04ed7e7797788438) | ||
15 | Signed-off-by: poojitha adireddy <pooadire@cisco.com> | ||
16 | --- | ||
17 | binutils/rddbg.c | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/binutils/rddbg.c b/binutils/rddbg.c | ||
21 | index 72e934055b5..5e76d94a3c4 100644 | ||
22 | --- a/binutils/rddbg.c | ||
23 | +++ b/binutils/rddbg.c | ||
24 | @@ -207,7 +207,7 @@ read_section_stabs_debugging_info (bfd *abfd, asymbol **syms, long symcount, | ||
25 | an attempt to read the byte before 'strings' would occur. */ | ||
26 | while ((len = strlen (s)) > 0 | ||
27 | && s[len - 1] == '\\' | ||
28 | - && stab + 12 < stabs + stabsize) | ||
29 | + && stab + 16 <= stabs + stabsize) | ||
30 | { | ||
31 | char *p; | ||
32 | |||
33 | -- | ||
34 | 2.23.1 | ||
35 | |||