Skip to content

[Medium] Patch docker-buildx for CVE-2026-128085 and CVE-2026-128086 by upgrading otel vendor module - #20539

Draft
Sumit Jena (SumitJenaHCL) wants to merge 1 commit into
microsoft:3.0-devfrom
Kanishk-Bansal:topic_docker-buildx-otel-3.0-dev
Draft

Sumit Jena (SumitJenaHCL) wants to merge 1 commit into
microsoft:3.0-devfrom
Kanishk-Bansal:topic_docker-buildx-otel-3.0-dev

Conversation

@SumitJenaHCL

Copy link
Copy Markdown
Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

patch docker-buildx for CVE-2026-128085
Upgraded go.opentelemetry.io/otel and go.opentelemetry.io/otel/sdk from v1.44.0 => v1.47.0

This same module bump also fixes CVE-2026-128086. Both CVEs are in OpenTelemetry and both are fixed in v1.47.0, so upgrading the module closes them together — no separate patch is required. The patch file is named after CVE-2026-128085, and the %changelog entry lists both CVEs.

go.opentelemetry.io/otel v1.47.0 requires Go 1.26, so CVE-2026-128085.patch raises the go directive in go.mod from 1.25.0 to 1.26.0, and BuildRequires is raised to golang >= 1.26. Go's minimum version selection also moves otel/trace, otel/metric and otel/sdk/metric to v1.47.0.

CVE-2026-81870.patch (trimmed)

This patch backports upstream opentelemetry-go commit 3a1412d2, first released in v1.45.0. It touches two separately versioned modules:

  • Removed: the sdk/trace hunks (batch_span_processor.go, simple_span_processor.go). This PR upgrades the vendored go.opentelemetry.io/otel/sdk to v1.47.0, which already contains this change, so these hunks no longer apply.
  • Kept: the OTLP exporter hunks (otlptrace/exporter.go, otlptracegrpc/client.go, otlptracehttp/client.go). The OTLP trace exporters aren't part of this upgrade and stay at v1.21.0, which predates the fix, and they are compiled into the shipped docker-buildx binary. These hunks stop MarshalLog() from logging the exporter endpoint, the Insecure setting and the client configuration. They are unchanged from the existing patch.

The upstream change to the zipkin exporter doesn't apply because that exporter isn't vendored. With otel/sdk v1.47.0 plus the kept hunks, the package has every part of the upstream fix that applies to it.

All 19 patches apply with zero fuzz, and the package builds.

Change Log
  • SPECS/docker-buildx/CVE-2026-128085.patch
  • SPECS/docker-buildx/CVE-2026-81870.patch
  • SPECS/docker-buildx/docker-buildx.signatures.json
  • SPECS/docker-buildx/docker-buildx.spec
  • SPECS/docker-buildx/generate_source_tarball.sh
  • Regenerated the vendor tarball as docker-buildx-0.14.0-govendor-v2.tar.gz
Does this affect the toolchain?

No

Links to CVEs
Test Methodology
  • Local Build
  • The spec has no %check section
  • go version -m on the docker-buildx plugin from the built RPM shows go.opentelemetry.io/otel, otel/sdk and otel/trace at v1.47.0

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service microsoft-github-policy-service Bot added Packaging 3.0-dev PRs Destined for AzureLinux 3.0 labels Nov 25, 2026
@v-aaditya

Copy link
Copy Markdown

Buddy Build

This branch has not been deployed

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

Labels

3.0-dev PRs Destined for AzureLinux 3.0 CVE-fixed-by-upgrade CVE fixed by package upgrade Packaging security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants