From c2e71f3731a9b866b59f74564ead74941c19c6bc Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Wed, 25 Nov 2026 15:49:04 +0530 Subject: [PATCH 1/2] Patch influxdb for CVE-2026-128085 and CVE-2026-128086 --- SPECS/influxdb/CVE-2026-128085.patch | 289 ++++++++++++++++++ .../fix-format-verbs-for-go-1.26.patch | 46 +++ SPECS/influxdb/generate_source_tarball.sh | 6 +- SPECS/influxdb/influxdb.signatures.json | 2 +- SPECS/influxdb/influxdb.spec | 22 +- 5 files changed, 355 insertions(+), 10 deletions(-) create mode 100644 SPECS/influxdb/CVE-2026-128085.patch create mode 100644 SPECS/influxdb/fix-format-verbs-for-go-1.26.patch diff --git a/SPECS/influxdb/CVE-2026-128085.patch b/SPECS/influxdb/CVE-2026-128085.patch new file mode 100644 index 00000000000..d36f1140ae5 --- /dev/null +++ b/SPECS/influxdb/CVE-2026-128085.patch @@ -0,0 +1,289 @@ +From 8e0769c8c2a39bed8f2a8ca3cea74ccfe29105e5 Mon Sep 17 00:00:00 2001 +From: Sumit Jena +Date: Wed, 25 Nov 2026 10:00:00 +0000 +Subject: [PATCH] address CVE-2026-128085 and CVE-2026-128086 + +Upgraded go.opentelemetry.io/otel and go.opentelemetry.io/otel/sdk vendor +packages from v1.44.0 => v1.47.0 + +Upstream-reference: https://github.com/open-telemetry/opentelemetry-go/compare/v1.44.0...v1.47.0 +--- + go.mod | 72 +++++++++++++++++++++++++++++++--------------------------- + go.sum | 44 +++++++++++++++++++---------------- + 2 files changed, 62 insertions(+), 54 deletions(-) + +diff --git a/go.mod b/go.mod +index 6da6c27..6ad4752 100644 +--- a/go.mod ++++ b/go.mod +@@ -1,6 +1,6 @@ + module github.com/influxdata/influxdb/v2 + +-go 1.25.0 ++go 1.26.0 + + require ( + github.com/BurntSushi/toml v1.2.1 +@@ -54,7 +54,7 @@ require ( + github.com/spf13/cobra v1.0.0 + github.com/spf13/pflag v1.0.5 + github.com/spf13/viper v1.6.1 +- github.com/stretchr/testify v1.11.1 ++ github.com/stretchr/testify v1.12.1 + github.com/testcontainers/testcontainers-go v0.18.0 + github.com/tinylib/msgp v1.1.0 + github.com/uber/jaeger-client-go v2.28.0+incompatible +@@ -66,7 +66,7 @@ require ( + golang.org/x/crypto v0.55.0 + golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 + golang.org/x/sync v0.22.0 +- golang.org/x/sys v0.47.0 ++ golang.org/x/sys v0.48.0 + golang.org/x/text v0.41.0 + golang.org/x/time v0.14.0 + golang.org/x/tools v0.48.0 +@@ -78,15 +78,45 @@ require ( + + require ( + cel.dev/expr v0.25.2 // indirect +- cloud.google.com/go v0.123.0 // indirect + cloud.google.com/go/auth v0.18.2 // indirect + cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect ++ cloud.google.com/go/monitoring v1.24.3 // indirect ++ github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.33.0 // indirect ++ github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.54.0 // indirect ++ github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.54.0 // indirect ++ github.com/apache/arrow/go/v15 v15.0.2 // indirect ++ github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 // indirect ++ github.com/envoyproxy/go-control-plane/envoy v1.37.0 // indirect ++ github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect ++ github.com/felixge/httpsnoop v1.0.4 // indirect ++ github.com/go-jose/go-jose/v4 v4.1.4 // indirect ++ github.com/go-logr/logr v1.4.4 // indirect ++ github.com/go-logr/stdr v1.2.2 // indirect ++ github.com/google/s2a-go v0.1.9 // indirect ++ github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect ++ github.com/spiffe/go-spiffe/v2 v2.7.0 // indirect ++ go.opentelemetry.io/auto/sdk v1.2.1 // indirect ++ go.opentelemetry.io/contrib/detectors/gcp v1.44.0 // indirect ++ go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.63.0 // indirect ++ go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect ++ go.opentelemetry.io/otel/log v1.47.0 // indirect ++ go.opentelemetry.io/otel/metric v1.47.0 // indirect ++ go.opentelemetry.io/otel/sdk/metric v1.47.0 // indirect ++ go.opentelemetry.io/otel/trace v1.47.0 // indirect ++ go.yaml.in/yaml/v3 v3.0.5 // indirect ++ golang.org/x/telemetry v0.0.0-20260708182218-49f421fb7959 // indirect ++ golang.org/x/tools/go/expect v0.1.1-deprecated // indirect ++ google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa // indirect ++ google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect ++) ++ ++require ( ++ cloud.google.com/go v0.123.0 // indirect + cloud.google.com/go/bigquery v1.72.0 // indirect + cloud.google.com/go/bigtable v1.41.0 // indirect + cloud.google.com/go/compute/metadata v0.9.0 // indirect + cloud.google.com/go/iam v1.5.3 // indirect + cloud.google.com/go/longrunning v0.8.0 // indirect +- cloud.google.com/go/monitoring v1.24.3 // indirect + github.com/AlecAivazis/survey/v2 v2.3.4 // indirect + github.com/Azure/azure-pipeline-go v0.2.3 // indirect + github.com/Azure/azure-storage-blob-go v0.14.0 // indirect +@@ -100,16 +130,12 @@ require ( + github.com/Azure/go-autorest/logger v0.2.1 // indirect + github.com/Azure/go-autorest/tracing v0.6.0 // indirect + github.com/DATA-DOG/go-sqlmock v1.4.1 // indirect +- github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.33.0 // indirect +- github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.54.0 // indirect +- github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.54.0 // indirect + github.com/Masterminds/semver v1.4.2 // indirect + github.com/Masterminds/sprig v2.16.0+incompatible // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect + github.com/SAP/go-hdb v0.14.1 // indirect + github.com/aokoli/goutils v1.0.1 // indirect + github.com/apache/arrow/go/arrow v0.0.0-20211112161151-bc219186db40 // indirect +- github.com/apache/arrow/go/v15 v15.0.2 // indirect + github.com/aws/aws-sdk-go v1.34.0 // indirect + github.com/aws/aws-sdk-go-v2 v1.11.0 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.0.0 // indirect +@@ -127,7 +153,6 @@ require ( + github.com/bonitoo-io/go-sql-bigquery v0.3.4-1.4.0 // indirect + github.com/cenkalti/backoff/v4 v4.2.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect +- github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 // indirect + github.com/containerd/containerd v1.6.18 // indirect + github.com/deepmap/oapi-codegen v1.6.0 // indirect + github.com/denisenkom/go-mssqldb v0.10.0 // indirect +@@ -138,18 +163,12 @@ require ( + github.com/docker/go-units v0.5.0 // indirect + github.com/eclipse/paho.mqtt.golang v1.2.0 // indirect + github.com/editorconfig/editorconfig-core-go/v2 v2.1.1 // indirect +- github.com/envoyproxy/go-control-plane/envoy v1.37.0 // indirect +- github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect + github.com/fatih/color v1.15.0 // indirect +- github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect + github.com/fsnotify/fsnotify v1.5.4 // indirect + github.com/gabriel-vasile/mimetype v1.4.0 // indirect + github.com/glycerine/go-unsnap-stream v0.0.0-20181221182339-f9677308dec2 // indirect + github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31 // indirect +- github.com/go-jose/go-jose/v4 v4.1.4 // indirect +- github.com/go-logr/logr v1.4.3 // indirect +- github.com/go-logr/stdr v1.2.2 // indirect + github.com/go-sql-driver/mysql v1.6.0 // indirect + github.com/goccy/go-json v0.10.2 // indirect + github.com/gofrs/uuid v3.3.0+incompatible // indirect +@@ -158,7 +177,6 @@ require ( + github.com/golang/geo v0.0.0-20190916061304-5b978397cfec // indirect + github.com/golang/protobuf v1.5.4 // indirect + github.com/google/flatbuffers v23.5.26+incompatible // indirect +- github.com/google/s2a-go v0.1.9 // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.11 // indirect + github.com/googleapis/gax-go/v2 v2.17.0 // indirect +@@ -208,8 +226,6 @@ require ( + github.com/pierrec/lz4 v2.0.5+incompatible // indirect + github.com/pierrec/lz4/v4 v4.1.18 // indirect + github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect +- github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect +- github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus/procfs v0.7.3 // indirect + github.com/ryanuber/go-glob v1.0.0 // indirect + github.com/segmentio/kafka-go v0.2.0 // indirect +@@ -217,8 +233,7 @@ require ( + github.com/sirupsen/logrus v1.9.3 // indirect + github.com/spf13/afero v1.15.0 // indirect + github.com/spf13/jwalterweatherman v1.0.0 // indirect +- github.com/spiffe/go-spiffe/v2 v2.7.0 // indirect +- github.com/stretchr/objx v0.5.2 // indirect ++ github.com/stretchr/objx v0.5.3 // indirect + github.com/subosito/gotenv v1.2.0 // indirect + github.com/uber-go/tally v3.3.15+incompatible // indirect + github.com/uber/athenadriver v1.1.4 // indirect +@@ -228,29 +243,18 @@ require ( + github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect + github.com/yudai/pp v2.0.1+incompatible // indirect + github.com/zeebo/xxh3 v1.0.2 // indirect +- go.opentelemetry.io/auto/sdk v1.2.1 // indirect +- go.opentelemetry.io/contrib/detectors/gcp v1.44.0 // indirect +- go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.63.0 // indirect +- go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect +- go.opentelemetry.io/otel v1.44.0 // indirect +- go.opentelemetry.io/otel/metric v1.44.0 // indirect +- go.opentelemetry.io/otel/sdk v1.44.0 // indirect +- go.opentelemetry.io/otel/sdk/metric v1.44.0 // indirect +- go.opentelemetry.io/otel/trace v1.44.0 // indirect ++ go.opentelemetry.io/otel v1.47.0 // indirect ++ go.opentelemetry.io/otel/sdk v1.47.0 // indirect + go.uber.org/atomic v1.7.0 // indirect + golang.org/x/exp/typeparams v0.0.0-20221208152030-732eee02a75a // indirect + golang.org/x/mod v0.38.0 // indirect + golang.org/x/net v0.58.0 // indirect + golang.org/x/oauth2 v0.36.0 // indirect +- golang.org/x/telemetry v0.0.0-20260708182218-49f421fb7959 // indirect + golang.org/x/term v0.45.0 // indirect +- golang.org/x/tools/go/expect v0.1.1-deprecated // indirect + golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect + gonum.org/v1/gonum v0.17.0 // indirect + google.golang.org/api v0.264.0 // indirect + google.golang.org/genproto v0.0.0-20260128011058-8636f8732409 // indirect +- google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa // indirect +- google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect + google.golang.org/grpc v1.83.2 // indirect + gopkg.in/ini.v1 v1.51.0 // indirect + gopkg.in/square/go-jose.v2 v2.5.1 // indirect +diff --git a/go.sum b/go.sum +index d96b74b..4c7a9fa 100644 +--- a/go.sum ++++ b/go.sum +@@ -372,8 +372,8 @@ github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V + github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= + github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= + github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +-github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +-github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= ++github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= ++github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= + github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= + github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= + github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +@@ -928,8 +928,8 @@ github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3 + github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= + github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= + github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +-github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +-github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= ++github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4= ++github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0= + github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= + github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= + github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +@@ -937,8 +937,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 + github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= + github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= + github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +-github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +-github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= ++github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= ++github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= + github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= + github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= + github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= +@@ -1010,22 +1010,24 @@ go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.6 + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus= + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q= + go.opentelemetry.io/otel v0.20.0/go.mod h1:Y3ugLH2oa81t5QO+Lty+zXf8zC9L26ax4Nzoxm/dooo= +-go.opentelemetry.io/otel v1.44.0 h1:JjwHmHpA4iZ3wBxluu2fbbE7j4kqlE8jXyAyPXH7HqU= +-go.opentelemetry.io/otel v1.44.0/go.mod h1:BMgjTHL9WPRlRjL2oZCBTL4whCGtXch2H4BhOPIAyYc= ++go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM= ++go.opentelemetry.io/otel v1.47.0/go.mod h1:8wS9O2qfXrYrzp6hIF/HOYJJf/wIhFPhR2xLuP+iXQU= ++go.opentelemetry.io/otel/log v1.47.0 h1:cOTS1CcLbSQeZKanGJ+0JpF/+t4PELi3O3bbl2lqCcI= ++go.opentelemetry.io/otel/log v1.47.0/go.mod h1:9byitSQ5pLC6PpqwGXjqdMKya6ZTswHRZh2vvXT33nw= + go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= +-go.opentelemetry.io/otel/metric v1.44.0 h1:1w0gILTcHdr3YI+ixLyjemwrVnsMURbTZFrSYCdDdmc= +-go.opentelemetry.io/otel/metric v1.44.0/go.mod h1:8O7hanEPBNgEMmybD3s2VBKcgWOCsA6tzHBPODAiquo= +-go.opentelemetry.io/otel/metric/x v0.66.0 h1:YkCrx1zLOChi9ZcZ6euupOcsgzbVlec7D/xoEU1+cTA= +-go.opentelemetry.io/otel/metric/x v0.66.0/go.mod h1:d1+BDj9t96do0/1LoU1ayfCv79ZgNE41qbhBvnMOBZk= ++go.opentelemetry.io/otel/metric v1.47.0 h1:4PptaldXx3Eat1XjMZ68pPJEs5wrhlemctZE9a3UdWY= ++go.opentelemetry.io/otel/metric v1.47.0/go.mod h1:ADGSXxRrXM6bjbvLo535EstVFlPpPYZm4LBKixjDHwU= ++go.opentelemetry.io/otel/metric/x v0.69.0 h1:DjRLr15H83v+hCW7JA9NoJvOkYTtmq5YoDRbe9deYpM= ++go.opentelemetry.io/otel/metric/x v0.69.0/go.mod h1:uVvsMPMFFyj/HUQfrUnH3JjnOQ1dwFDorgFLRBasM0k= + go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= + go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= +-go.opentelemetry.io/otel/sdk v1.44.0 h1:nHYwb9lK+fJPU/dnT6s7W7Z8itMWyqrnVfbheVYrZ58= +-go.opentelemetry.io/otel/sdk v1.44.0/go.mod h1:Osuydd3Se74nqjAKxid74N5eC+jfEqfTegHRnq58oK0= +-go.opentelemetry.io/otel/sdk/metric v1.44.0 h1:3LlKgI+VjbVsjNRFZJZAJ30WjXC5VkNRks6si09iEfI= +-go.opentelemetry.io/otel/sdk/metric v1.44.0/go.mod h1:5B5pMARnXxKhltooO4xUuCBorl65a4EpnTalObqOigA= ++go.opentelemetry.io/otel/sdk v1.47.0 h1:zWXEr4j2lFefG87TU6Yg8a7ngfohIKFZHKp0Hf5hC6I= ++go.opentelemetry.io/otel/sdk v1.47.0/go.mod h1:VUc24kiOeoGsxG8G9ULx3fWKvB7jMhnGE8Oi607lgR0= ++go.opentelemetry.io/otel/sdk/metric v1.47.0 h1:lfISg2j93VT6yqdk9OfUaZmw/GfcZqCCV3jdXtsPnKw= ++go.opentelemetry.io/otel/sdk/metric v1.47.0/go.mod h1:ypLp+mW1Nt2x+Szt3b5/i1syodyts49lMOwxpDI3VGw= + go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16gUEi0Nf1iBdgw= +-go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/6gtIk= +-go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE= ++go.opentelemetry.io/otel/trace v1.47.0 h1:JOjX/Oci8K94QHddo+bbfya/Ai/nf6/dt9ZfrFNWSrM= ++go.opentelemetry.io/otel/trace v1.47.0/go.mod h1:jNaSLa2PZEYFG6fRjJABAu+bw4FS08uDmPg28lTghu0= + go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= + go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= + go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +@@ -1047,6 +1049,8 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= + go.uber.org/zap v1.14.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= + go.uber.org/zap v1.16.0 h1:uFRZXykJGK9lLY4HtgSw44DnIcAM+kRBP7x5m+NpAOM= + go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= ++go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= ++go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= + golang.org/x/crypto v0.0.0-20180505025534-4ec37c66abab/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= + golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= + golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +@@ -1272,8 +1276,8 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc + golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= + golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= + golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +-golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= +-golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= ++golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= ++golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= + golang.org/x/telemetry v0.0.0-20260708182218-49f421fb7959 h1:RJhm5l6Fo4rmEIcndxDllNhhf/fAx8qIm4t6A7vpm2A= + golang.org/x/telemetry v0.0.0-20260708182218-49f421fb7959/go.mod h1:LV7u5Oco+Z/g6XI7PqN+EUUUGGkEcmB1uj2ceI0fOVg= + golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= diff --git a/SPECS/influxdb/fix-format-verbs-for-go-1.26.patch b/SPECS/influxdb/fix-format-verbs-for-go-1.26.patch new file mode 100644 index 00000000000..4f6d4f619c2 --- /dev/null +++ b/SPECS/influxdb/fix-format-verbs-for-go-1.26.patch @@ -0,0 +1,46 @@ +From d87cd9860fbccf7bb68b81b07159b23049bcce4c Mon Sep 17 00:00:00 2001 +From: WeblWabl +Date: Mon, 18 May 2026 21:34:47 +0000 +Subject: [PATCH] fix format verbs rejected by go vet at go 1.26 + +Use %d for the integer LogicalOperator and %v for the slice of logged +entries. Both were passed to %q, which go vet reports as a printf error +once the go directive is 1.26; go test runs that check, so the predicate +and v1/services/retention packages fail to build their tests. + +Azure Linux: required because the go.opentelemetry.io/otel v1.47.0 +upgrade raises the go directive to 1.26. Only the two hunks from the +upstream commit that touch these files are backported. + +Upstream-reference: https://github.com/influxdata/influxdb/commit/75f7dfc7322fe68e31aba93c06e6192da6ce7716 +--- + predicate/logical.go | 2 +- + v1/services/retention/service_test.go | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/predicate/logical.go b/predicate/logical.go +index 21311be..41d3d72 100644 +--- a/predicate/logical.go ++++ b/predicate/logical.go +@@ -23,7 +23,7 @@ func (op LogicalOperator) Value() (datatypes.Node_Logical, error) { + default: + return 0, &errors.Error{ + Code: errors.EInvalid, +- Msg: fmt.Sprintf("the logical operator %q is invalid", op), ++ Msg: fmt.Sprintf("the logical operator %d is invalid", op), + } + } + } +diff --git a/v1/services/retention/service_test.go b/v1/services/retention/service_test.go +index 8ae1816..2593343 100644 +--- a/v1/services/retention/service_test.go ++++ b/v1/services/retention/service_test.go +@@ -33,7 +33,7 @@ func TestService_OpenDisabled(t *testing.T) { + } + + if s.LogBuf.Len() > 0 { +- t.Fatalf("service logged %q, didn't expect any logging", s.LogBuf.All()) ++ t.Fatalf("service logged %v, didn't expect any logging", s.LogBuf.All()) + } + } + diff --git a/SPECS/influxdb/generate_source_tarball.sh b/SPECS/influxdb/generate_source_tarball.sh index c0ab83ea5de..f296a61e05a 100755 --- a/SPECS/influxdb/generate_source_tarball.sh +++ b/SPECS/influxdb/generate_source_tarball.sh @@ -7,7 +7,7 @@ set -e PKG_VERSION="" SRC_TARBALL="" -VENDOR_VERSION="2" +VENDOR_VERSION="3" OUT_FOLDER="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # parameters: @@ -102,7 +102,9 @@ tar -xf $SRC_TARBALL echo "Vendor go modules..." cd $NAME_VER -go mod edit -modfile=go.mod -require=google.golang.org/grpc@v1.83.2 +go mod edit -modfile=go.mod -require=google.golang.org/grpc@v1.83.2 \ + -require=go.opentelemetry.io/otel@v1.47.0 \ + -require=go.opentelemetry.io/otel/sdk@v1.47.0 go mod tidy # gRPC 1.83.2 pushes the "go" directive to 1.25.0, which also moves GODEBUG defaults to the # 1.25 baseline. That makes crypto/x509 reject the negative-serial EC-ACC root vendored by diff --git a/SPECS/influxdb/influxdb.signatures.json b/SPECS/influxdb/influxdb.signatures.json index 39950f4720b..29e71455837 100644 --- a/SPECS/influxdb/influxdb.signatures.json +++ b/SPECS/influxdb/influxdb.signatures.json @@ -2,7 +2,7 @@ "Signatures": { "config.yaml": "d3c2224c67665929764d9056583df9796f71c36499ace0ef9dccd1df235d5ee5", "influxdb-2.7.5-static-data.tar.gz": "23e0f0503368bae46d41840934f3c907f3978cdbbc9a1f8f250e396b2d004842", - "influxdb-2.7.5-vendor-v2.tar.gz": "62eca27e1f6f19a83b8327d435ee8ccf2421fed6ba05d95d95c2cf2fdbfb2c48", + "influxdb-2.7.5-vendor-v3.tar.gz": "c287f57188f641a604b38e585ce734c4b59619356b8b95962325eafccc0c8b21", "influxdb-2.7.5.tar.gz": "4850fd4de964034fe92ef3c12940107eaf04ab377760de66dc90bf40ca6b7c92", "influxdb-user.conf": "ca5a50bb6ca9f4fcb91d745d552e70af934fdad86196c535c4eb8699a20e7aa0", "influxdb.service": "570fdbb685c8468f3c4e75b7f482bbc5c0ab4382ad2259a595e7839244747645", diff --git a/SPECS/influxdb/influxdb.spec b/SPECS/influxdb/influxdb.spec index 2261a795539..fe4be3315be 100644 --- a/SPECS/influxdb/influxdb.spec +++ b/SPECS/influxdb/influxdb.spec @@ -18,7 +18,7 @@ Summary: Scalable datastore for metrics, events, and real-time analytics Name: influxdb Version: 2.7.5 -Release: 24%{?dist} +Release: 25%{?dist} License: MIT Vendor: Microsoft Corporation Distribution: Azure Linux @@ -32,26 +32,28 @@ Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}. # 1. wget https://github.com/influxdata/influxdb/archive/refs/tags/v%%{version}.tar.gz -O %%{name}-%%{version}.tar.gz # 2. tar -xf %%{name}-%%{version}.tar.gz # 3. cd %%{name}-%%{version} -# 4. go mod edit -modfile=go.mod -require=google.golang.org/grpc@v1.83.2 +# 4. go mod edit -modfile=go.mod -require=google.golang.org/grpc@v1.83.2 \ +# -require=go.opentelemetry.io/otel@v1.47.0 \ +# -require=go.opentelemetry.io/otel/sdk@v1.47.0 # 5. go mod tidy # 6. go mod vendor # 7. tar --sort=name \ # --mtime="2021-04-26 00:00Z" \ # --owner=0 --group=0 --numeric-owner \ # --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \ -# -czf %%{name}-%%{version}-vendor-v2.tar.gz vendor +# -czf %%{name}-%%{version}-vendor-v3.tar.gz vendor # # NOTES: # - Step 5 is required: bumping a module pulls in transitive dependencies that are # otherwise missing from "go.sum", and "go mod vendor" fails without it. It also -# raises the "go" directive to 1.25.0, which gRPC 1.83.2 requires. +# raises the "go" directive to 1.26.0, which otel v1.47.0 requires. # - The script also regenerates the static assets tarball (Source2). Those assets are # not bit-reproducible and are unaffected by Go module changes, so keep publishing # the existing %%{name}-%%{version}-static-data.tar.gz and discard the new one. # - Steps 2-7 are also automated by generate_source_tarball.sh: # ./generate_source_tarball.sh --srcTarball %%{name}-%%{version}.tar.gz \ -# --outFolder /tmp --pkgVersion %%{version} --vendorVersion 2 -Source1: %{name}-%{version}-vendor-v2.tar.gz +# --outFolder /tmp --pkgVersion %%{version} --vendorVersion 3 +Source1: %{name}-%{version}-vendor-v3.tar.gz # Below is a manually created tarball, no download link. # predownloaded assets include ui assets and swager json. Used to replace fetch-assets and fetch-swagger script. # Use generate_source_tarbbal.sh to get this generated from a source code file. @@ -86,8 +88,10 @@ Patch15: CVE-2026-78663.patch Patch16: CVE-2026-78669.patch Patch17: CVE-2026-97032.patch Patch18: remove-emudhra-ca-roots.patch +Patch19: CVE-2026-128085.patch +Patch20: fix-format-verbs-for-go-1.26.patch BuildRequires: clang -BuildRequires: golang >= 1.25 +BuildRequires: golang >= 1.26 BuildRequires: kernel-headers BuildRequires: protobuf-devel BuildRequires: rust < 1.85.0 @@ -175,6 +179,10 @@ go test ./... %{_tmpfilesdir}/influxdb.conf %changelog +* Wed Nov 25 2026 Sumit Jena - 2.7.5-25 +- Patch for CVE-2026-128085 and CVE-2026-128086 +- Backport upstream fix for format verbs that go vet rejects at go 1.26 + * Tue Nov 10 2026 Jon Slobodzian - 2.7.5-24 - Remove additional emSign G1, C1 and ECC C3 roots from the Snowflake CA bundle. From 4e07a3c22d621d13fdf98524c6ea6232a2fdc852 Mon Sep 17 00:00:00 2001 From: Aditya Singh Date: Fri, 27 Nov 2026 12:36:09 +0530 Subject: [PATCH 2/2] Added patch for CVE-2026-97045, CVE-2026-78661, CVE-2026-116591, CVE-2026-116587, CVE-2026-116586, CVE-2026-116585, CVE-2026-114456 --- SPECS/influxdb/CVE-2026-114456.patch | 366 ++++++++++++++++++++++++ SPECS/influxdb/CVE-2026-116585.patch | 46 +++ SPECS/influxdb/CVE-2026-116586.patch | 119 ++++++++ SPECS/influxdb/CVE-2026-116587.patch | 412 +++++++++++++++++++++++++++ SPECS/influxdb/CVE-2026-116591.patch | 121 ++++++++ SPECS/influxdb/CVE-2026-78661.patch | 95 ++++++ SPECS/influxdb/CVE-2026-97045.patch | 75 +++++ SPECS/influxdb/influxdb.spec | 15 +- 8 files changed, 1246 insertions(+), 3 deletions(-) create mode 100644 SPECS/influxdb/CVE-2026-114456.patch create mode 100644 SPECS/influxdb/CVE-2026-116585.patch create mode 100644 SPECS/influxdb/CVE-2026-116586.patch create mode 100644 SPECS/influxdb/CVE-2026-116587.patch create mode 100644 SPECS/influxdb/CVE-2026-116591.patch create mode 100644 SPECS/influxdb/CVE-2026-78661.patch create mode 100644 SPECS/influxdb/CVE-2026-97045.patch diff --git a/SPECS/influxdb/CVE-2026-114456.patch b/SPECS/influxdb/CVE-2026-114456.patch new file mode 100644 index 00000000000..a702c4158f9 --- /dev/null +++ b/SPECS/influxdb/CVE-2026-114456.patch @@ -0,0 +1,366 @@ +From 658c79c08c8edf8b937d8d579afbeeb7b13e618d Mon Sep 17 00:00:00 2001 +From: AllSpark +Date: Wed, 11 Nov 2026 11:46:59 +0000 +Subject: [PATCH] SNOW-4109574: Accept external-browser callback Origin only + from the Snowflake host + +Backport the account-origin callback validation to the vendored +influxdata/gosnowflake v1.6.9 driver. Preserve originless/null-origin +GET compatibility, reject unmatched POST/GET origins, and keep waiting +after unrelated requests. + +Include the upstream callback connection-race follow-up, which serves +callbacks through http.Server so an idle preconnect or partial request +cannot block the real browser redirect. + +Raise the vendored gosnowflake module's Go language level from 1.16 to +1.21 in vendor/modules.txt for the upstream maps.Copy call. The main +module already requires Go 1.25. + +Signed-off-by: Azure Linux Security Servicing Account +Upstream-reference: AI Backport of https://github.com/snowflakedb/gosnowflake/commit/386bbc9d8caacc05ee8b1f3cc9dc1305c51b60e4.patch +Upstream-reference: AI Backport of https://github.com/snowflakedb/gosnowflake/commit/5f174118ad08e2b60ba7473d8fe8894a518aa372.patch +--- + .../gosnowflake/authexternalbrowser.go | 284 ++++++++++++++---- + vendor/modules.txt | 2 +- + 2 files changed, 232 insertions(+), 54 deletions(-) + +diff --git a/vendor/github.com/influxdata/gosnowflake/authexternalbrowser.go b/vendor/github.com/influxdata/gosnowflake/authexternalbrowser.go +index 1ec72d5..59e6e1b 100644 +--- a/vendor/github.com/influxdata/gosnowflake/authexternalbrowser.go ++++ b/vendor/github.com/influxdata/gosnowflake/authexternalbrowser.go +@@ -6,15 +6,17 @@ import ( + "bytes" + "context" + "encoding/json" ++ "errors" + "fmt" + "io" + "io/ioutil" +- "log" ++ "maps" + "net" + "net/http" + "net/url" + "strconv" + "strings" ++ "time" + + "github.com/pkg/browser" + ) +@@ -174,7 +176,11 @@ func authenticateByExternalBrowser( + if err != nil { + return nil, nil, err + } +- defer l.Close() ++ defer func() { ++ if err := l.Close(); err != nil && !errors.Is(err, net.ErrClosed) { ++ logger.Errorf("error while closing TCP listener for external browser (%v). %v", l.Addr().String(), err) ++ } ++ }() + + callbackPort := l.Addr().(*net.TCPAddr).Port + idpURL, proofKey, err := getIdpURLProofKey( +@@ -187,66 +193,238 @@ func authenticateByExternalBrowser( + return nil, nil, err + } + +- encodedSamlResponseChan := make(chan string) +- errChan := make(chan error) ++ encodedSamlResponse, err := receiveExternalBrowserCallback(ctx, l, sr.getURL(), application) ++ if err != nil { ++ if ctx.Err() == nil { ++ logger.WithContext(ctx).Errorf("unable to receive external browser response. err: %v", err) ++ } ++ return nil, nil, err ++ } ++ ++ escapedSamlResponse, err := url.QueryUnescape(encodedSamlResponse) ++ if err != nil { ++ logger.WithContext(ctx).Errorf("unable to unescape saml response. err: %v", err) ++ return nil, nil, err ++ } ++ return []byte(escapedSamlResponse), []byte(proofKey), nil ++} + +- var encodedSamlResponse string +- var errFromGoroutine error +- conn, err := l.Accept() ++func getTokenFromPostRequest(request *http.Request) (string, error) { ++ if request.Body == nil { ++ return "", nil ++ } ++ body, err := io.ReadAll(request.Body) ++ if closeErr := request.Body.Close(); err == nil { ++ err = closeErr ++ } + if err != nil { +- logger.WithContext(ctx).Errorf("unable to accept connection. err: %v", err) +- log.Fatal(err) +- } +- go func(c net.Conn) { +- var buf bytes.Buffer +- total := 0 +- encodedSamlResponse := "" +- var errAccept error +- for { +- b := make([]byte, bufSize) +- n, err := c.Read(b) ++ return "", err ++ } ++ if token := tokenFromJSONCallbackBody(body); token != "" { ++ return token, nil ++ } ++ return tokenFromFormCallbackBody(string(body)), nil ++} ++ ++func tokenFromJSONCallbackBody(body []byte) string { ++ var payload struct { ++ Token string `json:"token"` ++ } ++ if err := json.Unmarshal(body, &payload); err != nil { ++ return "" ++ } ++ return payload.Token ++} ++ ++func tokenFromFormCallbackBody(body string) string { ++ for _, pair := range strings.Split(body, "&") { ++ key, value, found := strings.Cut(pair, "=") ++ if found && key == "token" { ++ decoded, err := url.QueryUnescape(value) + if err != nil { +- if err != io.EOF { +- logger.Infof("error reading from socket. err: %v", err) +- errAccept = &SnowflakeError{ +- Number: ErrFailedToGetExternalBrowserResponse, +- SQLState: SQLStateConnectionRejected, +- Message: errMsgFailedToGetExternalBrowserResponse, +- MessageArgs: []interface{}{err}, +- } +- } +- break +- } +- total += n +- buf.Write(b) +- if n < bufSize { +- // We successfully read all data +- s := string(buf.Bytes()[:total]) +- encodedSamlResponse, errAccept = getTokenFromResponse(s) +- break ++ return "" + } +- buf.Grow(bufSize) ++ return decoded + } +- if encodedSamlResponse != "" { +- httpResponse := buildResponse(application) +- c.Write(httpResponse.Bytes()) ++ } ++ return "" ++} ++ ++func externalBrowserOriginPathIsEmpty(path string) bool { ++ return path == "" || path == "/" ++} ++ ++func externalBrowserOriginMatchesAccount(origin string, accountURL *url.URL) bool { ++ parsedOrigin, err := url.Parse(origin) ++ if err != nil || accountURL == nil || ++ parsedOrigin.User != nil || !externalBrowserOriginPathIsEmpty(parsedOrigin.Path) || ++ parsedOrigin.RawQuery != "" || parsedOrigin.Fragment != "" { ++ return false ++ } ++ return strings.EqualFold(parsedOrigin.Scheme, accountURL.Scheme) && ++ strings.EqualFold(parsedOrigin.Hostname(), accountURL.Hostname()) && ++ effectiveURLPort(parsedOrigin) == effectiveURLPort(accountURL) ++} ++ ++func effectiveURLPort(parsedURL *url.URL) string { ++ if port := parsedURL.Port(); port != "" { ++ return port ++ } ++ switch strings.ToLower(parsedURL.Scheme) { ++ case "http": ++ return "80" ++ case "https": ++ return "443" ++ default: ++ return "" ++ } ++} ++ ++func validExternalBrowserPreflight(request *http.Request, accountURL *url.URL) bool { ++ origins := request.Header.Values("Origin") ++ if len(origins) != 1 || !externalBrowserOriginMatchesAccount(origins[0], accountURL) { ++ return false ++ } ++ requestedMethods := request.Header.Values("Access-Control-Request-Method") ++ if len(requestedMethods) != 1 || !strings.EqualFold(requestedMethods[0], http.MethodPost) { ++ return false ++ } ++ requestedHeaderValues := request.Header.Values("Access-Control-Request-Headers") ++ if len(requestedHeaderValues) == 0 { ++ return true ++ } ++ for _, requestedHeaders := range requestedHeaderValues { ++ for _, header := range strings.Split(requestedHeaders, ",") { ++ if !strings.EqualFold(strings.TrimSpace(header), httpHeaderContentType) { ++ return false ++ } + } +- c.Close() +- encodedSamlResponseChan <- encodedSamlResponse +- errChan <- errAccept +- }(conn) ++ } ++ return true ++} ++ ++func writeExternalBrowserResponse(w http.ResponseWriter, statusCode int, headers http.Header, body string) error { ++ maps.Copy(w.Header(), headers) ++ w.Header().Set("Connection", "close") ++ w.Header().Set("Content-Length", strconv.Itoa(len(body))) ++ if body != "" { ++ w.Header().Set("Content-Type", "text/html; charset=utf-8") ++ } ++ w.WriteHeader(statusCode) ++ if _, err := io.WriteString(w, body); err != nil { ++ return err ++ } ++ // The receiver closes the server as soon as a token is published. Flush a ++ // complete response first so the browser still receives the success page. ++ return http.NewResponseController(w).Flush() ++} ++ ++func receiveExternalBrowserCallback(ctx context.Context, listener net.Listener, accountURL *url.URL, application string) (string, error) { ++ tokens := make(chan string, 1) ++ server := &http.Server{ ++ ReadTimeout: 10 * time.Second, ++ WriteTimeout: 10 * time.Second, ++ Handler: http.HandlerFunc(func(w http.ResponseWriter, request *http.Request) { ++ // GET callbacks do not use the body. Do not wait for a client to send ++ // an unused body before writing its response. ++ if err := http.NewResponseController(w).EnableFullDuplex(); err != nil { ++ logger.Debugf("unable to enable external browser callback response: %v", err) ++ return ++ } ++ respond := func(statusCode int, headers http.Header, body string) { ++ if err := writeExternalBrowserResponse(w, statusCode, headers, body); err != nil { ++ logger.Debugf("unable to write external browser callback response: %v", err) ++ } ++ } ++ if request.Method == http.MethodOptions { ++ headers := make(http.Header) ++ statusCode := http.StatusForbidden ++ if validExternalBrowserPreflight(request, accountURL) { ++ origin := request.Header.Get("Origin") ++ headers.Set("Access-Control-Allow-Origin", origin) ++ headers.Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS") ++ headers.Set("Access-Control-Allow-Headers", httpHeaderContentType) ++ statusCode = http.StatusOK ++ } ++ respond(statusCode, headers, "") ++ return ++ } + +- encodedSamlResponse = <-encodedSamlResponseChan +- errFromGoroutine = <-errChan ++ origins := request.Header.Values("Origin") ++ originPresent := len(origins) != 0 ++ origin := "" ++ if len(origins) == 1 { ++ origin = origins[0] ++ } ++ originMatchesAccount := len(origins) == 1 && ++ !strings.EqualFold(strings.TrimSpace(origin), "null") && ++ externalBrowserOriginMatchesAccount(origin, accountURL) ++ rejectOrigin := false ++ if request.Method == http.MethodPost { ++ rejectOrigin = !originMatchesAccount ++ } else { ++ rejectOrigin = originPresent && !strings.EqualFold(strings.TrimSpace(origin), "null") && !originMatchesAccount ++ } ++ if rejectOrigin { ++ respond(http.StatusForbidden, nil, "") ++ return ++ } + +- if errFromGoroutine != nil { +- return nil, nil, errFromGoroutine ++ var encodedSamlResponse string ++ var err error ++ switch request.Method { ++ case http.MethodPost: ++ encodedSamlResponse, err = getTokenFromPostRequest(request) ++ case http.MethodGet: ++ if request.URL.Path != "/" || !strings.HasPrefix(request.URL.RawQuery, "token=") { ++ respond(http.StatusBadRequest, nil, "") ++ return ++ } ++ encodedSamlResponse, err = getTokenFromResponse( ++ request.Method + " " + request.RequestURI + " HTTP/1.1\r\n", ++ ) ++ default: ++ respond(http.StatusMethodNotAllowed, nil, "") ++ return ++ } ++ if err != nil || encodedSamlResponse == "" { ++ respond(http.StatusBadRequest, nil, "") ++ return ++ } ++ body := fmt.Sprintf(successHTML, application) ++ headers := make(http.Header) ++ if origin != "" && !strings.EqualFold(strings.TrimSpace(origin), "null") { ++ headers.Set("Access-Control-Allow-Origin", origin) ++ headers.Set("Vary", "Origin") ++ } ++ respond(http.StatusOK, headers, body) ++ select { ++ case tokens <- encodedSamlResponse: ++ default: ++ } ++ }), + } ++ serveErrors := make(chan error, 1) ++ // Each connection is handled concurrently, so idle preconnects and partial ++ // requests cannot block a later authentication callback. ++ go func() { ++ serveErrors <- server.Serve(listener) ++ }() ++ defer func() { ++ if err := server.Close(); err != nil { ++ logger.Warnf("error while closing external browser callback server: %v", err) ++ } ++ }() + +- escapedSamlResponse, err := url.QueryUnescape(encodedSamlResponse) +- if err != nil { +- logger.WithContext(ctx).Errorf("unable to unescape saml response. err: %v", err) +- return nil, nil, err ++ select { ++ case token := <-tokens: ++ return token, nil ++ case <-ctx.Done(): ++ return "", ctx.Err() ++ case err := <-serveErrors: ++ if ctx.Err() != nil { ++ return "", ctx.Err() ++ } ++ return "", err + } +- return []byte(escapedSamlResponse), []byte(proofKey), nil + } +diff --git a/vendor/modules.txt b/vendor/modules.txt +index 0c84154..a63f031 100644 +--- a/vendor/modules.txt ++++ b/vendor/modules.txt +@@ -883,7 +883,7 @@ github.com/influxdata/flux/values + github.com/influxdata/flux/values/objects + github.com/influxdata/flux/values/valuestest + # github.com/influxdata/gosnowflake v1.6.9 +-## explicit; go 1.16 ++## explicit; go 1.21 + github.com/influxdata/gosnowflake + # github.com/influxdata/httprouter v1.3.1-0.20191122104820-ee83e2772f69 + ## explicit; go 1.7 diff --git a/SPECS/influxdb/CVE-2026-116585.patch b/SPECS/influxdb/CVE-2026-116585.patch new file mode 100644 index 00000000000..f99aad64be5 --- /dev/null +++ b/SPECS/influxdb/CVE-2026-116585.patch @@ -0,0 +1,46 @@ +From d72a60efc8ace6ee98acae529b2b0d74d15e2d1f Mon Sep 17 00:00:00 2001 +From: AllSpark +Date: Tue, 3 Nov 2026 20:57:39 +0000 +Subject: [PATCH] cipher/cbc_hmac: don't panic on empty ciphertext + +Signed-off-by: Azure Linux Security Servicing Account +Upstream-reference: AI Backport of https://github.com/go-jose/go-jose/commit/74114c2fa22669a2b2a296746eaa82e15566fd54.patch +--- + .../go-jose/go-jose/v4/cipher/cbc_hmac.go | 4 +++- + .../gopkg.in/square/go-jose.v2/cipher/cbc_hmac.go | 4 +++- + 2 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/vendor/github.com/go-jose/go-jose/v4/cipher/cbc_hmac.go b/vendor/github.com/go-jose/go-jose/v4/cipher/cbc_hmac.go +index af029ce..daf11eb 100644 +--- a/vendor/github.com/go-jose/go-jose/v4/cipher/cbc_hmac.go ++++ b/vendor/github.com/go-jose/go-jose/v4/cipher/cbc_hmac.go +@@ -176,7 +176,9 @@ func padBuffer(buffer []byte, blockSize int) []byte { + + // Remove padding + func unpadBuffer(buffer []byte, blockSize int) ([]byte, error) { +- if len(buffer)%blockSize != 0 { ++ // A padded buffer can't be empty because an empty input is padded with ++ // `blockSize` bytes, resulting in a non-empty ciphertext. ++ if len(buffer) == 0 || len(buffer)%blockSize != 0 { + return nil, errors.New("go-jose/go-jose: invalid padding") + } + +diff --git a/vendor/gopkg.in/square/go-jose.v2/cipher/cbc_hmac.go b/vendor/gopkg.in/square/go-jose.v2/cipher/cbc_hmac.go +index 126b85c..c1555ba 100644 +--- a/vendor/gopkg.in/square/go-jose.v2/cipher/cbc_hmac.go ++++ b/vendor/gopkg.in/square/go-jose.v2/cipher/cbc_hmac.go +@@ -176,7 +176,9 @@ func padBuffer(buffer []byte, blockSize int) []byte { + + // Remove padding + func unpadBuffer(buffer []byte, blockSize int) ([]byte, error) { +- if len(buffer)%blockSize != 0 { ++ // A padded buffer can't be empty because an empty input is padded with ++ // `blockSize` bytes, resulting in a non-empty ciphertext. ++ if len(buffer) == 0 || len(buffer)%blockSize != 0 { + return nil, errors.New("square/go-jose: invalid padding") + } + + +-- +2.45.4 + diff --git a/SPECS/influxdb/CVE-2026-116586.patch b/SPECS/influxdb/CVE-2026-116586.patch new file mode 100644 index 00000000000..c1e06635308 --- /dev/null +++ b/SPECS/influxdb/CVE-2026-116586.patch @@ -0,0 +1,119 @@ +From dd779c96a212716dca7249e7f89e035bbc7a3531 Mon Sep 17 00:00:00 2001 +From: Jacob Hoffman-Andrews +Date: Thu, 3 Sep 2026 09:14:16 -0700 +Subject: [PATCH] json: limit stack depth (#290) + +This cleanly patches in an upstream fix from Go's stdlib: + +https://go-review.googlesource.com/c/go/+/199837 + +Original issue, preventing stack overflow: + +https://github.com/golang/go/issues/31789 + +The need for us to backport this patch was reported independently by +Dohyun Kim (@azza999), Joshua Rogers of AISLE Research, and Sueun Cho. +Thanks! + +Signed-off-by: Azure Linux Security Servicing Account +Upstream-reference: https://github.com/go-jose/go-jose/commit/a31af25836222f4c45d366d6e8f9b1049dd9935a.patch +--- + .../github.com/go-jose/go-jose/v4/json/scanner.go | 19 +++++++++++++------ + vendor/gopkg.in/square/go-jose.v2/json/scanner.go | 19 +++++++++++++------ + 2 files changed, 26 insertions(+), 12 deletions(-) + +diff --git a/vendor/github.com/go-jose/go-jose/v4/json/scanner.go b/vendor/github.com/go-jose/go-jose/v4/json/scanner.go +index ee6622e..3bd29f3 100644 +--- a/vendor/github.com/go-jose/go-jose/v4/json/scanner.go ++++ b/vendor/github.com/go-jose/go-jose/v4/json/scanner.go +@@ -140,6 +140,10 @@ const ( + parseArrayValue // parsing array value + ) + ++// This limits the max nesting depth to prevent stack overflow. ++// This is permitted by https://tools.ietf.org/html/rfc7159#section-9 ++const maxNestingDepth = 10000 ++ + // reset prepares the scanner for use. + // It must be called before calling s.step. + func (s *scanner) reset() { +@@ -170,8 +174,13 @@ func (s *scanner) eof() int { + } + + // pushParseState pushes a new parse state p onto the parse stack. +-func (s *scanner) pushParseState(p int) { +- s.parseState = append(s.parseState, p) ++// an error state is returned if maxNestingDepth was exceeded, otherwise successState is returned. ++func (s *scanner) pushParseState(c byte, newParseState int, successState int) int { ++ s.parseState = append(s.parseState, newParseState) ++ if len(s.parseState) <= maxNestingDepth { ++ return successState ++ } ++ return s.error(c, "exceeded max depth") + } + + // popParseState pops a parse state (already obtained) off the stack +@@ -211,12 +220,10 @@ func stateBeginValue(s *scanner, c byte) int { + switch c { + case '{': + s.step = stateBeginStringOrEmpty +- s.pushParseState(parseObjectKey) +- return scanBeginObject ++ return s.pushParseState(c, parseObjectKey, scanBeginObject) + case '[': + s.step = stateBeginValueOrEmpty +- s.pushParseState(parseArrayValue) +- return scanBeginArray ++ return s.pushParseState(c, parseArrayValue, scanBeginArray) + case '"': + s.step = stateInString + return scanBeginLiteral +diff --git a/vendor/gopkg.in/square/go-jose.v2/json/scanner.go b/vendor/gopkg.in/square/go-jose.v2/json/scanner.go +index ee6622e..3bd29f3 100644 +--- a/vendor/gopkg.in/square/go-jose.v2/json/scanner.go ++++ b/vendor/gopkg.in/square/go-jose.v2/json/scanner.go +@@ -140,6 +140,10 @@ const ( + parseArrayValue // parsing array value + ) + ++// This limits the max nesting depth to prevent stack overflow. ++// This is permitted by https://tools.ietf.org/html/rfc7159#section-9 ++const maxNestingDepth = 10000 ++ + // reset prepares the scanner for use. + // It must be called before calling s.step. + func (s *scanner) reset() { +@@ -170,8 +174,13 @@ func (s *scanner) eof() int { + } + + // pushParseState pushes a new parse state p onto the parse stack. +-func (s *scanner) pushParseState(p int) { +- s.parseState = append(s.parseState, p) ++// an error state is returned if maxNestingDepth was exceeded, otherwise successState is returned. ++func (s *scanner) pushParseState(c byte, newParseState int, successState int) int { ++ s.parseState = append(s.parseState, newParseState) ++ if len(s.parseState) <= maxNestingDepth { ++ return successState ++ } ++ return s.error(c, "exceeded max depth") + } + + // popParseState pops a parse state (already obtained) off the stack +@@ -211,12 +220,10 @@ func stateBeginValue(s *scanner, c byte) int { + switch c { + case '{': + s.step = stateBeginStringOrEmpty +- s.pushParseState(parseObjectKey) +- return scanBeginObject ++ return s.pushParseState(c, parseObjectKey, scanBeginObject) + case '[': + s.step = stateBeginValueOrEmpty +- s.pushParseState(parseArrayValue) +- return scanBeginArray ++ return s.pushParseState(c, parseArrayValue, scanBeginArray) + case '"': + s.step = stateInString + return scanBeginLiteral +-- +2.45.4 + diff --git a/SPECS/influxdb/CVE-2026-116587.patch b/SPECS/influxdb/CVE-2026-116587.patch new file mode 100644 index 00000000000..d13e3bc685a --- /dev/null +++ b/SPECS/influxdb/CVE-2026-116587.patch @@ -0,0 +1,412 @@ +From d6550eaf0ca1defee08c11254a0144e3df7aa192 Mon Sep 17 00:00:00 2001 +From: AllSpark +Date: Tue, 3 Nov 2026 20:53:39 +0000 +Subject: [PATCH] Backport RSA JWK DoS mitigations and header key parsing + hardening + +Signed-off-by: Azure Linux Security Servicing Account +Upstream-reference: AI Backport of https://github.com/go-jose/go-jose/commit/a0111f82742fa92bceec9ede40845e73319e6230.patch +https://github.com/go-jose/go-jose/commit/0e502b87c7aa651155b11ae8e195ec33ce10230a.patch +--- + vendor/github.com/go-jose/go-jose/v4/jwe.go | 18 ++++---- + vendor/github.com/go-jose/go-jose/v4/jwk.go | 51 ++++++++++++++++++++---- + vendor/github.com/go-jose/go-jose/v4/jws.go | 29 ++++++++------ + vendor/github.com/go-jose/go-jose/v4/shared.go | 31 +++++---------- + vendor/gopkg.in/square/go-jose.v2/jwe.go | 2 - + vendor/gopkg.in/square/go-jose.v2/jwk.go | 51 ++++++++++++++++++++---- + vendor/gopkg.in/square/go-jose.v2/shared.go | 17 +++++--- + 7 files changed, 134 insertions(+), 65 deletions(-) + +diff --git a/vendor/github.com/go-jose/go-jose/v4/jwe.go b/vendor/github.com/go-jose/go-jose/v4/jwe.go +index 6102f91..ba8ae98 100644 +--- a/vendor/github.com/go-jose/go-jose/v4/jwe.go ++++ b/vendor/github.com/go-jose/go-jose/v4/jwe.go +@@ -198,15 +198,6 @@ func (parsed *rawJSONWebEncryption) sanitized( + } + } + +- // Note: this must be called _after_ we parse the protected header, +- // otherwise fields from the protected header will not get picked up. +- var err error +- mergedHeaders := obj.mergedHeaders(nil) +- obj.Header, err = mergedHeaders.sanitized() +- if err != nil { +- return nil, fmt.Errorf("go-jose/go-jose: cannot sanitize merged headers: %v (%v)", err, mergedHeaders) +- } +- + if len(parsed.Recipients) == 0 { + obj.recipients = []recipientInfo{ + { +@@ -260,6 +251,15 @@ func (parsed *rawJSONWebEncryption) sanitized( + } + } + ++ // Note: this must be called _after_ we parse the protected header, ++ // otherwise fields from the protected header will not get picked up. ++ mergedHeaders := obj.mergedHeaders(nil) ++ var err error ++ obj.Header, err = mergedHeaders.sanitized() ++ if err != nil { ++ return nil, fmt.Errorf("go-jose/go-jose: cannot sanitize merged headers: %w", err) ++ } ++ + obj.iv = parsed.Iv.bytes() + obj.ciphertext = parsed.Ciphertext.bytes() + obj.tag = parsed.Tag.bytes() +diff --git a/vendor/github.com/go-jose/go-jose/v4/jwk.go b/vendor/github.com/go-jose/go-jose/v4/jwk.go +index 164d6a1..9c63ea3 100644 +--- a/vendor/github.com/go-jose/go-jose/v4/jwk.go ++++ b/vendor/github.com/go-jose/go-jose/v4/jwk.go +@@ -177,13 +177,29 @@ func (k JSONWebKey) MarshalJSON() ([]byte, error) { + // UnmarshalJSON reads a key from its JSON representation. + // + // Returns ErrUnsupportedKeyType for unrecognized or unsupported "kty" header values. +-func (k *JSONWebKey) UnmarshalJSON(data []byte) (err error) { ++// ++// Directly unmarshaling a JWK is not safe for untrusted input. ++func (k *JSONWebKey) UnmarshalJSON(data []byte) error { ++ return k.unmarshalJSON(data, true) ++} ++ ++// unmarshalJSON reads a key from its JSON representation. ++// ++// If allowPrivate is false, a JWK with private key material is rejected and the ++// function is safe for use against untrusted input. ++func (k *JSONWebKey) unmarshalJSON(data []byte, allowPrivate bool) (err error) { + var raw rawJSONWebKey + err = json.Unmarshal(data, &raw) + if err != nil { + return err + } + ++ if !allowPrivate && ++ (raw.K != nil || raw.D != nil || raw.P != nil || raw.Q != nil || ++ raw.Dp != nil || raw.Dq != nil || raw.Qi != nil) { ++ return errors.New("go-jose/go-jose: JWK contains private parameters") ++ } ++ + certs, err := parseCertificateChain(raw.X5c) + if err != nil { + return fmt.Errorf("go-jose/go-jose: failed to unmarshal x5c field: %s", err) +@@ -493,13 +509,25 @@ func (k *JSONWebKey) Valid() bool { + return true + } + ++// MaxRSAModulusBits is the largest RSA modulus size, in bits, that will be ++// accepted when parsing a JWK. Applications that need larger keys can raise ++// this limit. ++// ++// If modifying MaxRSAModulusBits, do it before any parsing occurs. ++var MaxRSAModulusBits = 4096 ++ + func (key rawJSONWebKey) rsaPublicKey() (*rsa.PublicKey, error) { + if key.N == nil || key.E == nil { + return nil, fmt.Errorf("go-jose/go-jose: invalid RSA key, missing n/e values") + } + ++ n := key.N.bigInt() ++ if n.BitLen() > MaxRSAModulusBits { ++ return nil, fmt.Errorf("go-jose/go-jose: invalid RSA key, modulus too large") ++ } ++ + return &rsa.PublicKey{ +- N: key.N.bigInt(), ++ N: n, + E: key.E.toInt(), + }, nil + } +@@ -642,16 +670,23 @@ func (key rawJSONWebKey) rsaPrivateKey() (*rsa.PrivateKey, error) { + return nil, fmt.Errorf("go-jose/go-jose: invalid RSA private key, missing %s value(s)", strings.Join(missing, ", ")) + } + ++ n := key.N.bigInt() ++ if n.BitLen() > MaxRSAModulusBits { ++ return nil, fmt.Errorf("go-jose/go-jose: invalid RSA key, modulus too large") ++ } ++ ++ p, q := key.P.bigInt(), key.Q.bigInt() ++ if p.BitLen()+q.BitLen() > n.BitLen()+1 || new(big.Int).Mul(p, q).Cmp(n) != 0 { ++ return nil, errors.New("go-jose/go-jose: invalid RSA private key, p * q != n") ++ } ++ + rv := &rsa.PrivateKey{ + PublicKey: rsa.PublicKey{ +- N: key.N.bigInt(), ++ N: n, + E: key.E.toInt(), + }, +- D: key.D.bigInt(), +- Primes: []*big.Int{ +- key.P.bigInt(), +- key.Q.bigInt(), +- }, ++ D: key.D.bigInt(), ++ Primes: []*big.Int{p, q}, + } + + if key.Dp != nil { +diff --git a/vendor/github.com/go-jose/go-jose/v4/jws.go b/vendor/github.com/go-jose/go-jose/v4/jws.go +index c40bd3e..08a89fe 100644 +--- a/vendor/github.com/go-jose/go-jose/v4/jws.go ++++ b/vendor/github.com/go-jose/go-jose/v4/jws.go +@@ -270,17 +270,18 @@ func (parsed *rawJSONWebSignature) sanitized(signatureAlgorithms []SignatureAlgo + Signature: parsed.Signature, + } + ++ mergedHeaders := signature.mergedHeaders() ++ alg := mergedHeaders.getSignatureAlgorithm() ++ if !containsSignatureAlgorithm(signatureAlgorithms, alg) { ++ return nil, newErrUnexpectedSignatureAlgorithm(alg, signatureAlgorithms) ++ } ++ + var err error +- signature.Header, err = signature.mergedHeaders().sanitized() ++ signature.Header, err = mergedHeaders.sanitized() + if err != nil { + return nil, err + } + +- alg := SignatureAlgorithm(signature.Header.Algorithm) +- if !containsSignatureAlgorithm(signatureAlgorithms, alg) { +- return nil, newErrUnexpectedSignatureAlgorithm(alg, signatureAlgorithms) +- } +- + if signature.header != nil { + signature.Unprotected, err = signature.header.sanitized() + if err != nil { +@@ -318,17 +319,20 @@ func (parsed *rawJSONWebSignature) sanitized(signatureAlgorithms []SignatureAlgo + return nil, ErrUnprotectedNonce + } + +- var err error +- obj.Signatures[i].Header, err = obj.Signatures[i].mergedHeaders().sanitized() +- if err != nil { +- return nil, err +- } ++ obj.Signatures[i].header = sig.Header + +- alg := SignatureAlgorithm(obj.Signatures[i].Header.Algorithm) ++ mergedHeaders := obj.Signatures[i].mergedHeaders() ++ alg := mergedHeaders.getSignatureAlgorithm() + if !containsSignatureAlgorithm(signatureAlgorithms, alg) { + return nil, newErrUnexpectedSignatureAlgorithm(alg, signatureAlgorithms) + } + ++ var err error ++ obj.Signatures[i].Header, err = mergedHeaders.sanitized() ++ if err != nil { ++ return nil, err ++ } ++ + if obj.Signatures[i].header != nil { + obj.Signatures[i].Unprotected, err = obj.Signatures[i].header.sanitized() + if err != nil { +@@ -354,7 +358,6 @@ func (parsed *rawJSONWebSignature) sanitized(signatureAlgorithms []SignatureAlgo + // Copy value of sig + original := sig + +- obj.Signatures[i].header = sig.Header + obj.Signatures[i].original = &original + } + +diff --git a/vendor/github.com/go-jose/go-jose/v4/shared.go b/vendor/github.com/go-jose/go-jose/v4/shared.go +index 35130b3..17d82d6 100644 +--- a/vendor/github.com/go-jose/go-jose/v4/shared.go ++++ b/vendor/github.com/go-jose/go-jose/v4/shared.go +@@ -291,9 +291,10 @@ func (parsed rawHeader) getEPK() (*JSONWebKey, error) { + if v == nil { + return nil, nil + } +- var epk *JSONWebKey +- err := json.Unmarshal(*v, &epk) +- if err != nil { ++ // RFC 7518 Section 4.6.1.1: the "epk" header is the ephemeral public key ++ // of the originator. Reject private key material before parsing it. ++ epk := new(JSONWebKey) ++ if err := epk.unmarshalJSON(*v, false); err != nil { + return nil, err + } + return epk, nil +@@ -319,20 +320,6 @@ func (parsed rawHeader) getTag() (*byteBuffer, error) { + return parsed.getByteBuffer(headerTag) + } + +-// getJWK extracts parsed "jwk" from the raw JSON. +-func (parsed rawHeader) getJWK() (*JSONWebKey, error) { +- v := parsed[headerJWK] +- if v == nil { +- return nil, nil +- } +- var jwk *JSONWebKey +- err := json.Unmarshal(*v, &jwk) +- if err != nil { +- return nil, err +- } +- return jwk, nil +-} +- + // getCritical extracts parsed "crit" from the raw JSON. If omitted, it + // returns an empty slice. + func (parsed rawHeader) getCritical() ([]string, error) { +@@ -418,10 +405,14 @@ func (parsed rawHeader) sanitized() (h Header, err error) { + } + switch k { + case headerJWK: +- var jwk *JSONWebKey +- err = json.Unmarshal(*v, &jwk) ++ // RFC 7515 Section 4.1.3 and RFC 7516 Section 4.1.5: the "jwk" ++ // header is the public key that corresponds to the key used to ++ // sign the JWS or encrypt the JWE. Reject private key material ++ // before parsing it. ++ jwk := new(JSONWebKey) ++ err = jwk.unmarshalJSON(*v, false) + if err != nil { +- err = fmt.Errorf("failed to unmarshal JWK: %v: %#v", err, string(*v)) ++ err = fmt.Errorf("failed to unmarshal JWK: %w", err) + return + } + h.JSONWebKey = jwk +diff --git a/vendor/gopkg.in/square/go-jose.v2/jwe.go b/vendor/gopkg.in/square/go-jose.v2/jwe.go +index cd1de9e..4ee3535 100644 +--- a/vendor/gopkg.in/square/go-jose.v2/jwe.go ++++ b/vendor/gopkg.in/square/go-jose.v2/jwe.go +@@ -156,7 +156,7 @@ func (parsed *rawJSONWebEncryption) sanitized() (*JSONWebEncryption, error) { + mergedHeaders := obj.mergedHeaders(nil) + obj.Header, err = mergedHeaders.sanitized() + if err != nil { +- return nil, fmt.Errorf("square/go-jose: cannot sanitize merged headers: %v (%v)", err, mergedHeaders) ++ return nil, fmt.Errorf("square/go-jose: cannot sanitize merged headers: %w", err) + } + + if len(parsed.Recipients) == 0 { +diff --git a/vendor/gopkg.in/square/go-jose.v2/jwk.go b/vendor/gopkg.in/square/go-jose.v2/jwk.go +index 2dc6aec..2a1b82f 100644 +--- a/vendor/gopkg.in/square/go-jose.v2/jwk.go ++++ b/vendor/gopkg.in/square/go-jose.v2/jwk.go +@@ -162,13 +162,29 @@ func (k JSONWebKey) MarshalJSON() ([]byte, error) { + } + + // UnmarshalJSON reads a key from its JSON representation. +-func (k *JSONWebKey) UnmarshalJSON(data []byte) (err error) { ++// ++// Directly unmarshaling a JWK is not safe for untrusted input. ++func (k *JSONWebKey) UnmarshalJSON(data []byte) error { ++ return k.unmarshalJSON(data, true) ++} ++ ++// unmarshalJSON reads a key from its JSON representation. ++// ++// If allowPrivate is false, a JWK with private key material is rejected and the ++// function is safe for use against untrusted input. ++func (k *JSONWebKey) unmarshalJSON(data []byte, allowPrivate bool) (err error) { + var raw rawJSONWebKey + err = json.Unmarshal(data, &raw) + if err != nil { + return err + } + ++ if !allowPrivate && ++ (raw.K != nil || raw.D != nil || raw.P != nil || raw.Q != nil || ++ raw.Dp != nil || raw.Dq != nil || raw.Qi != nil) { ++ return errors.New("square/go-jose: JWK contains private parameters") ++ } ++ + certs, err := parseCertificateChain(raw.X5c) + if err != nil { + return fmt.Errorf("square/go-jose: failed to unmarshal x5c field: %s", err) +@@ -461,13 +477,25 @@ func (k *JSONWebKey) Valid() bool { + return true + } + ++// MaxRSAModulusBits is the largest RSA modulus size, in bits, that will be ++// accepted when parsing a JWK. Applications that need larger keys can raise ++// this limit. ++// ++// If modifying MaxRSAModulusBits, do it before any parsing occurs. ++var MaxRSAModulusBits = 4096 ++ + func (key rawJSONWebKey) rsaPublicKey() (*rsa.PublicKey, error) { + if key.N == nil || key.E == nil { + return nil, fmt.Errorf("square/go-jose: invalid RSA key, missing n/e values") + } + ++ n := key.N.bigInt() ++ if n.BitLen() > MaxRSAModulusBits { ++ return nil, fmt.Errorf("square/go-jose: invalid RSA key, modulus too large") ++ } ++ + return &rsa.PublicKey{ +- N: key.N.bigInt(), ++ N: n, + E: key.E.toInt(), + }, nil + } +@@ -608,16 +636,23 @@ func (key rawJSONWebKey) rsaPrivateKey() (*rsa.PrivateKey, error) { + return nil, fmt.Errorf("square/go-jose: invalid RSA private key, missing %s value(s)", strings.Join(missing, ", ")) + } + ++ n := key.N.bigInt() ++ if n.BitLen() > MaxRSAModulusBits { ++ return nil, fmt.Errorf("square/go-jose: invalid RSA key, modulus too large") ++ } ++ ++ p, q := key.P.bigInt(), key.Q.bigInt() ++ if p.BitLen()+q.BitLen() > n.BitLen()+1 || new(big.Int).Mul(p, q).Cmp(n) != 0 { ++ return nil, errors.New("square/go-jose: invalid RSA private key, p * q != n") ++ } ++ + rv := &rsa.PrivateKey{ + PublicKey: rsa.PublicKey{ +- N: key.N.bigInt(), ++ N: n, + E: key.E.toInt(), + }, +- D: key.D.bigInt(), +- Primes: []*big.Int{ +- key.P.bigInt(), +- key.Q.bigInt(), +- }, ++ D: key.D.bigInt(), ++ Primes: []*big.Int{p, q}, + } + + if key.Dp != nil { +diff --git a/vendor/gopkg.in/square/go-jose.v2/shared.go b/vendor/gopkg.in/square/go-jose.v2/shared.go +index f843864..12066d6 100644 +--- a/vendor/gopkg.in/square/go-jose.v2/shared.go ++++ b/vendor/gopkg.in/square/go-jose.v2/shared.go +@@ -277,9 +277,10 @@ func (parsed rawHeader) getEPK() (*JSONWebKey, error) { + if v == nil { + return nil, nil + } +- var epk *JSONWebKey +- err := json.Unmarshal(*v, &epk) +- if err != nil { ++ // RFC 7518 Section 4.6.1.1: the "epk" header is the ephemeral public key ++ // of the originator. Reject private key material before parsing it. ++ epk := new(JSONWebKey) ++ if err := epk.unmarshalJSON(*v, false); err != nil { + return nil, err + } + return epk, nil +@@ -378,10 +379,14 @@ func (parsed rawHeader) sanitized() (h Header, err error) { + } + switch k { + case headerJWK: +- var jwk *JSONWebKey +- err = json.Unmarshal(*v, &jwk) ++ // RFC 7515 Section 4.1.3 and RFC 7516 Section 4.1.5: the "jwk" ++ // header is the public key that corresponds to the key used to ++ // sign the JWS or encrypt the JWE. Reject private key material ++ // before parsing it. ++ jwk := new(JSONWebKey) ++ err = jwk.unmarshalJSON(*v, false) + if err != nil { +- err = fmt.Errorf("failed to unmarshal JWK: %v: %#v", err, string(*v)) ++ err = fmt.Errorf("failed to unmarshal JWK: %w", err) + return + } + h.JSONWebKey = jwk +-- +2.45.4 + diff --git a/SPECS/influxdb/CVE-2026-116591.patch b/SPECS/influxdb/CVE-2026-116591.patch new file mode 100644 index 00000000000..c878641d102 --- /dev/null +++ b/SPECS/influxdb/CVE-2026-116591.patch @@ -0,0 +1,121 @@ +From d8a1539a341b0e845d6ac3e433f8ededede5023d Mon Sep 17 00:00:00 2001 +From: Klaus Post +Date: Mon, 12 Oct 2026 10:35:05 +0200 +Subject: [PATCH] Merge commit from fork + +* fse: reject normalized counts that do not fit in int16 + +readNCount accepts tableLog 15, where one symbol can be given all 1<<15 +states. That count was stored in norm as int16 -32768, so buildDtable +spread no symbols, the position check still passed, and the decoding +table kept the cells of the previous table decoded on the same Scratch. +Cells with nbBits 0 then reached nextFast, which read 16 junk bits into +the state and indexed past the table. + +zstd reaches this through huff0.ReadTable, whose fse Scratch is kept +between blocks and comes back from huffDecoderPool in the next frame, so +crafted input panics DecodeAll and the streaming decoder. The streaming +decoder panics on its own goroutine, where callers cannot recover. + +A symbol filling the whole table cannot be decoded at any tableLog, so +reject the count before it is truncated. crash4, crash5 and crash6 in +TestDecompress are this overflow; with a fresh Scratch they failed +further on, crash6 in the newState guard added by #151. + +Tests: TestDecompressCountOverflow (vendor/github.com/klauspost/compress/fse/fse_test.go) and +TestDecoderHuffWeightsTableLog (vendor/github.com/klauspost/compress/zstd/decoder_test.go) panic without +the fix. + +* huff0: limit the FSE tableLog of Huffman weights to 6 + +RFC 8878 limits the accuracy log of FSE-compressed Huffman weights to 6 +and the reference decoder rejects larger tables, so no valid stream uses +them. Reject them in ReadTable before decoding. A weight table can then +no longer make fse build a 1<<15 entry table for at most 255 weights. + +The only entry in decompress1x_regression.zip stored its weights with +tableLog 15. It is re-encoded with raw weights: the Huffman table and +payload are unchanged, and Decompress1X still fails with "maximum output +size exceeded". + +Test: TestReadTableWeightsTableLog (vendor/github.com/klauspost/compress/huff0/decompress_test.go). + +* fse: check accepted counts in FuzzDecompress + +FuzzDecompress only looked for panics. The int16 count overflow returned +an error on a fresh Scratch, so inputs that hit it, one of them in the +seed corpus, never failed. Run readNCount on every input and require the +accepted counts to fill the table, which buildDtable relies on. Without +the readNCount fix this fails on seed#2 of fse_decompress.zip. + +validateNorm added -v for every negative count, which let a wrapped +-32768 pass as 32768. Count a negative entry as one cell, as buildDtable +does for -1. Its only callers are FuzzCompress and a disabled check in +Compress. + +Test: FuzzDecompress (vendor/github.com/klauspost/compress/fse/fuzz_test.go). +(cherry picked from commit 748550b77336a1720b51f574d344ab98422c5e2a) +Signed-off-by: Azure Linux Security Servicing Account +Upstream-reference: https://github.com/klauspost/compress/commit/7f5d8528720c895a6106f201719f87eb030a565d.patch +--- + vendor/github.com/klauspost/compress/fse/compress.go | 3 ++- + vendor/github.com/klauspost/compress/fse/decompress.go | 6 ++++++ + vendor/github.com/klauspost/compress/huff0/decompress.go | 4 ++++ + 3 files changed, 12 insertions(+), 1 deletion(-) + +diff --git a/vendor/github.com/klauspost/compress/fse/compress.go b/vendor/github.com/klauspost/compress/fse/compress.go +index dac97e5..f8b6074 100644 +--- a/vendor/github.com/klauspost/compress/fse/compress.go ++++ b/vendor/github.com/klauspost/compress/fse/compress.go +@@ -658,7 +658,8 @@ func (s *Scratch) validateNorm() (err error) { + if v >= 0 { + total += int(v) + } else { +- total -= int(v) ++ // -1 takes one cell. Adding -v would let a wrapped -32768 pass. ++ total++ + } + } + defer func() { +diff --git a/vendor/github.com/klauspost/compress/fse/decompress.go b/vendor/github.com/klauspost/compress/fse/decompress.go +index cc05d0f..59d3135 100644 +--- a/vendor/github.com/klauspost/compress/fse/decompress.go ++++ b/vendor/github.com/klauspost/compress/fse/decompress.go +@@ -3,6 +3,7 @@ package fse + import ( + "errors" + "fmt" ++ "math" + ) + + const ( +@@ -123,6 +124,11 @@ func (s *Scratch) readNCount() error { + remaining -= count + gotTotal += count + } ++ if count > math.MaxInt16 { ++ // Only one symbol filling a tableLog 15 table, which cannot be decoded. ++ // Truncated, it would leave the decoding table unwritten. ++ return fmt.Errorf("corruption detected (count %d > %d)", count, math.MaxInt16) ++ } + s.norm[charnum&0xff] = int16(count) + charnum++ + previous0 = count == 0 +diff --git a/vendor/github.com/klauspost/compress/huff0/decompress.go b/vendor/github.com/klauspost/compress/huff0/decompress.go +index 54bd08b..2ff6907 100644 +--- a/vendor/github.com/klauspost/compress/huff0/decompress.go ++++ b/vendor/github.com/klauspost/compress/huff0/decompress.go +@@ -54,6 +54,10 @@ func ReadTable(in []byte, s *Scratch) (s2 *Scratch, remain []byte, err error) { + if len(in) < int(iSize) { + return s, nil, fmt.Errorf("input too small for table, want %d bytes, have %d", iSize, len(in)) + } ++ // The low nibble is the weights' FSE tableLog - 5, which the format limits to 6. ++ if in[0]&15+5 > 6 { ++ return s, nil, errors.New("corrupt input: weights tableLog too big") ++ } + // FSE compressed weights + s.fse.DecompressLimit = 255 + hw := s.huffWeight[:] +-- +2.45.4 + diff --git a/SPECS/influxdb/CVE-2026-78661.patch b/SPECS/influxdb/CVE-2026-78661.patch new file mode 100644 index 00000000000..beccbcd710a --- /dev/null +++ b/SPECS/influxdb/CVE-2026-78661.patch @@ -0,0 +1,95 @@ +From d414bcb7f6bba8afa25cf30a9dd686bca7804a12 Mon Sep 17 00:00:00 2001 +From: Ian Alexander +Date: Wed, 14 Oct 2026 16:28:56 -0400 +Subject: [PATCH] html: avoid quadratic complexity when coalescing text nodes + +When coalescing adjacent text nodes in addText and fosterParent, +appending to an existing TextNode's Data via string concatenation +(n.Data += text) reallocated and copied the accumulated string on every +token. Inputs containing many short text runs separated by ignored end +tags (such as "a") caused O(n^2) allocations and byte copies. + +Accumulate coalesced text in per-node byte slices during parsing and +materialize Data strings once at the end of parse. + +Thanks to Markus Magnuson for reporting this issue. + +Fixes CVE-2026-78661 +Fixes golang/go#82224 + +Change-Id: I4cd61a235d0cc14567e8edd3e4ce851999de7731 +Reviewed-on: https://go-review.googlesource.com/c/net/+/849365 +Reviewed-by: Nicholas Husin +Reviewed-by: Nicholas Husin +LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com +Signed-off-by: Azure Linux Security Servicing Account +Upstream-reference: https://github.com/golang/net/commit/4af4fce62e93c5621a316363718b9dc78fbb0355.patch +--- + vendor/golang.org/x/net/html/parse.go | 23 +++++++++++++++++++++-- + 1 file changed, 21 insertions(+), 2 deletions(-) + +diff --git a/vendor/golang.org/x/net/html/parse.go b/vendor/golang.org/x/net/html/parse.go +index 165b610..a99cee6 100644 +--- a/vendor/golang.org/x/net/html/parse.go ++++ b/vendor/golang.org/x/net/html/parse.go +@@ -51,6 +51,9 @@ type parser struct { + // context is the context element when parsing an HTML fragment + // (section 12.4). + context *Node ++ // textNodes holds buffers for TextNodes that have had multiple text ++ // tokens coalesced into them. ++ textNodes map[*Node][]byte + } + + func (p *parser) top() *Node { +@@ -292,7 +295,7 @@ func (p *parser) fosterParent(n *Node) { + prev = parent.LastChild + } + if prev != nil && prev.Type == TextNode && n.Type == TextNode { +- prev.Data += n.Data ++ p.appendText(prev, n.Data) + return + } + +@@ -316,7 +319,7 @@ func (p *parser) addText(text string) { + + t := p.top() + if n := t.LastChild; n != nil && n.Type == TextNode { +- n.Data += text ++ p.appendText(n, text) + return + } + p.addChild(&Node{ +@@ -325,6 +328,18 @@ func (p *parser) addText(text string) { + }) + } + ++func (p *parser) appendText(n *Node, text string) { ++ if p.textNodes == nil { ++ p.textNodes = make(map[*Node][]byte) ++ } ++ b, ok := p.textNodes[n] ++ if !ok { ++ b = []byte(n.Data) ++ n.Data = "" ++ } ++ p.textNodes[n] = append(b, text...) ++} ++ + func attrCompare(a, b Attribute) int { + return cmp.Or( + cmp.Compare(a.Namespace, b.Namespace), +@@ -2242,6 +2257,10 @@ func (p *parser) parse() (err error) { + } + p.parseCurrentToken() + } ++ for n, b := range p.textNodes { ++ n.Data = string(b) ++ } ++ p.textNodes = nil + return nil + } + +-- +2.45.4 + diff --git a/SPECS/influxdb/CVE-2026-97045.patch b/SPECS/influxdb/CVE-2026-97045.patch new file mode 100644 index 00000000000..69ea1ea2afb --- /dev/null +++ b/SPECS/influxdb/CVE-2026-97045.patch @@ -0,0 +1,75 @@ +From bcb93ef0a2885089dfcf92b4249f4724a1bcef2d Mon Sep 17 00:00:00 2001 +From: Ian Alexander +Date: Wed, 14 Oct 2026 11:59:52 -0400 +Subject: [PATCH] html: check all ancestor namespace transitions when rendering + raw text + +In childTextNodesAreLiteral, walking up the tree previously stopped at +the nearest foreign ancestor once an HTML integration point was found. +However, that integration point may itself be a descendant of an element +that was foster-parented into a foreign namespace (such as or + fostered under ), causing a parser to resolve the +subtree in a different foreign namespace upon re-parsing the rendered +output. + +Continue walking the full ancestor chain and verify that every +transition from a non-empty namespace occurs at an HTML integration +point before emitting literal text. + +Thanks to Ali Sherif (https://www.linkedin.com/in/ali-sherif-13812b276) +for reporting this issue. + +Fixes CVE-2026-97045 +For golang/go#82622 + +Change-Id: I67d0006dce9023451905d8e96c4d1f3d05e769cc +Reviewed-on: https://go-internal-review.googlesource.com/c/net/+/6360 +Reviewed-by: Nicholas Husin +Reviewed-by: Neal Patel +Reviewed-on: https://go-review.googlesource.com/c/net/+/855121 +Reviewed-by: Neal Patel +LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com +Auto-Submit: Gopher Robot +Signed-off-by: Azure Linux Security Servicing Account +Upstream-reference: https://github.com/golang/net/commit/3de643db506517b3e652a13cc0b56034cea6b8e6.patch +--- + vendor/golang.org/x/net/html/render.go | 23 +++++++++++------------ + 1 file changed, 11 insertions(+), 12 deletions(-) + +diff --git a/vendor/golang.org/x/net/html/render.go b/vendor/golang.org/x/net/html/render.go +index 767eeae..f356d48 100644 +--- a/vendor/golang.org/x/net/html/render.go ++++ b/vendor/golang.org/x/net/html/render.go +@@ -246,18 +246,17 @@ func childTextNodesAreLiteral(n *Node) bool { + + switch n.Data { + case "iframe", "noembed", "noframes", "noscript", "plaintext", "script", "style", "xmp": +- // We need to check if n is a node that was fostered from a HTML namespace +- // into a non-HTML namespace (in which case, different rules apply to it). +- // We do this by walking up the tree until we find a node with a non-empty +- // namespace. If we find such a node, we also have to check if it's +- // an HTML integration point. If it isn't, then the node we're currently +- // looking at is foster-parented and we should return false. +- for p := n.Parent; p != nil; p = p.Parent { +- if p.Namespace != "" { +- if !htmlIntegrationPoint(p) { +- return false +- } +- break ++ // n's text is literal only if the parser would keep n in the HTML ++ // namespace when the output is re-parsed. An ancestor may have been ++ // fostered under a foreign element (such as an HTML under ++ // ) where the parser would instead create it, and its ++ // descendants, in that element's namespace. We walk up the whole tree ++ // and check that every transition out of a non-HTML namespace happens ++ // at an HTML integration point. This is stricter than the parser, so ++ // some text that would be safe literally is escaped. ++ for c, p := n, n.Parent; p != nil; c, p = p, p.Parent { ++ if p.Namespace != "" && p.Namespace != c.Namespace && !htmlIntegrationPoint(p) { ++ return false + } + } + +-- +2.45.4 + diff --git a/SPECS/influxdb/influxdb.spec b/SPECS/influxdb/influxdb.spec index 1fdbc7b5eec..aa2a37f01f8 100644 --- a/SPECS/influxdb/influxdb.spec +++ b/SPECS/influxdb/influxdb.spec @@ -88,8 +88,16 @@ Patch15: CVE-2026-78663.patch Patch16: CVE-2026-78669.patch Patch17: CVE-2026-97032.patch Patch18: remove-emudhra-ca-roots.patch -Patch19: CVE-2026-128085.patch -Patch20: fix-format-verbs-for-go-1.26.patch +Patch19: CVE-2026-116585.patch +Patch20: CVE-2026-116586.patch +Patch21: CVE-2026-116587.patch +Patch22: CVE-2026-116591.patch +Patch23: CVE-2026-78661.patch +Patch24: CVE-2026-97045.patch +Patch25: CVE-2026-114456.patch +Patch26: CVE-2026-128085.patch +Patch27: fix-format-verbs-for-go-1.26.patch + BuildRequires: clang BuildRequires: golang BuildRequires: kernel-headers @@ -180,7 +188,8 @@ go test ./... %changelog * Wed Nov 25 2026 Sumit Jena - 2.7.5-26 -- Patch for CVE-2026-128085 and CVE-2026-128086 +- Patch for CVE-2026-97045, CVE-2026-78661, CVE-2026-116591, CVE-2026-116587, CVE-2026-116586, + CVE-2026-116585, CVE-2026-114456, CVE-2026-128085 and CVE-2026-128086 - Backport upstream fix for format verbs that go vet rejects at go 1.26 * Tue Nov 24 2026 Muhammad Falak R Wani - 2.7.5-25