diff options
Diffstat (limited to 'meta/recipes-sato/webkit/webkitgtk/CVE-2023-32435.patch')
| -rw-r--r-- | meta/recipes-sato/webkit/webkitgtk/CVE-2023-32435.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/webkitgtk/CVE-2023-32435.patch b/meta/recipes-sato/webkit/webkitgtk/CVE-2023-32435.patch new file mode 100644 index 0000000000..c6ac6b4a1c --- /dev/null +++ b/meta/recipes-sato/webkit/webkitgtk/CVE-2023-32435.patch | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | CVE: CVE-2023-32435 | ||
| 2 | |||
| 3 | Upstream-Status: Backport [https://github.com/WebKit/WebKit/commit/50c7aae] | ||
| 4 | |||
| 5 | Backport and rebase patch to fix CVE-2023-32435 for webkitgtk 2.38.6: | ||
| 6 | |||
| 7 | * drop the patches for the files WasmAirIRGenerator64.cpp and | ||
| 8 | WasmAirIRGeneratorBase.h which are involved in 2.40.0 | ||
| 9 | * drop test cases as well | ||
| 10 | |||
| 11 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 12 | |||
| 13 | From 50c7aaec2f53ab3b960f1b299aad5009df6f1967 Mon Sep 17 00:00:00 2001 | ||
| 14 | From: Justin Michaud <justin_michaud@apple.com> | ||
| 15 | Date: Wed, 8 Feb 2023 14:41:34 -0800 | ||
| 16 | Subject: [PATCH] Fixup air pointer args if they are not valid in BBQ | ||
| 17 | https://bugs.webkit.org/show_bug.cgi?id=251890 rdar://105079565 | ||
| 18 | |||
| 19 | Reviewed by Mark Lam and Yusuke Suzuki. | ||
| 20 | |||
| 21 | We are not fixing up air args if their offsets don't fit into the instruction | ||
| 22 | in a few cases. | ||
| 23 | |||
| 24 | Here are some examples: | ||
| 25 | |||
| 26 | MoveDouble 28480(%sp), %q16 ; too big | ||
| 27 | MoveVector 248(%sp), %q16 ; not 16-byte aligned | ||
| 28 | |||
| 29 | Let's fix up these arguments. We also fix a missing validation check | ||
| 30 | when parsing exception tags exposed by this test. | ||
| 31 | |||
| 32 | * Source/JavaScriptCore/wasm/WasmAirIRGenerator64.cpp: | ||
| 33 | (JSC::Wasm::AirIRGenerator64::addReturn): | ||
| 34 | * Source/JavaScriptCore/wasm/WasmAirIRGeneratorBase.h: | ||
| 35 | (JSC::Wasm::AirIRGeneratorBase::emitPatchpoint): | ||
| 36 | |||
| 37 | oops | ||
| 38 | |||
| 39 | Canonical link: https://commits.webkit.org/260038@main | ||
| 40 | --- | ||
| 41 | Source/JavaScriptCore/wasm/WasmSectionParser.cpp | 2 + | ||
| 42 | 1 files changed, 2 insertions(+), 0 deletions(-) | ||
| 43 | |||
| 44 | diff --git a/Source/JavaScriptCore/wasm/WasmSectionParser.cpp b/Source/JavaScriptCore/wasm/WasmSectionParser.cpp | ||
| 45 | index 6b8f9016..a5f3a88b 100644 | ||
| 46 | --- a/Source/JavaScriptCore/wasm/WasmSectionParser.cpp | ||
| 47 | +++ b/Source/JavaScriptCore/wasm/WasmSectionParser.cpp | ||
| 48 | @@ -917,6 +917,8 @@ auto SectionParser::parseException() -> PartialResult | ||
| 49 | WASM_PARSER_FAIL_IF(!parseVarUInt32(typeNumber), "can't get ", exceptionNumber, "th Exception's type number"); | ||
| 50 | WASM_PARSER_FAIL_IF(typeNumber >= m_info->typeCount(), exceptionNumber, "th Exception type number is invalid ", typeNumber); | ||
| 51 | TypeIndex typeIndex = TypeInformation::get(m_info->typeSignatures[typeNumber]); | ||
| 52 | + auto signature = TypeInformation::getFunctionSignature(typeIndex); | ||
| 53 | + WASM_PARSER_FAIL_IF(!signature.returnsVoid(), exceptionNumber, "th Exception type cannot have a non-void return type ", typeNumber); | ||
| 54 | m_info->internalExceptionTypeIndices.uncheckedAppend(typeIndex); | ||
| 55 | } | ||
| 56 | |||
| 57 | -- | ||
| 58 | 2.34.1 | ||
| 59 | |||
