Work

Put Your Memory in Order: Efficient Domain-based Memory Isolation for WASM Applications

Year: 2023
Type: conference-paper
Abstract: Memory corruption vulnerabilities can have more serious consequences in WebAssembly than in native applications. Therefore, we present \tool, the first WebAssembly runtime with memory isolation. Our insight is to use MPK hardware for efficient memory protection in WebAssembly. However, MPK and WebAssembly have different memory models: MPK protects virtual memory pages, while WebAssembly uses linear memory that has no pages. Mapping MPK APIs to WebAssembly causes memory bloating and low running efficiency. To solve this, we propose \acfdilm, which protects linear memory at function-level granularity. We implemented \acdilm into the official WebAssembly runtime to build \tool. Our evaluation shows that \tool can prevent memory corruption in real projects with a 1.77% average overhead and negligible memory cost.
Institution: Peking University
Language: English
Open Access status: bronze
OpenAlex ID: W4388856869
FWCI: 1.973
Cites: 28
Cited by: 11
Related to: 10