Skip to content

auxflash-server: validate slot index to prevent out-of-bounds writes#2483

Merged
evan-oxide merged 1 commit intomasterfrom
evan/auxflash-oob
Apr 21, 2026
Merged

auxflash-server: validate slot index to prevent out-of-bounds writes#2483
evan-oxide merged 1 commit intomasterfrom
evan/auxflash-oob

Conversation

@evan-oxide
Copy link
Copy Markdown
Contributor

Before, you could try to write (or read) a slot index higher than the number of slots. If there was extra unused space on the flash chip past the slots, this bug would presumably let you write to the unused space. The grapefruit I tested on doesn't have unused space, so it reported a QspiTransferError. Now with the bounds check added, it reports InvalidSlot instead.

This would also have been fixed by #2296

@evan-oxide evan-oxide requested a review from mkeeter April 21, 2026 17:16
Copy link
Copy Markdown
Collaborator

@mkeeter mkeeter left a comment

Choose a reason for hiding this comment

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

🎉

@evan-oxide evan-oxide enabled auto-merge (squash) April 21, 2026 20:41
@evan-oxide evan-oxide merged commit 8d36396 into master Apr 21, 2026
183 checks passed
@evan-oxide evan-oxide deleted the evan/auxflash-oob branch April 21, 2026 20:54
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.

2 participants