Skip to content

go-cross: add patch that corrects patch CVE-2025-61726#471

Open
EdTheBearded wants to merge 1 commit intotorizon:scarthgap-7.x.yfrom
EdTheBearded:tor-4230
Open

go-cross: add patch that corrects patch CVE-2025-61726#471
EdTheBearded wants to merge 1 commit intotorizon:scarthgap-7.x.yfrom
EdTheBearded:tor-4230

Conversation

@EdTheBearded
Copy link
Collaborator

On openembedded-core, a patch was added addressing CVE-2025-61726 on go recipe, but this patch introduced another bug, which was affecting us in docker (see [1] for explanation).

A patch was submitted to OE-core[1], but this is affecting a majority of our tests (that depends on running containers). So, to unblock this, we internalize the patch while it's under review. Once it gets merged, then we can safely remove the recipes-devtools/go folder from this layer.

[1] https://patchwork.yoctoproject.org/project/oe-core/patch/20260309165351.311700-1-eduardo.f120@yahoo.com/

Related-to: TOR-4230

On openembedded-core, a patch was added addressing CVE-2025-61726 on go
recipe, but this patch introduced another bug, which was affecting us in
docker (see [1] for explanation).

A patch was submitted to OE-core[1], but this is affecting a majority of
our tests (that depends on running containers). So, to unblock this, we
internalize the patch while it's under review. Once it gets merged, then
we can safely remove the recipes-devtools/go folder from this layer.

[1] https://patchwork.yoctoproject.org/project/oe-core/patch/20260309165351.311700-1-eduardo.f120@yahoo.com/

Related-to: TOR-4230
Signed-off-by: Eduardo Ferreira <eduardo.barbosa@toradex.com>
@EdTheBearded
Copy link
Collaborator Author

FYI @lucas-p-bernardes
Once this is merged, docker should be back to normal

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR internalizes an OpenEmbedded-core patch update for the Go cross recipe to address CVE-2025-61726 without the regression introduced by the original OE-core patch, unblocking container-based tests until the upstream fix is merged.

Changes:

  • Add a go-cross_%.bbappend to remove the existing CVE-2025-61726.patch from SRC_URI and append a corrected replacement patch from this layer.
  • Add a backported Go patch implementing GODEBUG=urlmaxqueryparams to cap parsed URL query parameters (plus related docs/metrics/test updates in the patch content).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
recipes-devtools/go/go-cross_%.bbappend Removes the problematic OE-core CVE patch and applies the corrected local replacement patch.
recipes-devtools/go/files/0001-net-url-add-urlmaxqueryparams-GODEBUG-to-limit-the-n.patch Backport patch content for urlmaxqueryparams limit and associated Go source/doc/test changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@@ -0,0 +1,14 @@
# TODO: remove this whole go_1.22.12.bbappend once the fix is included in the upstream release
Copy link
Collaborator

@rborn-tx rborn-tx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@Freireg Freireg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@EdTheBearded
Copy link
Collaborator Author

@MatheusRodrigues-tor could you please review this? The sooner we merge this, the sooner we get back our container automated tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants