Skip to contentSkip to conversation

u-boot-tools: use all patches from u-boot

PATCH In review Peter Marko 3 participants 12 messages Sep 23 – Nov 20 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 u-boot-tools: use all patches from u-boot

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)
meta/recipes-bsp/u-boot/u-boot-common.inc +10 -0
index 27e6ac9db5b..6d388fadedc 100644
@@ -18,6 +18,16 @@ SRCREV = "866ca972d6c3cabeaf6dbac431e8e08bb30b3c8e"
 
 SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master \
            file://CVE-2025-24857.patch \
+           file://CVE-2024-57254.patch \
+           file://CVE-2024-57255.patch \
+           file://CVE-2024-57256.patch \
+           file://CVE-2024-57257.patch \
+           file://CVE-2024-57258-1.patch \
+           file://CVE-2024-57258-2.patch \
+           file://CVE-2024-57258-3.patch \
+           file://CVE-2024-57259.patch \
+           file://CVE-2024-42040.patch \
+           file://CVE-2026-46728.patch \
 "
 
 S = "${WORKDIR}/git"
meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb +0 -2
index 4b6d89ed4e1..7eaf721ca83 100644
@@ -1,4 +1,2 @@
 require u-boot-common.inc
 require u-boot-tools.inc
-
-SRC_URI += "file://CVE-2026-46728.patch"
meta/recipes-bsp/u-boot/u-boot_2024.01.bb +0 -12
index 7eaeed1004b..945398c90e4 100644
@@ -2,15 +2,3 @@ require u-boot-common.inc
 require u-boot.inc
 
 DEPENDS += "bc-native dtc-native python3-pyelftools-native"
-
-SRC_URI += "file://CVE-2024-57254.patch \
-            file://CVE-2024-57255.patch \
-            file://CVE-2024-57256.patch \
-            file://CVE-2024-57257.patch \
-            file://CVE-2024-57258-1.patch \
-            file://CVE-2024-57258-2.patch \
-            file://CVE-2024-57258-3.patch \
-            file://CVE-2024-57259.patch \
-            file://CVE-2024-42040.patch \
-            file://CVE-2026-46728.patch \
-"
#1 lore raw
Quoted 9 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

Quoted 6 lines
---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)

Hello Peter, Hetvi,

There is a bit of back-and-forth around u-boot-common.inc. So I thought I would give my vision and get your thoughts.

Fundamentally, there is confusion about the usage of this .inc file:
* This is the common part of u-boot and u-boot-tools recipes (what the above patch uses)
* But, also, this may be used by downstream layers to reuse u-boot recipe parts. We basically did the revert of Peter's patch a few month ago for this reason[0].

With Paul, we would like to have a single set of patches common for both u-boot and u-boot-tools, but that can't be in u-boot-common.inc as there is a risk of breaking downstream layers.

Our idea is to create a new inc file "u-boot-common-patches.inc" (I'm not attached to the name) that contains only SRC_URI += "CVE_*.patch" and a big warning explaining that is file is only supposed to be included from layer-local recipes (namely u-boot and u-boot-tools).

This whole situation is not ideal but think the above would solve our issues and still be acceptable under stable policy.

What do you think?

Regards,

[0]: u-boot: move CVE patches out of the common .inc file - openembedded-core - OpenEmbedded Core layer

     https://git.openembedded.org/openembedded-core/commit/?id=f4ced8ff03147dd532a88cf3ce08d61fab057522
Signature · 2 lines
Yoann Congal
Smile ECS
#2 lore raw

Hi Yoann, Peter,

Thanks, Yoann. Continuing the discussion here as suggested.

As i explained in the other thread [1], the existing u-boot fixes are not currently applied to u-boot-tools. My CVE_STATUS changes address cases where the affected code is not compiled into the tools build.

I understand that the proposed separate include would allow both recipes to share the CVE patches without adding them to u-boot-common.inc and affecting downstream users.

My concern is whether we need this additional include and shared patch list for cases that can be handled through recipe-specific CVE_STATUS entries. Could we consider the held exclusions on that basis?

If maintaining one shared source patch set is the preferred approach, could you clarify how we should handle patches 2–11 of my series? Should we revisit them after the shared include is settled and retain only the exclusions still needed?

[1] https://lists.openembedded.org/g/openembedded-core/message/247868

Regards,
Hetvi
________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 16 October 2026 03:44
To: [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 9 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

Quoted 6 lines
---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)

Hello Peter, Hetvi,

There is a bit of back-and-forth around u-boot-common.inc. So I thought I would give my vision and get your thoughts.

Fundamentally, there is confusion about the usage of this .inc file:
* This is the common part of u-boot and u-boot-tools recipes (what the above patch uses)
* But, also, this may be used by downstream layers to reuse u-boot recipe parts. We basically did the revert of Peter's patch a few month ago for this reason[0].

With Paul, we would like to have a single set of patches common for both u-boot and u-boot-tools, but that can't be in u-boot-common.inc as there is a risk of breaking downstream layers.

Our idea is to create a new inc file "u-boot-common-patches.inc" (I'm not attached to the name) that contains only SRC_URI += "CVE_*.patch" and a big warning explaining that is file is only supposed to be included from layer-local recipes (namely u-boot and u-boot-tools).

This whole situation is not ideal but think the above would solve our issues and still be acceptable under stable policy.

What do you think?

Regards,

[0]: u-boot: move CVE patches out of the common .inc file - openembedded-core - OpenEmbedded Core layer

     https://git.openembedded.org/openembedded-core/commit/?id=f4ced8ff03147dd532a88cf3ce08d61fab057522

--
Yoann Congal
Smile ECS

#3 lore raw
Quoted 12 lines · On Tue Oct 20, 2026 at 7:16 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann, Peter,

Thanks, Yoann. Continuing the discussion here as suggested.

As i explained in the other thread [1], the existing u-boot fixes are not currently applied to u-boot-tools. My CVE_STATUS changes address cases where the affected code is not compiled into the tools build.

I understand that the proposed separate include would allow both recipes to share the CVE patches without adding them to u-boot-common.inc and affecting downstream users.

Quoted 8 lines

My concern is whether we need this additional include and shared patch list for cases that can be handled through recipe-specific CVE_STATUS entries. Could we consider the held exclusions on that basis?

If maintaining one shared source patch set is the preferred approach, could you clarify how we should handle patches 2–11 of my series? Should we revisit them after the shared include is settled and retain only the exclusions still needed?

The general idea is that by sharing CVE patches with the main u-boot recipe, CVE would be also "fixed" in u-boot-tools (even if said patch is not compiled).

For 2-8, patches are in u-boot so no need to ignore them:
* [Patch 02/11] u-boot-tools: Ignore CVE-2024-42040
* [Patch 03/11] u-boot-tools: Ignore CVE-2024-57254
* [Patch 04/11] u-boot-tools: Ignore CVE-2024-57255
* [Patch 05/11] u-boot-tools: Ignore CVE-2024-57256
* [Patch 06/11] u-boot-tools: Ignore CVE-2024-57257
* [Patch 07/11] u-boot-tools: Ignore CVE-2024-57258
* [Patch 08/11] u-boot-tools: Ignore CVE-2024-57259

For 9-11, there are no u-boot patches so ignoring them in the u-boot-tools recipe, would be fair (but patching them would be preferable):
* [Patch 09/11] u-boot-tools: Ignore CVE-2026-29007
* [Patch 10/11] u-boot-tools: Ignore CVE-2026-29008
* [Patch 11/11] u-boot-tools: Ignore CVE-2026-29009

Regards,

Quoted 62 lines

[1] https://lists.openembedded.org/g/openembedded-core/message/247868

Regards,
Hetvi
________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 16 October 2026 03:44
To: [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 9 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

Quoted 6 lines
---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)

Hello Peter, Hetvi,

There is a bit of back-and-forth around u-boot-common.inc. So I thought I would give my vision and get your thoughts.

Fundamentally, there is confusion about the usage of this .inc file:
* This is the common part of u-boot and u-boot-tools recipes (what the above patch uses)
* But, also, this may be used by downstream layers to reuse u-boot recipe parts. We basically did the revert of Peter's patch a few month ago for this reason[0].

With Paul, we would like to have a single set of patches common for both u-boot and u-boot-tools, but that can't be in u-boot-common.inc as there is a risk of breaking downstream layers.

Our idea is to create a new inc file "u-boot-common-patches.inc" (I'm not attached to the name) that contains only SRC_URI += "CVE_*.patch" and a big warning explaining that is file is only supposed to be included from layer-local recipes (namely u-boot and u-boot-tools).

This whole situation is not ideal but think the above would solve our issues and still be acceptable under stable policy.

What do you think?

Regards,

[0]: u-boot: move CVE patches out of the common .inc file - openembedded-core - OpenEmbedded Core layer

     https://git.openembedded.org/openembedded-core/commit/?id=f4ced8ff03147dd532a88cf3ce08d61fab057522

--
Yoann Congal
Smile ECS

Signature · 2 lines
Yoann Congal
Smile ECS
#4 lore raw

Hi Yoann,

Thanks for clarifying. For patches 9–11, I understand that source fixes are preferred. However, networking is disabled in u-boot-tools, so building it would not compile or exercise the affected code. How should these fixes be verified?

Regards,
Hetvi

________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 28 October 2026 14:37
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 12 lines · On Tue Oct 20, 2026 at 7:16 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann, Peter,

Thanks, Yoann. Continuing the discussion here as suggested.

As i explained in the other thread [1], the existing u-boot fixes are not currently applied to u-boot-tools. My CVE_STATUS changes address cases where the affected code is not compiled into the tools build.

I understand that the proposed separate include would allow both recipes to share the CVE patches without adding them to u-boot-common.inc and affecting downstream users.

Quoted 8 lines

My concern is whether we need this additional include and shared patch list for cases that can be handled through recipe-specific CVE_STATUS entries. Could we consider the held exclusions on that basis?

If maintaining one shared source patch set is the preferred approach, could you clarify how we should handle patches 2–11 of my series? Should we revisit them after the shared include is settled and retain only the exclusions still needed?

The general idea is that by sharing CVE patches with the main u-boot recipe, CVE would be also "fixed" in u-boot-tools (even if said patch is not compiled).

For 2-8, patches are in u-boot so no need to ignore them:
* [Patch 02/11] u-boot-tools: Ignore CVE-2024-42040
* [Patch 03/11] u-boot-tools: Ignore CVE-2024-57254
* [Patch 04/11] u-boot-tools: Ignore CVE-2024-57255
* [Patch 05/11] u-boot-tools: Ignore CVE-2024-57256
* [Patch 06/11] u-boot-tools: Ignore CVE-2024-57257
* [Patch 07/11] u-boot-tools: Ignore CVE-2024-57258
* [Patch 08/11] u-boot-tools: Ignore CVE-2024-57259

For 9-11, there are no u-boot patches so ignoring them in the u-boot-tools recipe, would be fair (but patching them would be preferable):
* [Patch 09/11] u-boot-tools: Ignore CVE-2026-29007
* [Patch 10/11] u-boot-tools: Ignore CVE-2026-29008
* [Patch 11/11] u-boot-tools: Ignore CVE-2026-29009

Regards,

Quoted 55 lines

[1] https://lists.openembedded.org/g/openembedded-core/message/247868

Regards,
Hetvi
________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 16 October 2026 03:44
To: [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 9 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

Quoted 6 lines
---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)

Hello Peter, Hetvi,

There is a bit of back-and-forth around u-boot-common.inc. So I thought I would give my vision and get your thoughts.

Fundamentally, there is confusion about the usage of this .inc file:
* This is the common part of u-boot and u-boot-tools recipes (what the above patch uses)
* But, also, this may be used by downstream layers to reuse u-boot recipe parts. We basically did the revert of Peter's patch a few month ago for this reason[0].

With Paul, we would like to have a single set of patches common for both u-boot and u-boot-tools, but that can't be in u-boot-common.inc as there is a risk of breaking downstream layers.

Our idea is to create a new inc file "u-boot-common-patches.inc" (I'm not attached to the name) that contains only SRC_URI += "CVE_*.patch" and a big warning explaining that is file is only supposed to be included from layer-local recipes (namely u-boot and u-boot-tools).

This whole situation is not ideal but think the above would solve our issues and still be acceptable under stable policy.

What do you think?

Quoted 7 lines

Regards,

[0]: u-boot: move CVE patches out of the common .inc file - openembedded-core - OpenEmbedded Core layer

     https://git.openembedded.org/openembedded-core/commit/?id=f4ced8ff03147dd532a88cf3ce08d61fab057522

--
Yoann Congal
Smile ECS

--
Yoann Congal
Smile ECS

#5 lore raw
Quoted 6 lines · On Wed Oct 28, 2026 at 11:04 AM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

Thanks for clarifying. For patches 9–11, I understand that source fixes are preferred. However, networking is disabled in u-boot-tools, so building it would not compile or exercise the affected code. How should these fixes be verified?

By sharing the sources with u-boot which will compile those parts.

Quoted 121 lines

Regards,
Hetvi

________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 28 October 2026 14:37
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 12 lines · On Tue Oct 20, 2026 at 7:16 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann, Peter,

Thanks, Yoann. Continuing the discussion here as suggested.

As i explained in the other thread [1], the existing u-boot fixes are not currently applied to u-boot-tools. My CVE_STATUS changes address cases where the affected code is not compiled into the tools build.

I understand that the proposed separate include would allow both recipes to share the CVE patches without adding them to u-boot-common.inc and affecting downstream users.

Quoted 8 lines

My concern is whether we need this additional include and shared patch list for cases that can be handled through recipe-specific CVE_STATUS entries. Could we consider the held exclusions on that basis?

If maintaining one shared source patch set is the preferred approach, could you clarify how we should handle patches 2–11 of my series? Should we revisit them after the shared include is settled and retain only the exclusions still needed?

The general idea is that by sharing CVE patches with the main u-boot recipe, CVE would be also "fixed" in u-boot-tools (even if said patch is not compiled).

For 2-8, patches are in u-boot so no need to ignore them:
* [Patch 02/11] u-boot-tools: Ignore CVE-2024-42040
* [Patch 03/11] u-boot-tools: Ignore CVE-2024-57254
* [Patch 04/11] u-boot-tools: Ignore CVE-2024-57255
* [Patch 05/11] u-boot-tools: Ignore CVE-2024-57256
* [Patch 06/11] u-boot-tools: Ignore CVE-2024-57257
* [Patch 07/11] u-boot-tools: Ignore CVE-2024-57258
* [Patch 08/11] u-boot-tools: Ignore CVE-2024-57259

For 9-11, there are no u-boot patches so ignoring them in the u-boot-tools recipe, would be fair (but patching them would be preferable):
* [Patch 09/11] u-boot-tools: Ignore CVE-2026-29007
* [Patch 10/11] u-boot-tools: Ignore CVE-2026-29008
* [Patch 11/11] u-boot-tools: Ignore CVE-2026-29009

Regards,

Quoted 55 lines

[1] https://lists.openembedded.org/g/openembedded-core/message/247868

Regards,
Hetvi
________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 16 October 2026 03:44
To: [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 9 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

Quoted 6 lines
---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)

Hello Peter, Hetvi,

There is a bit of back-and-forth around u-boot-common.inc. So I thought I would give my vision and get your thoughts.

Fundamentally, there is confusion about the usage of this .inc file:
* This is the common part of u-boot and u-boot-tools recipes (what the above patch uses)
* But, also, this may be used by downstream layers to reuse u-boot recipe parts. We basically did the revert of Peter's patch a few month ago for this reason[0].

With Paul, we would like to have a single set of patches common for both u-boot and u-boot-tools, but that can't be in u-boot-common.inc as there is a risk of breaking downstream layers.

Our idea is to create a new inc file "u-boot-common-patches.inc" (I'm not attached to the name) that contains only SRC_URI += "CVE_*.patch" and a big warning explaining that is file is only supposed to be included from layer-local recipes (namely u-boot and u-boot-tools).

This whole situation is not ideal but think the above would solve our issues and still be acceptable under stable policy.

What do you think?

Quoted 7 lines

Regards,

[0]: u-boot: move CVE patches out of the common .inc file - openembedded-core - OpenEmbedded Core layer

     https://git.openembedded.org/openembedded-core/commit/?id=f4ced8ff03147dd532a88cf3ce08d61fab057522

--
Yoann Congal
Smile ECS

--
Yoann Congal
Smile ECS

Signature · 2 lines
Yoann Congal
Smile ECS
#6 lore raw

Hi Yoann,

My reason for adding CVE_STATUS for is that u-boot-tools uses tools-only_defconfig, which disables networking. The affected TCP and NFS code is therefore not compiled into the tools. not-applicable-config accurately describes this configuration.

I understand the preference for sharing source patches between u-boot and u-boot-tools. However, the tools remain unaffected by these CVEs regardless of whether the source fixes are applied, so I believe the configuration exclusions are technically valid.

The same approach is already used in the wrynose branch [1], which excludes all three CVEs. The fix for CVE-2026-29009 was also applied separately to u-boot on wrynose [2]. Additionally, For CVE-2026-29007 and CVE-2026-29008, I have not located a merged upstream fix or a formal patch submission for either CVE in the U-Boot community.

For these reasons, I believe retaining the CVE_STATUS entries is appropriate for u-boot-tools on Scarthgap. They accurately reflect the configuration being built and keep the CVE assessment consistent with the approach already accepted for Wrynose.

[1] https://github.com/openembedded/openembedded-core/blob/wrynose/meta/recipes-bsp/u-boot/u-boot-tools_2026.01.bb
[2] https://git.openembedded.org/openembedded-core/commit/?h=wrynose&id=dff41dcd5e54cad46ba91ecc45faefb0c8db9089

Regards,
Hetvi
________________________________
From: Yoann Congal <[email protected]>
Sent: 28 October 2026 16:26
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 6 lines · On Wed Oct 28, 2026 at 11:04 AM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

Thanks for clarifying. For patches 9–11, I understand that source fixes are preferred. However, networking is disabled in u-boot-tools, so building it would not compile or exercise the affected code. How should these fixes be verified?

By sharing the sources with u-boot which will compile those parts.

Quoted 118 lines

Regards,
Hetvi

________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 28 October 2026 14:37
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 12 lines · On Tue Oct 20, 2026 at 7:16 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann, Peter,

Thanks, Yoann. Continuing the discussion here as suggested.

As i explained in the other thread [1], the existing u-boot fixes are not currently applied to u-boot-tools. My CVE_STATUS changes address cases where the affected code is not compiled into the tools build.

I understand that the proposed separate include would allow both recipes to share the CVE patches without adding them to u-boot-common.inc and affecting downstream users.

Quoted 8 lines

My concern is whether we need this additional include and shared patch list for cases that can be handled through recipe-specific CVE_STATUS entries. Could we consider the held exclusions on that basis?

If maintaining one shared source patch set is the preferred approach, could you clarify how we should handle patches 2–11 of my series? Should we revisit them after the shared include is settled and retain only the exclusions still needed?

The general idea is that by sharing CVE patches with the main u-boot recipe, CVE would be also "fixed" in u-boot-tools (even if said patch is not compiled).

For 2-8, patches are in u-boot so no need to ignore them:
* [Patch 02/11] u-boot-tools: Ignore CVE-2024-42040
* [Patch 03/11] u-boot-tools: Ignore CVE-2024-57254
* [Patch 04/11] u-boot-tools: Ignore CVE-2024-57255
* [Patch 05/11] u-boot-tools: Ignore CVE-2024-57256
* [Patch 06/11] u-boot-tools: Ignore CVE-2024-57257
* [Patch 07/11] u-boot-tools: Ignore CVE-2024-57258
* [Patch 08/11] u-boot-tools: Ignore CVE-2024-57259

For 9-11, there are no u-boot patches so ignoring them in the u-boot-tools recipe, would be fair (but patching them would be preferable):
* [Patch 09/11] u-boot-tools: Ignore CVE-2026-29007
* [Patch 10/11] u-boot-tools: Ignore CVE-2026-29008
* [Patch 11/11] u-boot-tools: Ignore CVE-2026-29009

Regards,

Quoted 55 lines

[1] https://lists.openembedded.org/g/openembedded-core/message/247868

Regards,
Hetvi
________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 16 October 2026 03:44
To: [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 9 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

Quoted 6 lines
---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)

Hello Peter, Hetvi,

There is a bit of back-and-forth around u-boot-common.inc. So I thought I would give my vision and get your thoughts.

Fundamentally, there is confusion about the usage of this .inc file:
* This is the common part of u-boot and u-boot-tools recipes (what the above patch uses)
* But, also, this may be used by downstream layers to reuse u-boot recipe parts. We basically did the revert of Peter's patch a few month ago for this reason[0].

With Paul, we would like to have a single set of patches common for both u-boot and u-boot-tools, but that can't be in u-boot-common.inc as there is a risk of breaking downstream layers.

Our idea is to create a new inc file "u-boot-common-patches.inc" (I'm not attached to the name) that contains only SRC_URI += "CVE_*.patch" and a big warning explaining that is file is only supposed to be included from layer-local recipes (namely u-boot and u-boot-tools).

This whole situation is not ideal but think the above would solve our issues and still be acceptable under stable policy.

What do you think?

Quoted 7 lines

Regards,

[0]: u-boot: move CVE patches out of the common .inc file - openembedded-core - OpenEmbedded Core layer

     https://git.openembedded.org/openembedded-core/commit/?id=f4ced8ff03147dd532a88cf3ce08d61fab057522

--
Yoann Congal
Smile ECS

Quoted 3 lines

--
Yoann Congal
Smile ECS

--
Yoann Congal
Smile ECS

#7 lore raw
Quoted 19 lines · On Tue Nov 3, 2026 at 6:33 AM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

My reason for adding CVE_STATUS for is that u-boot-tools uses tools-only_defconfig, which disables networking. The affected TCP and NFS code is therefore not compiled into the tools. not-applicable-config accurately describes this configuration.

I understand the preference for sharing source patches between u-boot and u-boot-tools. However, the tools remain unaffected by these CVEs regardless of whether the source fixes are applied, so I believe the configuration exclusions are technically valid.

The same approach is already used in the wrynose branch [1], which excludes all three CVEs. The fix for CVE-2026-29009 was also applied separately to u-boot on wrynose [2].
Additionally, For CVE-2026-29007 and CVE-2026-29008, I have not located a merged upstream fix or a formal patch submission for either CVE in the U-Boot community.

Quoted 4 lines

For these reasons, I believe retaining the CVE_STATUS entries is appropriate for u-boot-tools on Scarthgap. They accurately reflect the configuration being built and keep the CVE assessment consistent with the approach already accepted for Wrynose.

The new proposed approach would have to be deployed on wrynose as well (if applicable, I have not checked).

I think that having the precise reason for a non-applicable CVE is not worth doing the CVE work twice (once with a patch, once with the CVE_STATUS). If we can fix both u-boot/u-boot-tools with a single patch it's more efficient.

I still think we should merge the sources (upstream+patches) between u-boot/u-boot-tools and fix the CVEs only once if possible.

Quoted 148 lines

[1] https://github.com/openembedded/openembedded-core/blob/wrynose/meta/recipes-bsp/u-boot/u-boot-tools_2026.01.bb
[2] https://git.openembedded.org/openembedded-core/commit/?h=wrynose&id=dff41dcd5e54cad46ba91ecc45faefb0c8db9089

Regards,
Hetvi
________________________________
From: Yoann Congal <[email protected]>
Sent: 28 October 2026 16:26
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 6 lines · On Wed Oct 28, 2026 at 11:04 AM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

Thanks for clarifying. For patches 9–11, I understand that source fixes are preferred. However, networking is disabled in u-boot-tools, so building it would not compile or exercise the affected code. How should these fixes be verified?

By sharing the sources with u-boot which will compile those parts.

Quoted 118 lines

Regards,
Hetvi

________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 28 October 2026 14:37
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 12 lines · On Tue Oct 20, 2026 at 7:16 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann, Peter,

Thanks, Yoann. Continuing the discussion here as suggested.

As i explained in the other thread [1], the existing u-boot fixes are not currently applied to u-boot-tools. My CVE_STATUS changes address cases where the affected code is not compiled into the tools build.

I understand that the proposed separate include would allow both recipes to share the CVE patches without adding them to u-boot-common.inc and affecting downstream users.

Quoted 8 lines

My concern is whether we need this additional include and shared patch list for cases that can be handled through recipe-specific CVE_STATUS entries. Could we consider the held exclusions on that basis?

If maintaining one shared source patch set is the preferred approach, could you clarify how we should handle patches 2–11 of my series? Should we revisit them after the shared include is settled and retain only the exclusions still needed?

The general idea is that by sharing CVE patches with the main u-boot recipe, CVE would be also "fixed" in u-boot-tools (even if said patch is not compiled).

For 2-8, patches are in u-boot so no need to ignore them:
* [Patch 02/11] u-boot-tools: Ignore CVE-2024-42040
* [Patch 03/11] u-boot-tools: Ignore CVE-2024-57254
* [Patch 04/11] u-boot-tools: Ignore CVE-2024-57255
* [Patch 05/11] u-boot-tools: Ignore CVE-2024-57256
* [Patch 06/11] u-boot-tools: Ignore CVE-2024-57257
* [Patch 07/11] u-boot-tools: Ignore CVE-2024-57258
* [Patch 08/11] u-boot-tools: Ignore CVE-2024-57259

For 9-11, there are no u-boot patches so ignoring them in the u-boot-tools recipe, would be fair (but patching them would be preferable):
* [Patch 09/11] u-boot-tools: Ignore CVE-2026-29007
* [Patch 10/11] u-boot-tools: Ignore CVE-2026-29008
* [Patch 11/11] u-boot-tools: Ignore CVE-2026-29009

Regards,

Quoted 55 lines

[1] https://lists.openembedded.org/g/openembedded-core/message/247868

Regards,
Hetvi
________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 16 October 2026 03:44
To: [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 9 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

Quoted 6 lines
---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)

Hello Peter, Hetvi,

There is a bit of back-and-forth around u-boot-common.inc. So I thought I would give my vision and get your thoughts.

Fundamentally, there is confusion about the usage of this .inc file:
* This is the common part of u-boot and u-boot-tools recipes (what the above patch uses)
* But, also, this may be used by downstream layers to reuse u-boot recipe parts. We basically did the revert of Peter's patch a few month ago for this reason[0].

With Paul, we would like to have a single set of patches common for both u-boot and u-boot-tools, but that can't be in u-boot-common.inc as there is a risk of breaking downstream layers.

Our idea is to create a new inc file "u-boot-common-patches.inc" (I'm not attached to the name) that contains only SRC_URI += "CVE_*.patch" and a big warning explaining that is file is only supposed to be included from layer-local recipes (namely u-boot and u-boot-tools).

This whole situation is not ideal but think the above would solve our issues and still be acceptable under stable policy.

What do you think?

Quoted 7 lines

Regards,

[0]: u-boot: move CVE patches out of the common .inc file - openembedded-core - OpenEmbedded Core layer

     https://git.openembedded.org/openembedded-core/commit/?id=f4ced8ff03147dd532a88cf3ce08d61fab057522

--
Yoann Congal
Smile ECS

Quoted 3 lines

--
Yoann Congal
Smile ECS

--
Yoann Congal
Smile ECS

Signature · 2 lines
Yoann Congal
Smile ECS
#8 lore raw

Hi Yoann,
I will prepare and submit the updated patch as discussed.
Could you also please confirm whether we need to revert all the earlier patches proposed by Paul, as discussed in the thread below?
https://lists.openembedded.org/g/openembedded-core/topic/121397520
Regards,
Hetvi

________________________________
From: Yoann Congal via openembedded-core <[email protected]>
Sent: Tuesday, November 03, 2026 14:52
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 19 lines · On Tue Nov 3, 2026 at 6:33 AM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

My reason for adding CVE_STATUS for is that u-boot-tools uses tools-only_defconfig, which disables networking. The affected TCP and NFS code is therefore not compiled into the tools. not-applicable-config accurately describes this configuration.

I understand the preference for sharing source patches between u-boot and u-boot-tools. However, the tools remain unaffected by these CVEs regardless of whether the source fixes are applied, so I believe the configuration exclusions are technically valid.

The same approach is already used in the wrynose branch [1], which excludes all three CVEs. The fix for CVE-2026-29009 was also applied separately to u-boot on wrynose [2].
Additionally, For CVE-2026-29007 and CVE-2026-29008, I have not located a merged upstream fix or a formal patch submission for either CVE in the U-Boot community.

Quoted 4 lines

For these reasons, I believe retaining the CVE_STATUS entries is appropriate for u-boot-tools on Scarthgap. They accurately reflect the configuration being built and keep the CVE assessment consistent with the approach already accepted for Wrynose.

The new proposed approach would have to be deployed on wrynose as well (if applicable, I have not checked).

I think that having the precise reason for a non-applicable CVE is not worth doing the CVE work twice (once with a patch, once with the CVE_STATUS). If we can fix both u-boot/u-boot-tools with a single patch it's more efficient.

I still think we should merge the sources (upstream+patches) between u-boot/u-boot-tools and fix the CVEs only once if possible.

Quoted 140 lines

[1] https://github.com/openembedded/openembedded-core/blob/wrynose/meta/recipes-bsp/u-boot/u-boot-tools_2026.01.bb
[2] https://git.openembedded.org/openembedded-core/commit/?h=wrynose&id=dff41dcd5e54cad46ba91ecc45faefb0c8db9089

Regards,
Hetvi
________________________________
From: Yoann Congal <[email protected]>
Sent: 28 October 2026 16:26
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 6 lines · On Wed Oct 28, 2026 at 11:04 AM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

Thanks for clarifying. For patches 9–11, I understand that source fixes are preferred. However, networking is disabled in u-boot-tools, so building it would not compile or exercise the affected code. How should these fixes be verified?

By sharing the sources with u-boot which will compile those parts.

Quoted 118 lines

Regards,
Hetvi

________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 28 October 2026 14:37
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 12 lines · On Tue Oct 20, 2026 at 7:16 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann, Peter,

Thanks, Yoann. Continuing the discussion here as suggested.

As i explained in the other thread [1], the existing u-boot fixes are not currently applied to u-boot-tools. My CVE_STATUS changes address cases where the affected code is not compiled into the tools build.

I understand that the proposed separate include would allow both recipes to share the CVE patches without adding them to u-boot-common.inc and affecting downstream users.

Quoted 8 lines

My concern is whether we need this additional include and shared patch list for cases that can be handled through recipe-specific CVE_STATUS entries. Could we consider the held exclusions on that basis?

If maintaining one shared source patch set is the preferred approach, could you clarify how we should handle patches 2–11 of my series? Should we revisit them after the shared include is settled and retain only the exclusions still needed?

The general idea is that by sharing CVE patches with the main u-boot recipe, CVE would be also "fixed" in u-boot-tools (even if said patch is not compiled).

For 2-8, patches are in u-boot so no need to ignore them:
* [Patch 02/11] u-boot-tools: Ignore CVE-2024-42040
* [Patch 03/11] u-boot-tools: Ignore CVE-2024-57254
* [Patch 04/11] u-boot-tools: Ignore CVE-2024-57255
* [Patch 05/11] u-boot-tools: Ignore CVE-2024-57256
* [Patch 06/11] u-boot-tools: Ignore CVE-2024-57257
* [Patch 07/11] u-boot-tools: Ignore CVE-2024-57258
* [Patch 08/11] u-boot-tools: Ignore CVE-2024-57259

For 9-11, there are no u-boot patches so ignoring them in the u-boot-tools recipe, would be fair (but patching them would be preferable):
* [Patch 09/11] u-boot-tools: Ignore CVE-2026-29007
* [Patch 10/11] u-boot-tools: Ignore CVE-2026-29008
* [Patch 11/11] u-boot-tools: Ignore CVE-2026-29009

Regards,

Quoted 62 lines

[1] https://lists.openembedded.org/g/openembedded-core/message/247868

Regards,
Hetvi
________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 16 October 2026 03:44
To: [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 9 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

Quoted 6 lines
---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)

Hello Peter, Hetvi,

There is a bit of back-and-forth around u-boot-common.inc. So I thought I would give my vision and get your thoughts.

Fundamentally, there is confusion about the usage of this .inc file:
* This is the common part of u-boot and u-boot-tools recipes (what the above patch uses)
* But, also, this may be used by downstream layers to reuse u-boot recipe parts. We basically did the revert of Peter's patch a few month ago for this reason[0].

With Paul, we would like to have a single set of patches common for both u-boot and u-boot-tools, but that can't be in u-boot-common.inc as there is a risk of breaking downstream layers.

Our idea is to create a new inc file "u-boot-common-patches.inc" (I'm not attached to the name) that contains only SRC_URI += "CVE_*.patch" and a big warning explaining that is file is only supposed to be included from layer-local recipes (namely u-boot and u-boot-tools).

This whole situation is not ideal but think the above would solve our issues and still be acceptable under stable policy.

What do you think?

Regards,

[0]: u-boot: move CVE patches out of the common .inc file - openembedded-core - OpenEmbedded Core layer

     https://git.openembedded.org/openembedded-core/commit/?id=f4ced8ff03147dd532a88cf3ce08d61fab057522

--
Yoann Congal
Smile ECS

Quoted 8 lines
Quoted 3 lines

--
Yoann Congal
Smile ECS

--
Yoann Congal
Smile ECS

--
Yoann Congal
Smile ECS

#9 lore raw
Quoted 1 line · On Wed Nov 4, 2026 at 1:11 PM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

Hi Hetvi,

Sorry I took so much time to anwser this.

Quoted 1 line

I will prepare and submit the updated patch as discussed.

Thanks!

Quoted 2 lines

Could you also please confirm whether we need to revert all the earlier patches proposed by Paul, as discussed in the thread below?
https://lists.openembedded.org/g/openembedded-core/topic/121397520

I think you meant "Peter" (not Paul).

"Revert" does not really apply since this commit was not merged. So, no?

Regards,

Quoted 198 lines

Regards,
Hetvi

________________________________
From: Yoann Congal via openembedded-core <[email protected]>
Sent: Tuesday, November 03, 2026 14:52
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 19 lines · On Tue Nov 3, 2026 at 6:33 AM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

My reason for adding CVE_STATUS for is that u-boot-tools uses tools-only_defconfig, which disables networking. The affected TCP and NFS code is therefore not compiled into the tools. not-applicable-config accurately describes this configuration.

I understand the preference for sharing source patches between u-boot and u-boot-tools. However, the tools remain unaffected by these CVEs regardless of whether the source fixes are applied, so I believe the configuration exclusions are technically valid.

The same approach is already used in the wrynose branch [1], which excludes all three CVEs. The fix for CVE-2026-29009 was also applied separately to u-boot on wrynose [2].
Additionally, For CVE-2026-29007 and CVE-2026-29008, I have not located a merged upstream fix or a formal patch submission for either CVE in the U-Boot community.

Quoted 4 lines

For these reasons, I believe retaining the CVE_STATUS entries is appropriate for u-boot-tools on Scarthgap. They accurately reflect the configuration being built and keep the CVE assessment consistent with the approach already accepted for Wrynose.

The new proposed approach would have to be deployed on wrynose as well (if applicable, I have not checked).

I think that having the precise reason for a non-applicable CVE is not worth doing the CVE work twice (once with a patch, once with the CVE_STATUS). If we can fix both u-boot/u-boot-tools with a single patch it's more efficient.

I still think we should merge the sources (upstream+patches) between u-boot/u-boot-tools and fix the CVEs only once if possible.

Quoted 140 lines

[1] https://github.com/openembedded/openembedded-core/blob/wrynose/meta/recipes-bsp/u-boot/u-boot-tools_2026.01.bb
[2] https://git.openembedded.org/openembedded-core/commit/?h=wrynose&id=dff41dcd5e54cad46ba91ecc45faefb0c8db9089

Regards,
Hetvi
________________________________
From: Yoann Congal <[email protected]>
Sent: 28 October 2026 16:26
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 6 lines · On Wed Oct 28, 2026 at 11:04 AM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

Thanks for clarifying. For patches 9–11, I understand that source fixes are preferred. However, networking is disabled in u-boot-tools, so building it would not compile or exercise the affected code. How should these fixes be verified?

By sharing the sources with u-boot which will compile those parts.

Quoted 118 lines

Regards,
Hetvi

________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 28 October 2026 14:37
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 12 lines · On Tue Oct 20, 2026 at 7:16 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann, Peter,

Thanks, Yoann. Continuing the discussion here as suggested.

As i explained in the other thread [1], the existing u-boot fixes are not currently applied to u-boot-tools. My CVE_STATUS changes address cases where the affected code is not compiled into the tools build.

I understand that the proposed separate include would allow both recipes to share the CVE patches without adding them to u-boot-common.inc and affecting downstream users.

Quoted 8 lines

My concern is whether we need this additional include and shared patch list for cases that can be handled through recipe-specific CVE_STATUS entries. Could we consider the held exclusions on that basis?

If maintaining one shared source patch set is the preferred approach, could you clarify how we should handle patches 2–11 of my series? Should we revisit them after the shared include is settled and retain only the exclusions still needed?

The general idea is that by sharing CVE patches with the main u-boot recipe, CVE would be also "fixed" in u-boot-tools (even if said patch is not compiled).

For 2-8, patches are in u-boot so no need to ignore them:
* [Patch 02/11] u-boot-tools: Ignore CVE-2024-42040
* [Patch 03/11] u-boot-tools: Ignore CVE-2024-57254
* [Patch 04/11] u-boot-tools: Ignore CVE-2024-57255
* [Patch 05/11] u-boot-tools: Ignore CVE-2024-57256
* [Patch 06/11] u-boot-tools: Ignore CVE-2024-57257
* [Patch 07/11] u-boot-tools: Ignore CVE-2024-57258
* [Patch 08/11] u-boot-tools: Ignore CVE-2024-57259

For 9-11, there are no u-boot patches so ignoring them in the u-boot-tools recipe, would be fair (but patching them would be preferable):
* [Patch 09/11] u-boot-tools: Ignore CVE-2026-29007
* [Patch 10/11] u-boot-tools: Ignore CVE-2026-29008
* [Patch 11/11] u-boot-tools: Ignore CVE-2026-29009

Regards,

Quoted 62 lines

[1] https://lists.openembedded.org/g/openembedded-core/message/247868

Regards,
Hetvi
________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 16 October 2026 03:44
To: [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 9 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

Quoted 6 lines
---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)

Hello Peter, Hetvi,

There is a bit of back-and-forth around u-boot-common.inc. So I thought I would give my vision and get your thoughts.

Fundamentally, there is confusion about the usage of this .inc file:
* This is the common part of u-boot and u-boot-tools recipes (what the above patch uses)
* But, also, this may be used by downstream layers to reuse u-boot recipe parts. We basically did the revert of Peter's patch a few month ago for this reason[0].

With Paul, we would like to have a single set of patches common for both u-boot and u-boot-tools, but that can't be in u-boot-common.inc as there is a risk of breaking downstream layers.

Our idea is to create a new inc file "u-boot-common-patches.inc" (I'm not attached to the name) that contains only SRC_URI += "CVE_*.patch" and a big warning explaining that is file is only supposed to be included from layer-local recipes (namely u-boot and u-boot-tools).

This whole situation is not ideal but think the above would solve our issues and still be acceptable under stable policy.

What do you think?

Regards,

[0]: u-boot: move CVE patches out of the common .inc file - openembedded-core - OpenEmbedded Core layer

     https://git.openembedded.org/openembedded-core/commit/?id=f4ced8ff03147dd532a88cf3ce08d61fab057522

--
Yoann Congal
Smile ECS

Quoted 8 lines
Quoted 3 lines

--
Yoann Congal
Smile ECS

--
Yoann Congal
Smile ECS

--
Yoann Congal
Smile ECS

Signature · 2 lines
Yoann Congal
Smile ECS

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw

Hi Yoann,

Any updates on this ?

Regards,
Hetvi

________________________________
From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) via openembedded-core <[email protected]>
Sent: Wednesday, November 04, 2026 17:41
To: [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Hi Yoann,
I will prepare and submit the updated patch as discussed.
Could you also please confirm whether we need to revert all the earlier patches proposed by Peter, as discussed in the thread below?
https://lists.openembedded.org/g/openembedded-core/topic/121397520
Regards,
Hetvi

________________________________
From: Yoann Congal via openembedded-core <[email protected]>
Sent: Tuesday, November 03, 2026 14:52
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 19 lines · On Tue Nov 3, 2026 at 6:33 AM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

My reason for adding CVE_STATUS for is that u-boot-tools uses tools-only_defconfig, which disables networking. The affected TCP and NFS code is therefore not compiled into the tools. not-applicable-config accurately describes this configuration.

I understand the preference for sharing source patches between u-boot and u-boot-tools. However, the tools remain unaffected by these CVEs regardless of whether the source fixes are applied, so I believe the configuration exclusions are technically valid.

The same approach is already used in the wrynose branch [1], which excludes all three CVEs. The fix for CVE-2026-29009 was also applied separately to u-boot on wrynose [2].
Additionally, For CVE-2026-29007 and CVE-2026-29008, I have not located a merged upstream fix or a formal patch submission for either CVE in the U-Boot community.

Quoted 4 lines

For these reasons, I believe retaining the CVE_STATUS entries is appropriate for u-boot-tools on Scarthgap. They accurately reflect the configuration being built and keep the CVE assessment consistent with the approach already accepted for Wrynose.

The new proposed approach would have to be deployed on wrynose as well (if applicable, I have not checked).

I think that having the precise reason for a non-applicable CVE is not worth doing the CVE work twice (once with a patch, once with the CVE_STATUS). If we can fix both u-boot/u-boot-tools with a single patch it's more efficient.

I still think we should merge the sources (upstream+patches) between u-boot/u-boot-tools and fix the CVEs only once if possible.

Quoted 140 lines

[1] https://github.com/openembedded/openembedded-core/blob/wrynose/meta/recipes-bsp/u-boot/u-boot-tools_2026.01.bb
[2] https://git.openembedded.org/openembedded-core/commit/?h=wrynose&id=dff41dcd5e54cad46ba91ecc45faefb0c8db9089

Regards,
Hetvi
________________________________
From: Yoann Congal <[email protected]>
Sent: 28 October 2026 16:26
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 6 lines · On Wed Oct 28, 2026 at 11:04 AM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann,

Thanks for clarifying. For patches 9–11, I understand that source fixes are preferred. However, networking is disabled in u-boot-tools, so building it would not compile or exercise the affected code. How should these fixes be verified?

By sharing the sources with u-boot which will compile those parts.

Quoted 118 lines

Regards,
Hetvi

________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 28 October 2026 14:37
To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 12 lines · On Tue Oct 20, 2026 at 7:16 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS…

Hi Yoann, Peter,

Thanks, Yoann. Continuing the discussion here as suggested.

As i explained in the other thread [1], the existing u-boot fixes are not currently applied to u-boot-tools. My CVE_STATUS changes address cases where the affected code is not compiled into the tools build.

I understand that the proposed separate include would allow both recipes to share the CVE patches without adding them to u-boot-common.inc and affecting downstream users.

Quoted 8 lines

My concern is whether we need this additional include and shared patch list for cases that can be handled through recipe-specific CVE_STATUS entries. Could we consider the held exclusions on that basis?

If maintaining one shared source patch set is the preferred approach, could you clarify how we should handle patches 2–11 of my series? Should we revisit them after the shared include is settled and retain only the exclusions still needed?

The general idea is that by sharing CVE patches with the main u-boot recipe, CVE would be also "fixed" in u-boot-tools (even if said patch is not compiled).

For 2-8, patches are in u-boot so no need to ignore them:
* [Patch 02/11] u-boot-tools: Ignore CVE-2024-42040
* [Patch 03/11] u-boot-tools: Ignore CVE-2024-57254
* [Patch 04/11] u-boot-tools: Ignore CVE-2024-57255
* [Patch 05/11] u-boot-tools: Ignore CVE-2024-57256
* [Patch 06/11] u-boot-tools: Ignore CVE-2024-57257
* [Patch 07/11] u-boot-tools: Ignore CVE-2024-57258
* [Patch 08/11] u-boot-tools: Ignore CVE-2024-57259

For 9-11, there are no u-boot patches so ignoring them in the u-boot-tools recipe, would be fair (but patching them would be preferable):
* [Patch 09/11] u-boot-tools: Ignore CVE-2026-29007
* [Patch 10/11] u-boot-tools: Ignore CVE-2026-29008
* [Patch 11/11] u-boot-tools: Ignore CVE-2026-29009

Regards,

Quoted 62 lines

[1] https://lists.openembedded.org/g/openembedded-core/message/247868

Regards,
Hetvi
________________________________
From: [email protected] <[email protected]> on behalf of Yoann Congal via lists.openembedded.org <[email protected]>
Sent: 16 October 2026 03:44
To: [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] u-boot-tools: use all patches from u-boot

Quoted 9 lines · Peter Marko via lists.openembedded.org

From: Peter Marko <[email protected]>

After sharing CVE_PRODUCT between u-boot and u-boot-tools CVEs patched in u-boot showed-up in CVE reports for u-boot-tools.

It does not make much sense to share git repository but not share all patches on top of it, so move adding all patches from u-boot recipe to a common include file where also the git repository is defined.

Quoted 6 lines
---
 meta/recipes-bsp/u-boot/u-boot-common.inc       | 10 ++++++++++
 meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb |  2 --
 meta/recipes-bsp/u-boot/u-boot_2024.01.bb       | 12 ------------
 3 files changed, 10 insertions(+), 14 deletions(-)

Hello Peter, Hetvi,

There is a bit of back-and-forth around u-boot-common.inc. So I thought I would give my vision and get your thoughts.

Fundamentally, there is confusion about the usage of this .inc file:
* This is the common part of u-boot and u-boot-tools recipes (what the above patch uses)
* But, also, this may be used by downstream layers to reuse u-boot recipe parts. We basically did the revert of Peter's patch a few month ago for this reason[0].

With Paul, we would like to have a single set of patches common for both u-boot and u-boot-tools, but that can't be in u-boot-common.inc as there is a risk of breaking downstream layers.

Our idea is to create a new inc file "u-boot-common-patches.inc" (I'm not attached to the name) that contains only SRC_URI += "CVE_*.patch" and a big warning explaining that is file is only supposed to be included from layer-local recipes (namely u-boot and u-boot-tools).

This whole situation is not ideal but think the above would solve our issues and still be acceptable under stable policy.

What do you think?

Regards,

[0]: u-boot: move CVE patches out of the common .inc file - openembedded-core - OpenEmbedded Core layer

     https://git.openembedded.org/openembedded-core/commit/?id=f4ced8ff03147dd532a88cf3ce08d61fab057522

--
Yoann Congal
Smile ECS

Quoted 8 lines
Quoted 3 lines

--
Yoann Congal
Smile ECS

--
Yoann Congal
Smile ECS

--
Yoann Congal
Smile ECS