Skip to content

[Medium] Patch influxdb for CVE-2026-128085 and CVE-2026-128086 by upgrading otel vendor module - #20541

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

Sumit Jena (SumitJenaHCL) wants to merge 1 commit into
microsoft:3.0-devfrom
Kanishk-Bansal:topic_influxdb-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 influxdb 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. The vendor tarball regeneration steps in the spec comment are updated to match.

fix-format-verbs-for-go-1.26.patch (new) (Needed because tests were failing because of upgrade.)

Why it's needed: At the 1.26 language version, the go vet printf check that go test runs during %check rejects %q used with an integer or a slice. Two places do that, so the predicate and v1/services/retention tests fail to build:

predicate/logical.go:26:44: fmt.Sprintf format %q has arg op of wrong type github.com/influxdata/influxdb/v2/predicate.LogicalOperator
v1/services/retention/service_test.go:36:28: (*testing.common).Fatalf format %q has arg s.LogBuf.All() of wrong type []go.uber.org/zap/zaptest/observer.LoggedEntry

The patch backports the matching two hunks from upstream influxdb commit 75f7dfc7, which switches them to %d and %v. Only message text changes.

Why only two of the commit's six files:

  • go.mod: upstream moves to Go 1.26.3; this PR's CVE-2026-128085.patch already raises the go directive.
  • .circleci/config.yml: upstream CI configuration, not used by the RPM build.
  • kit/feature/http_proxy.go, kit/feature/http_proxy_test.go: upstream deletes this unused code because staticcheck flagged it after the Go upgrade. The RPM build doesn't run staticcheck, and the kit/feature tests pass.

With the two hunks, go vet reports nothing for these packages.

All 21 patches apply with zero fuzz, and the package builds with %check passing.

Change Log
  • SPECS/influxdb/CVE-2026-128085.patch
  • SPECS/influxdb/fix-format-verbs-for-go-1.26.patch
  • SPECS/influxdb/generate_source_tarball.sh
  • SPECS/influxdb/influxdb.signatures.json
  • SPECS/influxdb/influxdb.spec
  • Regenerated the vendor tarball as influxdb-2.7.5-vendor-v3.tar.gz
Does this affect the toolchain?

No

Links to CVEs
Test Methodology
  • Local Build
  • RUN_CHECK=y package build passed: 135 test binaries passed, 0 failed, 227/227 packages accounted for
  • go version -m /usr/bin/influxd from the built RPM shows go.opentelemetry.io/otel, otel/sdk and otel/trace at v1.47.0
  • Smoke-tested a locally built influxd: setup, write and Flux query all succeed

@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

@SumitJenaHCL
Sumit Jena (SumitJenaHCL) marked this pull request as ready for review November 26, 2026 21:52
@SumitJenaHCL
Sumit Jena (SumitJenaHCL) requested a review from a team as a code owner November 26, 2026 21:52
@SumitJenaHCL
Sumit Jena (SumitJenaHCL) marked this pull request as draft November 26, 2026 21:53

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