Skip to content

CDVD: validate CSO frame and index sizes - #14753

Open
acts-1631 wants to merge 1 commit into
PCSX2:masterfrom
acts-1631:fix/cso-reader-bounds
Open

CDVD: validate CSO frame and index sizes#14753
acts-1631 wants to merge 1 commit into
PCSX2:masterfrom
acts-1631:fix/cso-reader-bounds

Conversation

@acts-1631

Copy link
Copy Markdown

Validate CSO header bounds and compressed frame lengths.

A crafted CSO/ZSO could make a compressed-frame read exceed its allocated buffer during image detection. The reader now rejects unsupported frame and alignment sizes, and rejects oversized compressed frame spans.

CSO headers can specify an oversized frame size or index alignment,
allowing a compressed frame index to make fread exceed the allocated
read buffer.

Limit supported frame and alignment values and reject compressed frame
sizes that exceed the allocated buffer.
@github-actions github-actions Bot added the CDVD label Jul 23, 2026
@SternXD

SternXD commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Fill out the PR Template.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting a contribution to PCSX2

As this is your first pull request, please be aware of the contributing guidelines.

Additionally, as per recent changes in GitHub Actions, your pull request will need to be approved by a maintainer before GitHub Actions can run against it. You can find more information about this change here.

Please be patient until this happens. In the meantime if you'd like to confirm the builds are passing, you have the option of opening a PR on your own fork, just make sure your fork's master branch is up to date!

@acts-1631

Copy link
Copy Markdown
Author

Working with a broken wrist rn so typing ability is limited. I'll update both later on if you keep them open. Sorry

@Mrlinkwii Mrlinkwii added this to the Release 2.10 milestone Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants