Repository navigation
Conversation
Collaborator
|
Review requested:
|
Eusgor
force-pushed
the
wasi-iovec-overflow
branch
from
October 19, 2026 13:45
38c728b to
2bf1b41
Compare
Guest-controlled counts were multiplied by the serialized element size in uint32_t. A length such as 0x20000000 wraps the product to 0, so the bounds check accepts the array and deserialization reads past the end of the WebAssembly memory. Multiply in size_t and reject an overflowing product before reading the array. The same check covers fd_read, fd_write, fd_pread, fd_pwrite, poll_oneoff, sock_recv, and sock_send. Signed-off-by: Evgeniy Gorbanyov <esgor@altlinux.org>
Eusgor
force-pushed
the
wasi-iovec-overflow
branch
from
October 19, 2026 14:35
2bf1b41 to
fc8746d
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #66849 +/- ##
==========================================
+ Coverage 90.50% 90.51% +0.01%
==========================================
Files 797 797
Lines 278195 278195
Branches 53453 53456 +3
==========================================
+ Hits 251777 251820 +43
+ Misses 16795 16754 -41
+ Partials 9623 9621 -2
🚀 New features to boost your workflow:
|
guybedford
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Guest-controlled counts were multiplied by the serialized element size in uint32_t. A length such as 0x20000000 wraps the product to 0, so the bounds check accepts the array and deserialization reads past the end of the WebAssembly memory.
Multiply in size_t and reject an overflowing product before reading the array. The same check covers fd_read, fd_write, fd_pread, fd_pwrite, poll_oneoff, sock_recv, and sock_send.