Skip to content

Backport #106395 to 26.3: Arrow IPC: fix heap out-of-bounds reads and structural validation gaps in the column reader - #107322

Merged
Algunenano merged 2 commits into
26.3from
backport/26.3/106395
Jun 15, 2026
Merged

Algunenano merged 2 commits into
26.3from
backport/26.3/106395

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Jun 12, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #106395
Cherry-pick pull-request #107256

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.3.14.29

… structural validation gaps in the column reader
@robot-clickhouse robot-clickhouse added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Jun 12, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [887e81a]

Summary: ✅

26.3 has no BinaryView/StringView reader and no UUID FixedSizeBinary
reader, so the cases targeting them are removed: view types are rejected
at schema extraction and the FixedString(1)-to-UUID conversion is caught
by the memory limit instead of the width check.
@Algunenano
Algunenano merged commit 3b8075a into 26.3 Jun 15, 2026
34 checks passed
@Algunenano
Algunenano deleted the backport/26.3/106395 branch June 15, 2026 11:16
bytehalo-infra added a commit to sentioxyz/ClickHouse that referenced this pull request Sep 25, 2026
PROTO: malformed Arrow IPC input -> crash (OOB).
Effect in the production build a394e92: its upstream test(s) 04307_arrow_oob_reads, 04308_arrow_oob_reads_value, 04309_arrow_oob_reads_offsets, 04310_arrow_oob_reads_arithmetic, 04327_arrow_oob_list_offsets, 04328_arrow_oob_nested_child_length, 04329_arrow_oob_struct_fields, 04330_arrow_oob_declared_length, 04331_arrow_oob_validity_bitmap fail on it and pass on official 26.8.8.8, run on isolated servers (evidence/fix_ci_20260925/upstream_repro/server_triage_PROD263_vs_UP2688.tsv).
Upstream patch unchanged, with its test(s): 04307_arrow_oob_reads,04308_arrow_oob_reads_value,04309_arrow_oob_reads_offsets,04310_arrow_oob_reads_arithmetic,04327_arrow_oob_list_offsets,04328_arrow_oob_nested_child_length,04329_arrow_oob_struct_fields,04330_arrow_oob_declared_length,04331_arrow_oob_validity_bitmap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants