Skip to content

fix(storage): CLOAD shouldnt modify storage privacy bit#182

Open
samlaf wants to merge 1 commit intoveridise-audit-feb-2026from
fix--veridise-799-journal-inner-cload-behavior
Open

fix(storage): CLOAD shouldnt modify storage privacy bit#182
samlaf wants to merge 1 commit intoveridise-audit-feb-2026from
fix--veridise-799-journal-inner-cload-behavior

Conversation

@samlaf
Copy link
Contributor

@samlaf samlaf commented Feb 5, 2026

Fixes veridise-799.

This issue affects newly created accounts where an uninitialized storage slot is accessed via CLOAD before any SSTORE occurs. In such cases, the slot becomes marked as private despite never being written to, causing subsequent public writes to fail.

Future Steps

I'm keeping this PR minimal to only fix the issue finding, but I think we could/should refactor more aggressively and keep the journal layer completely agnostic to cload/sload semantics. See my draft PR for how this can be achieved. Feedback welcome!!

Fixes veridise-799:
This issue affects newly created accounts where an uninitialized storage slot is accessed via CLOAD before any SSTORE occurs. In such cases, the slot becomes marked as private despite never being written to, causing subsequent public writes to fail.
@samlaf samlaf requested a review from cdrappi as a code owner February 5, 2026 15:43
@samlaf samlaf changed the base branch from seismic to veridise-audit-feb-2026 February 5, 2026 15:44
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