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 Proxy
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
Anolis OS
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
HPE Helion Openstack
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
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 Realtime Extension
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Module for Basesystem
Ubuntu
Fedora
webkit2gtk3 (Red Hat package)
webkitgtk4 (Red Hat package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
webkit2gtk (Debian package)
webkitgtk4-doc
webkitgtk4-jsc-devel
webkitgtk4-jsc
webkitgtk4-devel
webkitgtk4
webkit2gtk3-jsc-devel
webkit2gtk3-jsc
webkit2gtk3-devel
webkit2gtk3
libjavascriptcoregtk-4_0-18-debuginfo
webkit2gtk3-debugsource
webkit2gtk-4_0-injected-bundles-debuginfo
webkit2gtk-4_0-injected-bundles
typelib-1_0-WebKit2WebExtension-4_0
typelib-1_0-WebKit2-4_0
typelib-1_0-JavaScriptCore-4_0
libwebkit2gtk-4_0-37-debuginfo
libwebkit2gtk-4_0-37
libjavascriptcoregtk-4_0-18
libwebkit2gtk3-lang
libwebkit2gtk-4.0-37 (Ubuntu package)
libjavascriptcoregtk-4.0-18 (Ubuntu package)
wpewebkit (Debian package)
WebKitGTK+
WPE WebKit
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
WebKitGTK+ - addressed in versions 2.32.4, 2.33.91
WPE WebKit - update to 2.32.4
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
webkit2gtk (Debian package) - addressed in versions 2.32.4-1~deb10u1, 2.32.4-1~deb11u1
webkitgtk4-doc - update to 2.28.2-3
webkitgtk4-jsc-devel - update to 2.28.2-3
webkitgtk4-jsc - update to 2.28.2-3
webkitgtk4-devel - update to 2.28.2-3
webkitgtk4 - update to 2.28.2-3
webkit2gtk3-jsc-devel - update to 2.30.4-3
webkit2gtk3-jsc - update to 2.30.4-3
webkit2gtk3-devel - update to 2.30.4-3
webkit2gtk3 - update to 2.30.4-3
webkit2gtk3 - addressed in versions 2.32.4-1.fc33, 2.32.4-1.fc34
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
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
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
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
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
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
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-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
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
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
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
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
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
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
wpewebkit (Debian package) - update to 2.32.4-1~deb11u1

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins