Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · 11 min 121 bronnen 2 kritiek 25 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-90648

NONE Gepubliceerd: CWE-252

Beschrijving NL

wasm2c in WebAssembly wabt door 1.0.41 laat sandbox ontsnappen in sommige situaties die voornamelijk betrekking hebben op 32-bits platforms, ook wel een "table flip" -aanval genoemd. Het controleert niet de retourwaarde van calloc() in wasm_rt_allocate_funcref_table() (wasm2c/wasm-rt-impl-tableops.inc). Wanneer de toewijzing van de funcref-tabel mislukt, blijven tabel->gegevens NULL terwijl tabel->grootte het aantal door gasten gedeclareerde elementen behoudt; dus gaan de grenscontroles nog steeds door en de toegang tot het tabelelement wordt omgezet in absolute geheugenadressen (i * sizeof(wasm_rt_funcref_t)). Dit geeft willekeurig lezen en schrijven van het geheugen van het hostproces en - via table.get, table.set en call_indirect - willekeurige code-uitvoering, waarmee de isolatie wordt verslagen die wasm2c biedt (een volledige sandbox escape). wasm2c wordt gebruikt als een in-process sandboxing-grens door RLBox en WasmBoxC, inclusief in Firefox, dat de Graphite-, Hunspell-, Ogg-, Expat- en Woff2-bibliotheken compileert via wasm2c om niet-vertrouwde lettertype-, media- en XML-invoer te bevatten. Daarom wordt sandboxing in deze toepassingen mogelijk beïnvloed. Exploitatie vereist dat de funcref-tabeltoewijzing mislukt, bijvoorbeeld onder een adresruimte-limiet (RLIMIT_AS), op 32-bits hosts, met vm.overcommit_memory=2, of onder geheugendruk. Op 64-bits Linux met standaard overcommit slaagt de toewijzing en wordt het defect niet geactiveerd. De wasm2c geheugentoewijzer breekt af bij calloc-fout in dezelfde runtime; de tabeltoewijzer mist dit afbreekgedrag. Dit werd geïntroduceerd in commit ab9e0b55 (PR #813).

Origineel (Engels) tonen

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).

References