{"document":{"aggregate_severity":{"namespace":"https://www.suse.com/support/security/rating/","text":"moderate"},"category":"csaf_vex","csaf_version":"2.0","distribution":{"text":"Copyright 2024 SUSE LLC. All rights reserved.","tlp":{"label":"WHITE","url":"https://www.first.org/tlp/"}},"lang":"en","notes":[{"category":"summary","text":"SUSE CVE-2022-24791","title":"Title"},{"category":"description","text":"Wasmtime is a standalone JIT-style runtime for WebAssembly, using Cranelift. There is a use after free vulnerability in Wasmtime when both running Wasm that uses externrefs and enabling epoch interruption in Wasmtime. If you are not explicitly enabling epoch interruption (it is disabled by default) then you are not affected. If you are explicitly disabling the Wasm reference types proposal (it is enabled by default) then you are also not affected. The use after free is caused by Cranelift failing to emit stack maps when there are safepoints inside cold blocks. Cold blocks occur when epoch interruption is enabled. Cold blocks are emitted at the end of compiled functions, and change the order blocks are emitted versus defined. This reordering accidentally caused Cranelift to skip emitting some stack maps because it expected to emit the stack maps in block definition order, rather than block emission order. When Wasmtime would eventually collect garbage, it would fail to find live references on the stack because of the missing stack maps, think that they were unreferenced garbage, and therefore reclaim them. Then after the collection ended, the Wasm code could use the reclaimed-too-early references, which is a use after free. Patches have been released in versions 0.34.2 and 0.35.2, which fix the vulnerability. All Wasmtime users are recommended to upgrade to these patched versions. If upgrading is not an option for you at this time, you can avoid the vulnerability by either: disabling the Wasm reference types proposal, config.wasm_reference_types(false); or by disabling epoch interruption if you were previously enabling it. config.epoch_interruption(false).","title":"Description of the CVE"},{"category":"legal_disclaimer","text":"CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).","title":"Terms of use"}],"publisher":{"category":"vendor","contact_details":"https://www.suse.com/support/security/contact/","name":"SUSE Product Security Team","namespace":"https://www.suse.com/"},"references":[{"category":"external","summary":"CVE-2022-24791","url":"https://www.suse.com/security/cve/CVE-2022-24791"},{"category":"external","summary":"SUSE Security Ratings","url":"https://www.suse.com/support/security/rating/"}],"title":"SUSE CVE CVE-2022-24791","tracking":{"current_release_date":"2025-11-03T03:36:19Z","generator":{"date":"2023-02-15T03:27:38Z","engine":{"name":"cve-database.git:bin/generate-csaf-vex.pl","version":"1"}},"id":"CVE-2022-24791","initial_release_date":"2023-02-15T03:27:38Z","revision_history":[{"date":"2023-02-15T03:27:38Z","number":"2","summary":"Current version"},{"date":"2025-01-01T03:11:20Z","number":"3","summary":"Current version"},{"date":"2025-02-14T07:54:37Z","number":"4","summary":"Current version"},{"date":"2025-02-16T07:36:12Z","number":"5","summary":"Current version"},{"date":"2025-03-15T07:41:10Z","number":"6","summary":"Current version"},{"date":"2025-10-07T01:59:11Z","number":"7","summary":"Current version"},{"date":"2025-11-03T03:36:19Z","number":"8","summary":"Current version"}],"status":"interim","version":"8"}},"product_tree":{"branches":[{"branches":[{"branches":[{"category":"product_name","name":"SUSE Linux Enterprise Server 16.0","product":{"name":"SUSE Linux Enterprise Server 16.0","product_id":"SUSE Linux Enterprise Server 16.0","product_identification_helper":{"cpe":"cpe:/o:suse:sles:16.0"}}},{"category":"product_name","name":"openSUSE Tumbleweed","product":{"name":"openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed","product_identification_helper":{"cpe":"cpe:/o:opensuse:tumbleweed"}}},{"category":"product_version","name":"cargo-audit-advisory-db-20220420-1.1","product":{"name":"cargo-audit-advisory-db-20220420-1.1","product_id":"cargo-audit-advisory-db-20220420-1.1","product_identification_helper":{"purl":"pkg:rpm/suse/cargo-audit-advisory-db@20220420-1.1?upstream=cargo-audit-advisory-db-20220420-1.1.src.rpm"}}},{"category":"product_version","name":"cargo-audit-advisory-db-20250304-160000.2.2","product":{"name":"cargo-audit-advisory-db-20250304-160000.2.2","product_id":"cargo-audit-advisory-db-20250304-160000.2.2","product_identification_helper":{"purl":"pkg:rpm/suse/cargo-audit-advisory-db@20250304-160000.2.2?upstream=cargo-audit-advisory-db-20250304-160000.2.2.src.rpm"}}}],"category":"product_family","name":"SUSE Linux Enterprise"}],"category":"vendor","name":"SUSE"}],"relationships":[{"category":"default_component_of","full_product_name":{"name":"cargo-audit-advisory-db-20250304-160000.2.2 as component of SUSE Linux Enterprise Server 16.0","product_id":"SUSE Linux Enterprise Server 16.0:cargo-audit-advisory-db-20250304-160000.2.2"},"product_reference":"cargo-audit-advisory-db-20250304-160000.2.2","relates_to_product_reference":"SUSE Linux Enterprise Server 16.0"},{"category":"default_component_of","full_product_name":{"name":"cargo-audit-advisory-db-20220420-1.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:cargo-audit-advisory-db-20220420-1.1"},"product_reference":"cargo-audit-advisory-db-20220420-1.1","relates_to_product_reference":"openSUSE Tumbleweed"}]},"vulnerabilities":[{"cve":"CVE-2022-24791","ids":[{"system_name":"SUSE CVE Page","text":"https://www.suse.com/security/cve/CVE-2022-24791"}],"notes":[{"category":"general","text":"Wasmtime is a standalone JIT-style runtime for WebAssembly, using Cranelift. There is a use after free vulnerability in Wasmtime when both running Wasm that uses externrefs and enabling epoch interruption in Wasmtime. If you are not explicitly enabling epoch interruption (it is disabled by default) then you are not affected. If you are explicitly disabling the Wasm reference types proposal (it is enabled by default) then you are also not affected. The use after free is caused by Cranelift failing to emit stack maps when there are safepoints inside cold blocks. Cold blocks occur when epoch interruption is enabled. Cold blocks are emitted at the end of compiled functions, and change the order blocks are emitted versus defined. This reordering accidentally caused Cranelift to skip emitting some stack maps because it expected to emit the stack maps in block definition order, rather than block emission order. When Wasmtime would eventually collect garbage, it would fail to find live references on the stack because of the missing stack maps, think that they were unreferenced garbage, and therefore reclaim them. Then after the collection ended, the Wasm code could use the reclaimed-too-early references, which is a use after free. Patches have been released in versions 0.34.2 and 0.35.2, which fix the vulnerability. All Wasmtime users are recommended to upgrade to these patched versions. If upgrading is not an option for you at this time, you can avoid the vulnerability by either: disabling the Wasm reference types proposal, config.wasm_reference_types(false); or by disabling epoch interruption if you were previously enabling it. config.epoch_interruption(false).","title":"CVE description"}],"product_status":{"recommended":["SUSE Linux Enterprise Server 16.0:cargo-audit-advisory-db-20250304-160000.2.2","openSUSE Tumbleweed:cargo-audit-advisory-db-20220420-1.1"]},"references":[{"category":"external","summary":"CVE-2022-24791","url":"https://www.suse.com/security/cve/CVE-2022-24791"},{"category":"external","summary":"SUSE Security Ratings","url":"https://www.suse.com/support/security/rating/"}],"remediations":[{"category":"vendor_fix","details":"To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n","product_ids":["SUSE Linux Enterprise Server 16.0:cargo-audit-advisory-db-20250304-160000.2.2","openSUSE Tumbleweed:cargo-audit-advisory-db-20220420-1.1"]}],"scores":[{"cvss_v3":{"baseScore":9.8,"baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"products":["SUSE Linux Enterprise Server 16.0:cargo-audit-advisory-db-20250304-160000.2.2","openSUSE Tumbleweed:cargo-audit-advisory-db-20220420-1.1"]}],"threats":[{"category":"impact","date":"2022-04-01T04:00:18Z","details":"moderate"}],"title":"CVE-2022-24791"}]}