Use-after-free in WebKitGTK+ and WPE WebKit - CVE-2022-30294
Published: May 30, 2022
Vulnerability details
The vulnerability allows a remote attacker to compromise vulnerable system.
The vulnerability exists due to a use-after-free error when processing HTML content within the WebCore::TextureMapperLayer::setContentsLayer() function in WebCore/platform/graphics/texmap/TextureMapperLayer.cpp. A remote attacker can trick the victim to visit a specially crafted website, trigger a use-after-free error and execute arbitrary code on the system.
Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.
Affected software
WPE WebKit
Gentoo Linux
Ubuntu
openEuler
wpewebkit (Debian package)
webkit2gtk (Debian package)
webkit2gtk3-help
webkit2gtk3-debugsource
webkit2gtk3-debuginfo
webkit2gtk3-jsc
webkit2gtk3-devel
webkit2gtk3
webkit2gtk3-jsc-devel
libjavascriptcoregtk-4.0-18 (Ubuntu package)
libwebkit2gtk-4.0-37 (Ubuntu package)
net-libs/webkit-gtk
webkitgtk4 (Red Hat package)
libjavascriptcoregtk-4.1-0 (Ubuntu package)
libwebkit2gtk-4.1-0 (Ubuntu package)
How to mitigate CVE-2022-30294
WPE WebKit - update to 2.36.1
wpewebkit (Debian package) - update to 2.36.3-1~deb11u1
webkit2gtk (Debian package) - addressed in versions 2.36.3-1~deb10u1, 2.36.3-1~deb11u1
webkit2gtk3-help - update to 2.32.1-3
webkit2gtk3-debugsource - update to 2.32.1-3
webkit2gtk3-debuginfo - update to 2.32.1-3
webkit2gtk3-jsc - update to 2.32.1-3
webkit2gtk3-devel - update to 2.32.1-3
webkit2gtk3 - update to 2.32.1-3
webkit2gtk3-jsc-devel - update to 2.32.1-3
libjavascriptcoregtk-4.0-18 (Ubuntu package) - addressed in versions 2.36.2-0ubuntu0.20.04.1, 2.36.2-0ubuntu0.21.10.1, 2.36.2-0ubuntu0.22.04.1
libwebkit2gtk-4.0-37 (Ubuntu package) - addressed in versions 2.36.2-0ubuntu0.20.04.1, 2.36.2-0ubuntu0.21.10.1, 2.36.2-0ubuntu0.22.04.1
libjavascriptcoregtk-4.1-0 (Ubuntu package) - update to 2.36.2-0ubuntu0.22.04.1
libwebkit2gtk-4.1-0 (Ubuntu package) - update to 2.36.2-0ubuntu0.22.04.1
net-libs/webkit-gtk - update to 2.36.7
webkitgtk4 (Red Hat package) - update to 2.48.3-2.el7_9