Use-after-free in iPadOS and Apple iOS - CVE-2021-30858

 

Use-after-free in iPadOS and Apple iOS - CVE-2021-30858

Published: September 13, 2021 / Updated: April 14, 2022


Vulnerability identifier: #VU56475
CSH Severity: Critical
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-2021-30858
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

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

iPadOS
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

Install updates from vendor's website.

iPadOS - update to 14.8 18H17
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

External References

Related Security Bulletins