Registry Mirror
Skip to content

Conversation

@avrabe

@avrabe avrabe commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Patch release. The headline is a live vulnerability in a shipped version, which is why this is cut now rather than waiting for the v0.57 hub.

ARM --safety-bounds mask emitted an identity mask (#959, SECURITY)

The mask path exempted bytes == 0 from its power-of-two gate. A module declaring (memory 0) compiled with exit 0 and movw r10, #0x0 in the reset handler. The runtime guard computes R10 - 1 — and 0 - 1 is 0xFFFFFFFF, a mask that masks nothing. Every access then executed unmasked at [R11 + addr]: unbounded out-of-bounds read and write, in the mode whose entire purpose is to bound them.

This is the same disease as #953 one release earlier, on the other backend and running the other direction:

sentinel meaning effect
#953 (rv32) 0 = "unset" invented a 64 KiB bound for a zero-byte memory
#959 (ARM) 0 = "no bound needed" erased the bound that should exist

Both are a numeric 0 serving as sentinel and legitimate value. That is why the fix arrived as a sweep of the collision class — 54 sites examined, 4 converted, 3 latent defects found — rather than a third point patch. The v0.53 retrospective finding was that we fix instances and not mechanisms; this is the correction. The sweep also caught a regression the #953 patch itself introduced on the rv32 --func-index path, and a #932 attestation defect.

Also fixed

Release surfaces — all four swept and checker-confirmed

Cargo.toml [workspace.package] + 10 path-dep pins · MODULE.bazel · npm/package.json · Cargo.lock
→ scripts/check_version_pins.py: OK on all four. Derived artifacts regenerated via --emit-status. Claim gate 43/43.

Scope move — logged, not silent

RQ-57-SENTINEL, RQ-57-BRTARGET, RQ-57-WCET2OPS, RQ-57-I32CONST, RQ-57-RULEINV were planned for v0.57 and are re-tagged release: v0.56.2 / status: implemented. SENTINEL carried the security fix and the other four were already merged on main, so a tag excluding them did not exist. rivet error/warning counts are unchanged by the move (50/164 before and after — pre-existing and unrelated).

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

Pulls four merged commits forward into a patch release because the first is a
live vulnerability in a shipped version:

  #959  ARM --safety-bounds mask emitted an IDENTITY mask on (memory 0)
  #961  thumb-2 branch target could land mid-instruction (#930)
  #962  I64Const/I64Ldr/I64Str unpriced in the WCET model (#936)
  #958  synth verify covers i32.const + reports the decline denominator

The ARM mask bug is the headline. The mask path exempted `bytes == 0` from its
power-of-two gate, so `(memory 0)` compiled with exit 0 and `movw r10, #0x0`.
The guard computes `R10 - 1`, and `0 - 1` is `0xFFFFFFFF` — a mask that masks
nothing, in the mode whose whole purpose is to bound accesses. Unbounded OOB
read AND write.

It is the same sentinel/value collision as #953 one release earlier, running
the other way: there `0` meant "unset" and INVENTED a 64 KiB bound, here `0`
meant "no bound needed" and ERASED the real one. That is why the fix landed as
a sweep of the collision class (54 sites, 4 converted, 3 latent defects) and
not another point patch — the v0.53 finding was that we keep fixing instances
rather than mechanisms.

Release surfaces, all four swept to 0.56.2 and checker-confirmed:
  Cargo.toml [workspace.package] + 10 path-dep version= pins
  MODULE.bazel, npm/package.json, Cargo.lock (cargo metadata)
  scripts/check_version_pins.py: OK on all four

Derived artifacts regenerated (--emit-status): artifacts/status.json,
docs/status/FEATURE_MATRIX.md. Claim gate: 43/43.

SCOPE MOVE, logged not silent: RQ-57-SENTINEL, RQ-57-BRTARGET, RQ-57-WCET2OPS,
RQ-57-I32CONST and RQ-57-RULEINV were planned for v0.57 and are re-tagged
release: v0.56.2 / status: implemented. SENTINEL carried the security fix and
the other four were already merged on main, so a tag excluding them did not
exist. rivet error/warning counts are unchanged by the move (50/164 before and
after — pre-existing, unrelated to these artifacts).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe
avrabe merged commit dad414f into main Aug 13, 2026
57 checks passed
@avrabe
avrabe deleted the release/v0.56.2 branch August 13, 2026 17:26
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