Skip to content

Libssh forward to master - #90985

Merged
rschu1ze merged 12 commits into
ClickHouse:masterfrom
Revertionist:libssh-forward-to-master
Dec 3, 2025
Merged

rschu1ze merged 12 commits into
ClickHouse:masterfrom
Revertionist:libssh-forward-to-master

Conversation

@Revertionist

@Revertionist Revertionist commented Nov 27, 2025 •

Copy link
Copy Markdown
Contributor

This PR aims to fix CVE-2025-5318 with this libssh bump. It needs to be backported to 25.8 and 25.3

This PR re-adds the libssh upgrade attempted in #90362. It also includes the socket duplication logic previously written in #90612.

The first previous PR failed due to a TSAN test case failure during backporting to 25.11 in test.py::test_paramiko_password.

The second previous PR fixed this bug but a new TSAN test case failure appeared during backporting due to a race condition where two threads were calling an ssh disconnect function simultaniously here.

This PR aims to resolve this newly encountered error by serializing the call of this disconnect function while upgrading libssh library to master. The upgrade to master is temporary as the current development branch includes certain functions that will be included in libssh-0.12, so upgrading to 0.11.3 now means writing code just to dispose them in the next upgrade which should be released in the next month or two.

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

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

Bump libssh from 0.9.8 to master (0.11.3). This resolves GHSA-98qw-prqm-9f4p.

@Revertionist

This comment was marked as resolved.

@rschu1ze

This comment was marked as resolved.

@Revertionist

This comment was marked as resolved.

@rschu1ze rschu1ze added the can be tested Allows running workflows for external contributors label Nov 28, 2025
@clickhouse-gh

clickhouse-gh Bot commented Nov 28, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d6a50e5]

Summary: ❌

job_name test_name status info comment
Integration tests (arm_binary, distributed plan, 2/4) failure
test_filesystem_cache/test.py::test_force_filesystem_cache_on_merges FAIL cidb
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting: the query: FAIL cidb

@clickhouse-gh clickhouse-gh Bot added pr-build Pull request with build/testing/packaging improvement submodule changed At least one submodule changed in this PR. labels Nov 28, 2025
@Revertionist

This comment was marked as resolved.

@rschu1ze rschu1ze self-assigned this Nov 30, 2025
@rschu1ze rschu1ze added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Nov 30, 2025
@rschu1ze

This comment was marked as resolved.

@Revertionist

This comment was marked as resolved.

@Revertionist

This comment was marked as resolved.

@Revertionist

This comment was marked as resolved.

@rschu1ze rschu1ze left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The test failures are unrelated and lgtm, I left only a few comments. Thanks!

Comment thread src/Server/SSH/SSHSession.cpp Resolved
Comment thread src/Server/SSH/SSHSession.h Resolved
@rschu1ze

rschu1ze commented Dec 2, 2025

Copy link
Copy Markdown
Member

Integration tests (arm_binary, distributed plan, 2/4):

  • test_filesystem_cache/test.py::test_force_filesystem_cache_on_merges: Code: 76. DB::Exception: Received from 172.16.1.2:9000. DB::ErrnoException. DB::ErrnoException: Cannot open file /sys/hslxdcwhablxccdefadtpimzolshy: , errno: 30, strerror: Read-only file system. Stack trace: ... unrelated

BuzzHouse (amd_debug):

Error:
Logical error: 'Inconsistent AST formatting: the query:
UPDATE d0.t57 SET c1 = CAST('read', 'String') WHERE emptyArrayInt8() AS a0 SETTINGS [...]`

... also unrelated.

@rschu1ze
rschu1ze added this pull request to the merge queue Dec 2, 2025
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Dec 3, 2025
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Dec 3, 2025
@robot-ch-test-poll robot-ch-test-poll added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Dec 3, 2025
clickhouse-gh Bot added a commit that referenced this pull request Dec 3, 2025
Backport #90985 to 25.10: Libssh forward to master
clickhouse-gh Bot added a commit that referenced this pull request Dec 3, 2025
Backport #90985 to 25.11: Libssh forward to master
rschu1ze added a commit that referenced this pull request Dec 3, 2025
Backport #90985 to 25.3: Libssh forward to master
rschu1ze added a commit that referenced this pull request Dec 3, 2025
Backport #90985 to 25.8: Libssh forward to master
rschu1ze added a commit that referenced this pull request Dec 3, 2025
Backport #90985 to 25.9: Libssh forward to master
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 pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-build Pull request with build/testing/packaging improvement 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