Skip to content

Bump mongo-c-driver from 2.5.4 to 2.5.5 - #124282

Merged
thevar1able merged 2 commits into
ClickHouse:masterfrom
actueleai:bump-mongo-c-driver-2.5.5
Oct 8, 2026
Merged

thevar1able merged 2 commits into
ClickHouse:masterfrom
actueleai:bump-mongo-c-driver-2.5.5

Conversation

@actueleai

@actueleai actueleai commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

MongoDB's mongo-c-driver is bumped from 2.5.4 to 2.5.5, a bug-fix release whose main change is the fix for CVE-2026-96746, an out-of-bounds write in polled-stream handling.

CVEs

  • CVE-2026-96746, fixed in 2.5.5 — applies: out-of-bounds write in poll-set resize reachable via mongodb:// connection monitoring reconnects.

ClickHouse-side changes

  • contrib/mongo-c-driver-cmake/CMakeLists.txt — libbson_VERSION* and libmongoc_VERSION* bumped to 2.5.5; upstream added no sources, so the source list is unchanged.
  • .gitmodules — fork URL normalized to drop the .git suffix, matching the other ClickHouse forks.

Fork

ClickHouse/mongo-c-driver branch ClickHouse/2.5.5 carries 5 ClickHouse patches on top of upstream 2.5.5.

Changelog category (leave one):

  • Critical Bug Fix (crash, data loss, RBAC)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Update mongo-c-driver to 2.5.5, fixing an out-of-bounds write during MongoDB connection monitoring reconnects (CVE-2026-96746).


Workflow [PR]
Sync PR [sync-upstream/pr/124282]

Version info

  • Merged into: 26.10.1.1836-master (included in 26.10 and later)
  • Backported to: 26.9.17.7, 26.8.25.11, 26.7.28.13, 26.3.49.5

Updates the ClickHouse fork pin to ClickHouse/2.5.5 (70de9e880072),
which is upstream 2.5.5 plus the ClickHouse patch series: `strerror_l`
for musl/FreeBSD, `mlib_have_posix_clocks` detection on Darwin/FreeBSD/musl,
the reply memory leak on retryable cursor server-selection failure, the
redundant store in `_mongoc_handshake_freeze`, and a new patch that stops
printing option values in the deprecated-option conflict error.

Upstream 2.5.5 fixes an out-of-bounds write in the poll-set handling of
`mongoc_async_run` (CDRIVER-6404), tracked as CVE-2026-96746.

Declares the fork URL without the `.git` suffix, matching the other
ClickHouse forks in .gitmodules.

Co-Authored-By: Claude Code <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [4d5e22d]

Summary: ❌

job_name test_name status info comment
Finish Workflow FAIL
python3 ./ci/jobs/scripts/workflow_hooks/new_tests_check.py FAIL

AI Review

Summary

This PR repins the vendored mongo-c-driver from 2.5.4 to 2.5.5, updates the mirrored version constants in contrib/mongo-c-driver-cmake/CMakeLists.txt, and normalizes the submodule URL. I did not find a PR-local correctness or packaging issue in the b712df23..70de9e88 submodule delta. The earlier _mongoc_handshake_freeze thread does not apply to this diff: that code was already present in the old pin, and ClickHouse’s MongoDB integration goes through mongocxx::client::append_metadata, not the global mongoc_handshake_data_append path discussed there.

Missing context / blind spots
  • ⚠️ Most Praktika build shards were still pending at review time, so I could not validate the repin against the full CI matrix yet. A green finish for the remaining build jobs closes that gap.
Final Verdict
  • Status: ✅ Approve

LLVM Coverage Report

Measured on commit 4d5e22d.

Metric Baseline Current Δ
Lines 88.30% 88.30% +0.00%
Functions 92.10% 92.10% +0.00%
Branches 79.70% 79.70% +0.00%

Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage).

Newly covered: +156 lines in 42 files (-114 lines lost coverage) · Details

Full report

@clickhouse-gh clickhouse-gh Bot added pr-critical-bugfix submodule changed At least one submodule changed in this PR. pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Oct 6, 2026
@thevar1able thevar1able added the can be tested Allows running workflows for external contributors label Oct 6, 2026
Comment thread contrib/mongo-c-driver Resolved
@clickhouse-gh clickhouse-gh Bot added the comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. label Oct 6, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Commit 4d5e22d6173a582af1efe98209228e82af3176d2 was not compared: the CI logs cluster did not answer (every POST attempt failed with an exception; stopped retrying after the 1250 s read budget).

See the job log for details.

@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Oct 7, 2026
@thevar1able
thevar1able added this pull request to the merge queue Oct 8, 2026
Merged via the queue into ClickHouse:master with commit e73771b Oct 8, 2026
150 of 152 checks passed
@thevar1able
thevar1able deleted the bump-mongo-c-driver-2.5.5 branch October 8, 2026 13:55
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 8, 2026
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Oct 8, 2026
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Oct 12, 2026
clickhouse-gh Bot added a commit that referenced this pull request Oct 12, 2026
Backport #124282 to 26.9: Bump `mongo-c-driver` from 2.5.4 to 2.5.5
clickhouse-gh Bot added a commit that referenced this pull request Oct 12, 2026
Backport #124282 to 26.8: Bump `mongo-c-driver` from 2.5.4 to 2.5.5
thevar1able added a commit that referenced this pull request Oct 12, 2026
Backport #124282 to 26.3: Bump `mongo-c-driver` from 2.5.4 to 2.5.5
clickhouse-gh Bot added a commit that referenced this pull request Oct 12, 2026
Backport #124282 to 26.7: Bump `mongo-c-driver` from 2.5.4 to 2.5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. manual approve Manual approve required to run CI pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants