Skip to content

CVE-2026-35186 Wasmtime has an improperly masked return value from `table.grow` with Winch compiler backend

MediumCVSS 6.1 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

Wasmtime is a runtime for WebAssembly. From 25.0.0 to before 36.0.7, 42.0.2, and 43.0.1, Wasmtime's Winch compiler backend contains a bug where translating the table.grow operator causes the result to be incorrectly typed. For 32-bit tables this means that the result of the operator, internally in Winch, is tagged as a 64-bit value instead of a 32-bit value. This invalid internal representation of Winch's compiler state compounds into further issues depending on how the value is consumed. The primary consequence of this bug is that bytes in the host's address space can be stored/read from. This is only applicable to the 16 bytes before linear memory, however, as the only significant return value of table.grow that can be misinterpreted is -1. The bytes before linear memory are, by default, unmapped memory. Wasmtime will detect this fault and abort the process, however, because wasm should not be able to access these bytes. Overall this this bug in Winch represents a DoS vector by crashing the host process, a correctness issue within Winch, and a possible leak of up to 16-bytes before linear memory. Wasmtime's default compiler is Cranelift, not Winch, and Wasmtime's default settings are to place guard pages before linear memory. This means that Wasmtime's default configuration is not affected by this issue, and when explicitly choosing Winch Wasmtime's otherwise default configuration leads to a DoS. Disabling guard pages before linear memory is required to possibly leak up to 16-bytes of host data. This vulnerability is fixed in 36.0.7, 42.0.2, and 43.0.1.

Upgrade path

9 packages: 3 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
debian/rust-wasmtime(Debian 13) = 26.0.1+dfsg-3; = 26.0.1+dfsg-4; = 26.0.1+dfsg-5; = 26.0.1+dfsg-6 +40 more No fix listed No fix yet
redhat/redhat-user-workloads/rhcl-1-3-wasm-shim(Red Hat connectivity_link 1) All versions No fix listed No fix yet
redhat/virt-firmware-rs(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
ubuntu/rust-wasmtime(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/rust-wasmtime(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/rust-wasmtime(Ubuntu 26.10) All versions No fix listed No fix yet
bytecodealliance wasmtime = 43.0.0; = >= 25.0.0, < 36.0.7; = >= 37.0.0, < 42.0.2; = >= 43.0.0, < 44.0.1 +2 more 36.0.7, 42.0.2 Fixed
crates.io wasmtime(crates.io) = 43.0.0; >= 0.0.0-0, < 36.0.7; >= 25.0.0, < 36.0.7; >= 37.0.0, < 42.0.2 +1 more 36.0.7, 42.0.2, 43.0.1 Fixed
debian/rust-wasmtime(Debian 14) < 36.0.7+dfsg-1; = 26.0.1+dfsg-3; = 26.0.1+dfsg-4; = 26.0.1+dfsg-5 +31 more 36.0.7+dfsg-1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io wasmtime(crates.io) >= 25.0.0, < 36.0.7 36.0.7
crates.io wasmtime(crates.io) >= 37.0.0, < 42.0.2 42.0.2
crates.io wasmtime(crates.io) >= 43.0.0, < 43.0.1 43.0.1
crates.io wasmtime(crates.io) = 43.0.0 No fix listed
crates.io wasmtime(crates.io) >= 0.0.0-0, < 36.0.7 36.0.7
bytecodealliance wasmtime = >= 25.0.0, < 36.0.7 No fix listed
bytecodealliance wasmtime = >= 37.0.0, < 42.0.2 No fix listed
bytecodealliance wasmtime = >= 43.0.0, < 44.0.1 No fix listed
debian/rust-wasmtime(Debian:13) All versions No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-10 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-7 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-8 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-9 No fix listed
debian/rust-wasmtime(Debian:13) = 27.0.0+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 27.0.0+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 27.0.0+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:13) = 28.0.1+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 28.0.1+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 28.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-2 No fix listed
Show 70 more
ProductAffected versionsFixed in
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-7 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-8 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.11+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.12+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.12+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.12+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.13+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.5+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.5+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.5+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.5+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.5+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-7 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.7+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.8+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.9+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.9+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:14) < 36.0.7+dfsg-1 36.0.7+dfsg-1
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-10 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-7 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-8 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-9 No fix listed
debian/rust-wasmtime(Debian:14) = 27.0.0+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:14) = 27.0.0+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:14) = 27.0.0+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:14) = 28.0.1+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:14) = 28.0.1+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:14) = 28.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-7 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-8 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.5+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.5+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.5+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.5+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.5+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.6+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.6+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.6+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.6+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.6+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.6+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:14) = 36.0.6+dfsg-7 No fix listed
redhat/redhat-user-workloads/rhcl-1-3-wasm-shim(Red Hat:connectivity_link:1) All versions No fix listed
redhat/virt-firmware-rs(Red Hat:enterprise_linux:10) All versions No fix listed
ubuntu/rust-wasmtime(Ubuntu:24.04) All versions No fix listed
ubuntu/rust-wasmtime(Ubuntu:26.04) All versions No fix listed
ubuntu/rust-wasmtime(Ubuntu:26.10) All versions No fix listed
bytecodealliance wasmtime >= 25.0.0, < 36.0.7 36.0.7
bytecodealliance wasmtime >= 37.0.0, < 42.0.2 42.0.2
bytecodealliance wasmtime = 43.0.0 No fix listed

References