Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Segmentation fault] slot index overflow because of slot missing in some bytecode #337

Closed
ha1vk opened this issue Jun 20, 2022 · 3 comments

Comments

@ha1vk
Copy link
Contributor

ha1vk commented Jun 20, 2022

image

POC is as poc.wasm and the source is here ,use `./wat2wasm --enable-all --no-check poc.wat` to get poc.wasm
(module
  (type (;0;) (func))
  (func (;0;) (type 0)
    f32.const 1.1
    f32.ceil

    i32.const 0x13
    i32.const 0x2
    memory.fill
  )
  (memory (;0;) 1)
  (export "_start" (func 0))
  (start 0))

image

poc.wasm.zip

@vshymanskyy
Copy link
Member

Thanks for reporting!

@vshymanskyy
Copy link
Member

Looks like related to #344 ?

@jhutchings1
Copy link

I saw this issue was referenced in CVE-2022-34529. Does this impact any of the developer packages for WASM? cc: @taladrane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants