summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/CVE-2019-14444.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/CVE-2019-14444.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2019-14444.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2019-14444.patch b/meta/recipes-devtools/binutils/binutils/CVE-2019-14444.patch
deleted file mode 100644
index 85b9a9f916..0000000000
--- a/meta/recipes-devtools/binutils/binutils/CVE-2019-14444.patch
+++ /dev/null
@@ -1,28 +0,0 @@
1From e17869db99195849826eaaf5d2d0eb2cfdd7a2a7 Mon Sep 17 00:00:00 2001
2From: Nick Clifton <nickc@redhat.com>
3Date: Mon, 5 Aug 2019 10:40:35 +0100
4Subject: [PATCH] Catch potential integer overflow in readelf when processing
5 corrupt binaries.
6
7 PR 24829
8 * readelf.c (apply_relocations): Catch potential integer overflow
9 whilst checking reloc location against section size.
10
11CVE: CVE-2019-14444
12Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e17869db99195849826eaaf5d2d0eb2cfdd7a2a7]
13[Removed Changelog entry]
14Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
15---
16diff --git a/binutils/readelf.c b/binutils/readelf.c
17index b896ad9f406..e785fde43e7 100644
18--- a/binutils/readelf.c
19+++ b/binutils/readelf.c
20@@ -13366,7 +13366,7 @@ apply_relocations (Filedata * filedata,
21 }
22
23 rloc = start + rp->r_offset;
24- if ((rloc + reloc_size) > end || (rloc < start))
25+ if (rloc >= end || (rloc + reloc_size) > end || (rloc < start))
26 {
27 warn (_("skipping invalid relocation offset 0x%lx in section %s\n"),
28 (unsigned long) rp->r_offset,