Katalog CVE

CVE-2026-90648

WysokieCVSS 7.1
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.15%

Percentyl 5 - wyżej niż 5% wszystkich znanych CVE

Streszczenie

wasm2c w WebAssembly wabt do wersji 1.0.41 pozwala na ucieczkę z sandboxa w niektórych sytuacjach, głównie na platformach 32-bitowych (atak "table flip"). Nie sprawdza wartości zwracanej przez calloc() w wasm_rt_allocate_funcref_table(); gdy alokacja tabeli funcref zawiedzie, table->data pozostaje NULL, a table->size zachowuje zadeklarowaną liczbę elementów, co pozwala na dostęp do dowolnych adresów pamięci, odczyt/zapis oraz wykonanie kodu. Wymaga to niepowodzenia alokacji, np. przy limicie przestrzeni adresowej, na hostach 32-bitowych lub pod presją pamięci.

Ocena ryzyka

Podatność umożliwia pełną ucieczkę z sandboxa wasm2c, co może prowadzić do wykonania dowolnego kodu w procesie hosta. Dotyczy to aplikacji wykorzystujących wasm2c jako granicę izolacji, w tym Firefoksa (biblioteki Graphite, Hunspell, Ogg, Expat, Woff2), co stwarza ryzyko przy przetwarzaniu niezaufanych danych.

Rekomendacja

Zaktualizuj wabt do wersji zawierającej poprawkę (po 1.0.41) lub unikaj używania wasm2c na platformach 32-bitowych i w warunkach ograniczonej pamięci. Monitoruj komunikaty bezpieczeństwa dla Firefoksa i innych aplikacji korzystających z wasm2c.

Inne podatności w wabt

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

wasm2c in WebAssembly wabt through 1.0.41 allows sandbox escape in some situations that primarily involve 32-bit platforms, aka a "table flip" attack. It does not check the return value of calloc() in wasm_rt_allocate_funcref_table() (wasm2c/wasm-rt-impl-tableops.inc). When the funcref table allocation fails, table->data is left NULL while table->size keeps the guest-declared element count; thus, bounds checks still pass and table element accesses resolve to absolute memory addresses (i * sizeof(wasm_rt_funcref_t)). This gives arbitrary read and write of host process memory and - via table.get, table.set, and call_indirect - arbitrary code execution, defeating the isolation that wasm2c exists to provide (a full sandbox escape). wasm2c is used as an in-process sandboxing boundary by RLBox and WasmBoxC, including in Firefox, which compiles the Graphite, Hunspell, Ogg, Expat, and Woff2 libraries via wasm2c to contain untrusted font, media, and XML input. Therefore, sandboxing in these applications is potentially affected. Exploitation requires the funcref table allocation to fail, for example under an address-space limit (RLIMIT_AS), on 32-bit hosts, with vm.overcommit_memory=2, or under memory pressure. On 64-bit Linux with default overcommit the allocation succeeds and the defect is not triggered. The wasm2c memory allocator aborts on calloc failure in the same runtime; the table allocator lacks this abort behavior. This was introduced in commit ab9e0b55 (PR #813).

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS