Skip to content

fix(elf): share section count admission with carrier readers - #12196

Merged
morluto merged 1 commit into
audit/elf-section-admissionfrom
audit/elf-carrier-table-admission
Nov 19, 2026
Merged

morluto merged 1 commit into
audit/elf-section-admissionfrom
audit/elf-carrier-table-admission

Conversation

@morluto

@morluto morluto commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Summary

Dart, Deno, and Node SEA still interpreted raw ELF section counts independently. They could consume section rows from a table whose count was encoded in a reserved direct range.

Use the shared section-table admission facts from #12193 before consuming those rows. Node SEA preserves a confirmed program note when section fallback is unnecessary. Deno keeps its existing distinction between a confirmed carrier with damaged metadata and a file whose identity is unresolved.

Validation

  • Four authored cases failed before the fix and passed afterward. The valid Node SEA program-note control passed before and after.
  • 294 source and boundary tests passed with one existing skip. An additional 35 compiled CLI and stdio MCP tests passed. npm run check:fast and git diff --check passed.
  • The tests used inert local format fixtures and did not execute target binaries.

Author readiness

Human owner: @morluto

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T05:00:13.889570Z 11b7afe PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Dart, Deno, and Node SEA now share the ELF section-count check before reading section rows.

  • Dart symbol reads stop when the ELF section count is reserved.
  • Deno checks program notes when section metadata is malformed.
  • Node SEA skips section fallbacks with reserved section counts.

This extends PR #12193 rather than duplicating it. No superseding change is present in the supplied stack. No actionable correctness or security issues were found. This review checked source and tests; it did not rerun the tests.

Reviews (1) · Last reviewed commit: "fix(elf): admit section tables before ca..." · Reviewed by Greptile

@morluto
morluto merged commit 31d635e into audit/elf-section-admission Nov 19, 2026
1 check passed
@morluto
morluto deleted the audit/elf-carrier-table-admission branch November 19, 2026 05:01
morluto added a commit that referenced this pull request Nov 19, 2026
* fix(elf): reject invalid section table and zlib declarations

Refs #10149, #10148, #9330.

Co-authored-by: Nianze Wu <[email protected]>

* fix(elf): share section count admission with carrier readers (#12196)

fix(elf): admit section tables before carrier recognition

---------

Co-authored-by: Nianze Wu <[email protected]>
@morluto morluto added area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant