Skip to content

[Decode] Reject oversized AV1 tile counts on Gen12 - #2081

Open
XinfengZhang wants to merge 1 commit into
intel:masterfrom
XinfengZhang:fix-av1-lst-count
Open

XinfengZhang wants to merge 1 commit into
intel:masterfrom
XinfengZhang:fix-av1-lst-count

Conversation

@XinfengZhang

Copy link
Copy Markdown
Contributor

Reject AV1 tile counts above the descriptor limit before tile parsing and error concealment on Gen12. Large scale tile pictures allocate 4096 descriptors, so accepting a larger declared count can access past the allocation. This matches the validation in the common AV1 path.

Validation: ASan/UBSan on the extracted production ParseTileInfo, ErrorDetectAndConceal and CalcNumPass functions. The baseline reproduces a heap buffer overflow at 4097 tiles; the fix passes 65,552 cases covering the full 16-bit count range and boundary submission counts. Full driver build and hardware decode testing were not run.

Reject a declared tile count above the descriptor limit before parsing
tile parameters or performing error concealment. This prevents access
past the descriptor array for large scale tile pictures and matches
the validation in the common AV1 tile coding path.
@XinfengZhang
XinfengZhang marked this pull request as ready for review November 25, 2026 08:16
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