gdb: Fix CVE-2023-39129
PATCH v3 1/2 gdb: Fix CVE-2023-39129
From: Deepthi Hemraj <[email protected]>
Issue: LIN1022-4854
--- .../binutils/binutils-2.38.inc | 1 + .../binutils/0035-CVE-2023-39129.patch | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/0035-CVE-2023-39129.patch
meta/recipes-devtools/binutils/binutils-2.38.inc +1 -0
@@ -69,5 +69,6 @@ SRC_URI = "\ file://0032-CVE-2022-47010.patch \ file://0033-CVE-2022-47007.patch \ file://0034-CVE-2022-48064.patch \ + file://0035-CVE-2023-39129.patch \ " S = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/0035-CVE-2023-39129.patch new file +50 -0
50 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v3 2/2 gdb: Fix CVE-2023-39130
From: Deepthi Hemraj <[email protected]>
Issue: LIN1022-4855
--- .../binutils/binutils-2.38.inc | 1 + .../binutils/0036-CVE-2023-39130.patch | 326 ++++++++++++++++++ 2 files changed, 327 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/0036-CVE-2023-39130.patch
meta/recipes-devtools/binutils/binutils-2.38.inc +1 -0
@@ -70,5 +70,6 @@ SRC_URI = "\ file://0033-CVE-2022-47007.patch \ file://0034-CVE-2022-48064.patch \ file://0035-CVE-2023-39129.patch \ + file://0036-CVE-2023-39130.patch \ " S = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/0036-CVE-2023-39130.patch new file +326 -0
326 lines not on this page · raw message
Signature · 1 line
2.43.0
meta/recipes-devtools/binutils/binutils-2.38.inc
Quoted 12 lines · Deepthi via lists.openembedded.org
From: Deepthi Hemraj<[email protected]>
Issue: LIN1022-4854
Signed-off-by Deepthi Hemraj<[email protected]>--- .../binutils/binutils-2.38.inc | 1 + .../binutils/0035-CVE-2023-39129.patch | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+)create mode 100644
meta/recipes-devtools/binutils/binutils/0035-CVE-2023-39129.patchmeta/recipes-devtools/binutils/binutils-2.38.inc +0
-0
This commit fixes the version of gdb internal to binutils.
I had forgotten that binutils carried a copy of gdb so it's good that you noticed but our binutils recipe disables compiling gdb or gdb-server:
And from a mickledore build, it seems that we don't install an binary with gdb in it's name, as expected from the reicpe;
❯ fd gdb tmp-glibc/work/core2-64-wrs-linux/binutils/2.40-r0/packages-split/ tmp-glibc/work/core2-64-wrs-linux/binutils/2.40-r0/packages-split/binutils-src/usr/src/debug/binutils/2.40-r0/gold/gdb-index.cc tmp-glibc/work/core2-64-wrs-linux/binutils/2.40-r0/packages-split/binutils-src/usr/src/debug/binutils/2.40-r0/gold/gdb-index.h tmp-glibc/work/core2-64-wrs-linux/binutils/2.40-r0/packages-split/binutils-src/usr/src/debug/binutils/2.40-r0/include/gdb tmp-glibc/work/core2-64-wrs-linux/binutils/2.40-r0/packages-split/binutils-src/usr/src/debug/binutils/2.40-r0/include/gdb/gdb-index.h
Added Khem in case Steve isn't sure if we should be patching the internal gdb in binutils. I guess it won't do any harm but it is extra work that we could just avoid.
If you need to re-submit, please do so with a proper shortlog:
You have:
[kirkstone][PATCH V3 1/2] gdb: Fix CVE-2023-39129
It should be something like:
[kirkstone][PATCH V3 1/2] binutils: internal gdb: Fix CVE-2023-39129
Thanks,
Signature · 2 lines
# Randy MacLeod # Wind River Linux
Quoted 35 lines · Randy MacLeod via lists.openembedded.org
On 2024-02-02 7:07 a.m., Hemraj, Deepthi via lists.openembedded.org wrote:
From: Deepthi Hemraj <[email protected]>
Issue: LIN1022-4854
Signed-off-by Deepthi Hemraj <[email protected]>--- .../binutils/binutils-2.38.inc | 1 + .../binutils/0035-CVE-2023-39129.patch | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/0035-CVE-2023-39129.patchmeta/recipes-devtools/binutils/binutils-2.38.inc +0
-0This commit fixes the version of gdb internal to binutils.
I had forgotten that binutils carried a copy of gdb so it's good that you noticed but our binutils recipe disables compiling gdb or gdb-server:And from a mickledore build, it seems that we don't install an binary with gdb in it's name, as expected from the reicpe;
❯ fd gdb tmp-glibc/work/core2-64-wrs-linux/binutils/2.40-r0/packages-split/ tmp-glibc/work/core2-64-wrs-linux/binutils/2.40-r0/packages-split/binutils-src/usr/src/debug/binutils/2.40-r0/gold/gdb-index.cc
tmp-glibc/work/core2-64-wrs-linux/binutils/2.40-r0/packages-split/binutils-src/usr/src/debug/binutils/2.40-r0/gold/gdb-index.htmp-glibc/work/core2-64-wrs-linux/binutils/2.40-r0/packages-split/binutils-src/usr/src/debug/binutils/2.40-r0/include/gdbtmp-glibc/work/core2-64-wrs-linux/binutils/2.40-r0/packages-split/binutils-src/usr/src/debug/binutils/2.40-r0/include/gdb/gdb-index.hAdded Khem in case Steve isn't sure if we should be patching the internal gdb in binutils. I guess it won't do any harm but it is extra work that we could just avoid.
Quoted 6 lines
If you need to re-submit, please do so with a proper shortlog:
You have:
[kirkstone][PATCH V3 1/2] gdb: Fix CVE-2023-39129It should be something like:
[kirkstone][PATCH V3 1/2] binutils: internal gdb: Fix CVE-2023-39129
Given the number of open issues with this patchset I'm going to drop this version and wait for a "V4" that addresses these issues.
Steve