summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2023-09-08 00:21:55 +0800
committerSteve Sakoman <steve@sakoman.com>2023-09-13 06:21:25 -1000
commit1b290ab11c42143ae61d4093e693404cdbc52503 (patch)
tree81223d9e34903c57d239341ddef38e211e78ce6a
parent97e50bbe645ef5729ce5c0f05e1f8dbacbef7e48 (diff)
downloadpoky-1b290ab11c42143ae61d4093e693404cdbc52503.tar.gz
webkitgtk: fix CVE-2023-32435
Backport and rebase patch to fix CVE-2023-32435 for webkitgtk 2.38.6: * drop the patches for the files WasmAirIRGenerator64.cpp and WasmAirIRGeneratorBase.h which are involved in 2.40.0 * drop test cases as well CVE: CVE-2023-32435 (From OE-Core rev: c54f98d35f2cb276dc49a5ccd4813ccc34c6f668) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-sato/webkit/webkitgtk/CVE-2023-32435.patch59
-rw-r--r--meta/recipes-sato/webkit/webkitgtk_2.38.6.bb1
2 files changed, 60 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 @@
1CVE: CVE-2023-32435
2
3Upstream-Status: Backport [https://github.com/WebKit/WebKit/commit/50c7aae]
4
5Backport 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
11Signed-off-by: Kai Kang <kai.kang@windriver.com>
12
13From 50c7aaec2f53ab3b960f1b299aad5009df6f1967 Mon Sep 17 00:00:00 2001
14From: Justin Michaud <justin_michaud@apple.com>
15Date: Wed, 8 Feb 2023 14:41:34 -0800
16Subject: [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
19Reviewed by Mark Lam and Yusuke Suzuki.
20
21We are not fixing up air args if their offsets don't fit into the instruction
22in a few cases.
23
24Here are some examples:
25
26MoveDouble 28480(%sp), %q16 ; too big
27MoveVector 248(%sp), %q16 ; not 16-byte aligned
28
29Let's fix up these arguments. We also fix a missing validation check
30when 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
37oops
38
39Canonical link: https://commits.webkit.org/260038@main
40---
41 Source/JavaScriptCore/wasm/WasmSectionParser.cpp | 2 +
42 1 files changed, 2 insertions(+), 0 deletions(-)
43
44diff --git a/Source/JavaScriptCore/wasm/WasmSectionParser.cpp b/Source/JavaScriptCore/wasm/WasmSectionParser.cpp
45index 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--
582.34.1
59
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.38.6.bb b/meta/recipes-sato/webkit/webkitgtk_2.38.6.bb
index 4cef133c19..813198df5f 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.38.6.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.38.6.bb
@@ -14,6 +14,7 @@ SRC_URI = "https://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
14 file://reproducibility.patch \ 14 file://reproducibility.patch \
15 file://0d3344e17d258106617b0e6d783d073b188a2548.patch \ 15 file://0d3344e17d258106617b0e6d783d073b188a2548.patch \
16 file://d318bb461f040b90453bc4e100dcf967243ecd98.patch \ 16 file://d318bb461f040b90453bc4e100dcf967243ecd98.patch \
17 file://CVE-2023-32435.patch \
17 file://CVE-2023-32439.patch \ 18 file://CVE-2023-32439.patch \
18 " 19 "
19SRC_URI[sha256sum] = "1c614c9589389db1a79ea9ba4293bbe8ac3ab0a2234cac700935fae0724ad48b" 20SRC_URI[sha256sum] = "1c614c9589389db1a79ea9ba4293bbe8ac3ab0a2234cac700935fae0724ad48b"