Skip to content

fix(update-agent): checked arithmetic for raw block-device write bounds - #1390

Open
Cr0wTom wants to merge 1 commit into
mainfrom
thomassermpinis/vuln-6331-fuzzyfuzzer-agentp0-update-agent-claim-signature-scope-outer
Open

Cr0wTom wants to merge 1 commit into
mainfrom
thomassermpinis/vuln-6331-fuzzyfuzzer-agentp0-update-agent-claim-signature-scope-outer

Conversation

@Cr0wTom

@Cr0wTom Cr0wTom commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Raw::update computed size + offset and src_len + offset with unchecked u64 adds; release builds wrap (no overflow-checks profile), so crafted unsigned system_components values could wrap past the block-device bounds check.

Fix: bounds math extracted into pure checked_write_bounds using checked_add; unchanged behavior for valid inputs. Tests cover both overflow cases, exact-fit, and redundant slots (run in Linux CI).

Mitigates: u64-wrap element of VULN-6331/6332; external disclosure report (Sep 2026), unchecked-arithmetic finding. Pre-existing residual (slot-A spill within device bounds): ORBS-1763. Part 2/3 of claim hardening.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Cr0wTom
Cr0wTom requested a review from a team as a code owner September 4, 2026 06:18

This branch has not been deployed

No deployments
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