Skip to content

Validate buffer index before accessing buffers vector#3535

Open
TristanInSec wants to merge 1 commit into
tensorflow:mainfrom
TristanInSec:fix-buffer-index-validation
Open

Validate buffer index before accessing buffers vector#3535
TristanInSec wants to merge 1 commit into
tensorflow:mainfrom
TristanInSec:fix-buffer-index-validation

Conversation

@TristanInSec
Copy link
Copy Markdown

@TristanInSec TristanInSec commented Apr 17, 2026

Check that the tensor buffer index is within the bounds of the model buffers vector before accessing it, matching the validation already present in the compression code path.

BUG=b/general

Check that the tensor buffer index is within the bounds of the
model buffers vector before accessing it. The FlatBuffers
Vector::operator[] does not perform bounds checking.
@github-actions
Copy link
Copy Markdown
Contributor

This PR is being marked as stale due to inactivity. Remove the stale label or comment to prevent closure in 5 days.

@github-actions github-actions Bot added the Stale label May 28, 2026
@TristanInSec
Copy link
Copy Markdown
Author

This fix addresses a confirmed vulnerability. Still needed.

@github-actions github-actions Bot removed the Stale label May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant