Bug 2552461

Summary: sqlite: sqlite: heap buffer overflow in FTS5 rowid list merging
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerability-draftAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: akhatavk, aos-team-art-private, asdas, bbrownin, dpaolell, jdelft, jupierce, lgarciaa, mbiarnes, ppalepu, ppostler, prdhamdh, rhel-process-autobot, sghai, sidsharm, suppawar, vlaad, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in SQLite's FTS5 full-text search extension. The fts5MergeRowidLists function allocates an output buffer sized as the sum of two input list lengths without accounting for varint expansion during the merge. This can cause a heap buffer overflow when merging rowid lists, potentially leading to memory corruption or a crash.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2553538, 2553539, 2553540, 2553541, 2553542, 2553544, 2553536    
Bug Blocks:    

Description OSIDB Bzimport 2026-10-14 16:14:05 UTC
A vulnerability was found in SQLite's FTS5 full-text search extension. The fts5MergeRowidLists function allocates a buffer sized as p1->n + p2->n without accounting for varint expansion during merging, leading to a heap buffer overflow. FTS5 is enabled in RHEL 8, 9, and 10 builds.

PoC: https://github.com/abraxas/sqlite-fts5-rowidmerge

Fixed in SQLite 3.54.0 (fix in ext/fts5/fts5_index.c — buffer allocation now adds 9 bytes for varint expansion).