Use-after-free in iPadOS and Apple iOS - CVE-2021-30858
Published: September 13, 2021 / Updated: April 14, 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 in WebKit. A remote attacker can trick the victim to visit a specially crafted web page, 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.
Note, the vulnerability is being actively exploited in-the-wild.
Affected software
Apple iOS
Gentoo Linux
SUSE CaaS Platform
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Manager Proxy
SUSE Enterprise Storage
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Anolis OS
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
HPE Helion Openstack
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - AUS
macOS
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Realtime Extension
Ubuntu
Fedora
webkit2gtk3 (Red Hat package)
webkitgtk4 (Red Hat package)
webkit2gtk (Debian package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
webkitgtk4-doc
webkitgtk4-jsc-devel
webkitgtk4-devel
webkitgtk4
webkitgtk4-jsc
webkit2gtk3
webkit2gtk3-devel
webkit2gtk3-jsc
webkit2gtk3-jsc-devel
libjavascriptcoregtk-4.0-18 (Ubuntu package)
libwebkit2gtk-4.0-37 (Ubuntu package)
wpewebkit (Debian package)
webkit2gtk-4_0-injected-bundles
libwebkit2gtk3-lang
libjavascriptcoregtk-4_0-18
libjavascriptcoregtk-4_0-18-debuginfo
libwebkit2gtk-4_0-37
libwebkit2gtk-4_0-37-debuginfo
typelib-1_0-JavaScriptCore-4_0
typelib-1_0-WebKit2-4_0
typelib-1_0-WebKit2WebExtension-4_0
webkit2gtk-4_0-injected-bundles-debuginfo
webkit2gtk3-debugsource
WPE WebKit
WebKitGTK+
Apple Safari
How to mitigate CVE-2021-30858
Apple iOS - addressed in versions 14.8 18H17, 12.5.5 16H62
webkit2gtk3 (Red Hat package) - addressed in versions 2.24.4-4.el8_1, 2.24.4-4.el8_2, 2.30.4-3.el8_4
webkitgtk4 (Red Hat package) - update to 2.28.2-3.el7
WPE WebKit - update to 2.32.4
WebKitGTK+ - addressed in versions 2.32.4, 2.33.91
webkit2gtk (Debian package) - addressed in versions 2.32.4-1~deb10u1, 2.32.4-1~deb11u1
macOS - update to 11.6 20G165
Apple Safari - addressed in versions 14.1.2 14611.3.10.1.7, 14.1.2 15611.3.10.1.7
webkitgtk4-doc - update to 2.28.2-3
webkitgtk4-jsc-devel - update to 2.28.2-3
webkitgtk4-devel - update to 2.28.2-3
webkitgtk4 - update to 2.28.2-3
webkitgtk4-jsc - update to 2.28.2-3
webkit2gtk3 - update to 2.30.4-3
webkit2gtk3-devel - update to 2.30.4-3
webkit2gtk3-jsc - update to 2.30.4-3
webkit2gtk3-jsc-devel - update to 2.30.4-3
libjavascriptcoregtk-4.0-18 (Ubuntu package) - addressed in versions 2.32.4-0ubuntu0.18.04.1, 2.32.4-0ubuntu0.20.04.1, 2.32.4-0ubuntu0.21.04.1
libwebkit2gtk-4.0-37 (Ubuntu package) - addressed in versions 2.32.4-0ubuntu0.18.04.1, 2.32.4-0ubuntu0.20.04.1, 2.32.4-0ubuntu0.21.04.1
webkit2gtk3 - addressed in versions 2.32.4-1.fc33, 2.32.4-1.fc34
wpewebkit (Debian package) - update to 2.32.4-1~deb11u1
webkit2gtk-4_0-injected-bundles - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
libwebkit2gtk3-lang - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
libjavascriptcoregtk-4_0-18 - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
libjavascriptcoregtk-4_0-18-debuginfo - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
libwebkit2gtk-4_0-37 - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
libwebkit2gtk-4_0-37-debuginfo - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
typelib-1_0-JavaScriptCore-4_0 - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
typelib-1_0-WebKit2-4_0 - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
typelib-1_0-WebKit2WebExtension-4_0 - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
webkit2gtk-4_0-injected-bundles-debuginfo - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
webkit2gtk3-debugsource - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
webkit2gtk3-devel - addressed in versions 2.32.4-2.71.2, 2.32.4-12.3, 2.34.3-2.82.1, 2.34.3-3.92.1, 2.34.3-23.3
Links to Public Exploits and PoC-codes
- Exploit #7640 - CVEREV3 (Testing CVE-2021-30858 Rev3) (April 14, 2022)
- Exploit #6917 - ps4_8.00_vuln_poc (My take on CVE-2021-30858 for ps4 8.xx) (October 22, 2021)
- Exploit #6896 - PS4-CVE-202130858 (Hi there! Thanks for testing out my second Github repository & attempt to implement a Playstation 4 webkit vulnerability test! So you are aware: I did not discover this exploit, and I also did not write most of this code. So far, I have (October 18, 2021)
- Exploit #6889 - PS4CVE202130858 (VERY simple code to check if the browser is compatible or not) (October 14, 2021)
- Exploit #6886 - iOS-CVE-202130858 (Hi there! Thanks for testing out my first ever Github repository & implementation of an iOS webkit exploit! So you are aware: I did not discover this exploit, and I also did not write most of this. So far, I have started off with modify (October 14, 2021)
- Exploit #6883 - ps4_8.00_vuln_poc (My take on CVE-2021-30858 for ps4 8.xx) (October 14, 2021)
- Exploit #6882 - CVEREV3 (Testing CVE-2021-30858 Rev3) (October 14, 2021)
- Exploit #6879 - CVE202130858 (Hi there! Thanks for testing out my first ever Github repository & implementation of an iOS webkit exploit! So you are aware: I did not discover this exploit, and I also did not write most of this. So far, I have started off with modifying e (October 14, 2021)
External References
Related Security Bulletins
- Remote code execution in Apple iOS
- Multiple vulnerabilities in Apple macOS Big Sur
- Remote code execution in Apple Safari
- Remote code execution in WebKitGTK and WPE WebKit
- Multiple vulnerabilities in Apple iOS 12
- Debian update for webkit2gtk
- Debian update for wpewebkit
- SUSE Linux Enterprise Server 15 update for webkit
- Red Hat Enterprise Linux 8 update for webkit2gtk3
- Red Hat Enterprise Linux 8.1 update for webkit2gtk3
- Red Hat Enterprise Linux 8.2 update for webkit2gtk3
- Red Hat Enterprise Linux 7 update for webkitgtk4
- Gentoo update for WebkitGTK+
- SUSE update for webkit2gtk3
- SUSE update for webkit2gtk3
- Ubuntu update for webkit2gtk
- SUSE update for webkit2gtk3
- SUSE update for webkit2gtk3
- SUSE update for webkit2gtk3
- SUSE update for webkit2gtk3
- Fedora 34 update for webkit2gtk3
- Fedora 33 update for webkit2gtk3
- Anolis OS update for webkit2gtk3
- Anolis OS update for webkitgtk4