VDB
Sign up
—

GO-2022-0247

Buffer overflow in WASM modules in misc/wasm and cmd/link

Quick fix

GO-2022-0247 — toolchain: upgrade to the fixed version with the command below.

go get toolchain@v1.16.9

Details

When invoking functions from WASM modules, built using GOARCH=wasm GOOS=js, passing very large arguments can cause portions of the module to be overwritten with data from the arguments due to a buffer overflow error.

If using wasm_exec.js to execute WASM modules, users will need to replace their copy (as described in https://golang.org/wiki/WebAssembly#getting-started) after rebuilding any modules.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/toolchain
Introduced in: 0Fixed in: 1.16.9
Fixgo get toolchain@v1.16.9

References