Heap-based buffer overflow in WebKitGTK+ - CVE-2022-22629

 

Heap-based buffer overflow in WebKitGTK+ - CVE-2022-22629

Published: March 14, 2022 / Updated: September 9, 2022


Vulnerability identifier: #VU61337
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-22629
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing HTML content within the WebGLMultiDraw component. A remote attacker can create a specially crafted web page, trick the victim into opening it, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

WebKitGTK+
WPE WebKit
Gentoo Linux
Oracle Linux
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Enterprise Storage
Red Hat CodeReady Linux Builder for Power, little endian
HPE Helion Openstack
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
Red Hat CodeReady Linux Builder for IBM z Systems
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
watchOS
macOS
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Software Development Kit
iPadOS
Apple iOS
tvOS
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
Ubuntu
Submariner
Migration Toolkit for Runtimes
Migration Toolkit for Virtualization
Red Hat Advanced Cluster Management for Kubernetes
OpenShift Logging
Red Hat Migration Toolkit for Applications
Secondary Scheduler Operator for Red Hat OpenShift (OSSO)
OpenShift API for Data Protection (OADP)
Red Hat OpenShift Serverless
OpenShift Service Mesh
OpenShift Virtualization
Migration Toolkit for Containers
webkit2gtk (Debian package)
wpewebkit (Debian package)
libwebkit2gtk-4.0-37 (Ubuntu package)
libjavascriptcoregtk-4.0-18 (Ubuntu package)
libwebkit2gtk-4_0-37
libwebkit2gtk-4_0-37-debuginfo
libjavascriptcoregtk-4_0-18-debuginfo
libjavascriptcoregtk-4_0-18
typelib-1_0-JavaScriptCore-4_0
typelib-1_0-WebKit2WebExtension-4_0
webkit2gtk-4_0-injected-bundles
typelib-1_0-WebKit2-4_0
webkit2gtk-4_0-injected-bundles-debuginfo
webkit2gtk3-debugsource
libwebkit2gtk3-lang
webkit2gtk3-devel
libwebkit2gtk-4_0-37-32bit-debuginfo
libwebkit2gtk-4_0-37-32bit
libjavascriptcoregtk-4_0-18-32bit-debuginfo
libjavascriptcoregtk-4_0-18-32bit
webkit2gtk3-minibrowser-debuginfo
webkit-jsc-4
webkit-jsc-4-debuginfo
webkit2gtk3-minibrowser
net-libs/webkit-gtk
webkit2gtk3 (Red Hat package)
webkitgtk4 (Red Hat package)
glib2 (Red Hat package)
iTunes
Apple Safari
OpenShift Developer Tools and Services

How to mitigate CVE-2022-22629

Install updates from vendor's website.

WebKitGTK+ - addressed in versions 2.34.7, 2.36.0
Submariner - update to 0.14.0
Secondary Scheduler Operator for Red Hat OpenShift (OSSO) - update to 1.1.1
Red Hat OpenShift Serverless - addressed in versions 1.26.0, 1.27.0
Migration Toolkit for Runtimes - update to 1.0.1
OpenShift API for Data Protection (OADP) - update to 1.1.2
Migration Toolkit for Containers - update to 1.7.6
OpenShift Service Mesh - update to 2.3.1
Migration Toolkit for Virtualization - update to 2.4.3
Red Hat Advanced Cluster Management for Kubernetes - addressed in versions 2.6.3, 2.6.4
webkit2gtk (Debian package) - addressed in versions 2.36.0-3~deb10u1, 2.36.0-3~deb11u1
wpewebkit (Debian package) - update to 2.36.0-2~deb11u1
WPE WebKit - addressed in versions 2.34.7, 2.36.0
OpenShift Logging - addressed in versions 5.3.14, 5.4.8, 5.5.5
Red Hat Migration Toolkit for Applications - update to 6.0.1
watchOS - update to 8.5 19T242
iTunes - update to 12.12.3
macOS - update to 12.3 21E230
Apple Safari - update to 15.4
iPadOS - update to 15.4 19E241
Apple iOS - update to 15.4 19E241
tvOS - update to 15.4 19L440
libwebkit2gtk-4.0-37 (Ubuntu package) - addressed in versions 2.36.0-0ubuntu0.20.04.3, 2.36.0-0ubuntu0.21.10.3
libjavascriptcoregtk-4.0-18 (Ubuntu package) - addressed in versions 2.36.0-0ubuntu0.20.04.3, 2.36.0-0ubuntu0.21.10.3
libwebkit2gtk-4_0-37 - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
libwebkit2gtk-4_0-37-debuginfo - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
libjavascriptcoregtk-4_0-18-debuginfo - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
libjavascriptcoregtk-4_0-18 - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
typelib-1_0-JavaScriptCore-4_0 - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
typelib-1_0-WebKit2WebExtension-4_0 - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
webkit2gtk-4_0-injected-bundles - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
typelib-1_0-WebKit2-4_0 - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
webkit2gtk-4_0-injected-bundles-debuginfo - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
webkit2gtk3-debugsource - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
libwebkit2gtk3-lang - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
webkit2gtk3-devel - addressed in versions 2.36.0-2.96.1, 2.36.0-150000.3.100.1, 2.36.0-150200.32.1
libwebkit2gtk-4_0-37-32bit-debuginfo - update to 2.36.0-150200.32.1
libwebkit2gtk-4_0-37-32bit - update to 2.36.0-150200.32.1
libjavascriptcoregtk-4_0-18-32bit-debuginfo - update to 2.36.0-150200.32.1
libjavascriptcoregtk-4_0-18-32bit - update to 2.36.0-150200.32.1
webkit2gtk3-minibrowser-debuginfo - update to 2.36.0-150200.32.1
webkit-jsc-4 - update to 2.36.0-150200.32.1
webkit-jsc-4-debuginfo - update to 2.36.0-150200.32.1
webkit2gtk3-minibrowser - update to 2.36.0-150200.32.1
net-libs/webkit-gtk - update to 2.36.7
webkit2gtk3 (Red Hat package) - addressed in versions 2.36.7-1.el8, 2.36.7-1.el9
webkitgtk4 (Red Hat package) - update to 2.48.3-2.el7_9
glib2 (Red Hat package) - update to 2.56.4-159.el8
OpenShift Developer Tools and Services - update to 4.9
OpenShift Virtualization - addressed in versions 4.11.1, 4.12.0

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins