Skip to content

Fix crashes with malformed compressed data - #10360

Open
dbeck wants to merge 1 commit into
mainfrom
dbeck/cve_fixes
Open

Fix crashes with malformed compressed data#10360
dbeck wants to merge 1 commit into
mainfrom
dbeck/cve_fixes

Conversation

@dbeck

@dbeck dbeck commented Jul 29, 2026

Copy link
Copy Markdown
Member

The Gorilla and Dictionary compressors crashed on malformed data with the reverse decompression iterator and the bulk decompressor.

This issue was reported by Mehmet Ince @mdisec https://mehmetince.net/, and the test case binaries are his contribution that I integrated into the fuzzer test suite.

This change adds validation for these cases and adds reverse iterator coverage to the fuzzer tests, so the randomised test will catch future issues. It already caught issues in other compressors like deltadelta, which I also fixed in this review.

@github-actions

Copy link
Copy Markdown

@melihmutlu, @svenklemm: please review this pull request.

Powered by pull-review

@dbeck
dbeck requested review from akuzm and removed request for melihmutlu July 29, 2026 18:37
@dbeck
dbeck force-pushed the dbeck/cve_fixes branch 2 times, most recently from 4529c6f to 94cb6cd Compare July 29, 2026 18:40
Comment thread tsl/test/src/decompress_arithmetic_test_impl.c Outdated
Comment thread tsl/test/src/decompress_arithmetic_test_impl.c
Comment thread tsl/test/sql/compression_crashes.sql Outdated
Comment thread tsl/src/compression/algorithms/gorilla.c Outdated
@dbeck
dbeck force-pushed the dbeck/cve_fixes branch 3 times, most recently from b058b38 to e536225 Compare July 29, 2026 19:20
Comment thread .unreleased/pr_10360 Outdated
@dbeck
dbeck force-pushed the dbeck/cve_fixes branch 9 times, most recently from f6bdb88 to d759ebf Compare July 30, 2026 16:13
@dbeck
dbeck force-pushed the dbeck/cve_fixes branch 3 times, most recently from 26e9840 to 99992d1 Compare July 30, 2026 16:58
@dbeck dbeck added the bug label Jul 30, 2026
@dbeck dbeck added this to the v2.29.1 milestone Jul 30, 2026
@dbeck
dbeck force-pushed the dbeck/cve_fixes branch 15 times, most recently from e6cbac2 to 7d64574 Compare August 2, 2026 10:36
@dbeck dbeck changed the title Fixing crashes with malformed compressed data Fix crashes with malformed compressed data Aug 2, 2026
@dbeck
dbeck force-pushed the dbeck/cve_fixes branch from 7d64574 to fa31ee9 Compare August 2, 2026 14:16
The Gorilla and Dictionary compressors crashed on malformed data
with the reverse decompression iterator and the bulk decompressor.

This issue was reported by Mehmet Ince @mdisec https://mehmetince.net/,
and the test case binaries are his contribution that I integrated into
the fuzzer test suite.

This change adds validation for these cases and adds reverse iterator
coverage to the fuzzer tests, so the randomised test will catch future
issues. It already caught issues in other compressors like deltadelta,
which I also fixed in this review.
@dbeck
dbeck force-pushed the dbeck/cve_fixes branch from fa31ee9 to f725e1d Compare August 2, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants