Use-after-free in Mozilla Firefox and Firefox ESR - CVE-2021-38504

 

Use-after-free in Mozilla Firefox and Firefox ESR - CVE-2021-38504

Published: November 2, 2021


Vulnerability identifier: #VU57878
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-2021-38504
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error when interacting with an HTML input element's file picker dialog with webkitdirectory set. A remote attacker can trick the victim to open 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

Mozilla Firefox
Firefox ESR
Gentoo Linux
Arch Linux
SUSE CaaS Platform
SUSE Enterprise Storage
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
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 Power, little endian
CentOS
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
HPE Helion Openstack
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - AUS
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 Desktop Applications
SUSE Linux Enterprise Workstation Extension
Ubuntu
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
firefox-esr (Debian package)
thunderbird (Red Hat package)
firefox (Red Hat package)
firefox
thunderbird
MozillaFirefox
MozillaFirefox-debuginfo
MozillaFirefox-debugsource
MozillaFirefox-devel
MozillaFirefox-translations-common
MozillaFirefox-translations-other
thunderbird (Ubuntu package)
MozillaThunderbird-translations-other
MozillaThunderbird-translations-common
MozillaThunderbird-debugsource
MozillaThunderbird-debuginfo
MozillaThunderbird
thunderbird (Debian package)
mail-client/thunderbird-bin
mail-client/thunderbird
firefox (Ubuntu package)
Mozilla Thunderbird
IBM Cloud Pak for Multicloud Management Monitoring

How to mitigate CVE-2021-38504

Install updates from vendor's website.

Mozilla Firefox - update to 94.0
Firefox ESR - update to 91.3.0
Mozilla Thunderbird - update to 91.3.0
firefox-esr (Debian package) - update to 91.4.1esr-1~deb11u1
thunderbird (Red Hat package) - addressed in versions 91.3.0-2.el7_9, 91.3.0-2.el8_1, 91.3.0-2.el8_2, 91.3.0-2.el8_4
firefox (Red Hat package) - addressed in versions 91.3.0-1.el7_9, 91.3.0-1.el8_1, 91.3.0-1.el8_2, 91.3.0-1.el8_4
IBM Cloud Pak for Multicloud Management Monitoring - update to 2.3 Fix Pack 6
firefox - update to 91.3.0-1.0.1
thunderbird - update to 91.3.0-2.0.1
MozillaFirefox - addressed in versions 91.3.0-112.80.2, 91.3.0-150.6.1, 91.3.0-152.6.1
MozillaFirefox-debuginfo - addressed in versions 91.3.0-112.80.2, 91.3.0-150.6.1, 91.3.0-152.6.1
MozillaFirefox-debugsource - addressed in versions 91.3.0-112.80.2, 91.3.0-150.6.1, 91.3.0-152.6.1
MozillaFirefox-devel - addressed in versions 91.3.0-112.80.2, 91.3.0-150.6.1, 91.3.0-152.6.1
MozillaFirefox-translations-common - addressed in versions 91.3.0-112.80.2, 91.3.0-150.6.1, 91.3.0-152.6.1
MozillaFirefox-translations-other - addressed in versions 91.3.0-150.6.1, 91.3.0-152.6.1
thunderbird (Ubuntu package) - addressed in versions 1:91.3.1+build1-0ubuntu0.21.10.1, 1:91.5.0+build1-0ubuntu0.18.04.1, 1:91.5.0+build1-0ubuntu0.20.04.1
MozillaThunderbird-translations-other - update to 91.4.0-8.45.2
MozillaThunderbird-translations-common - update to 91.4.0-8.45.2
MozillaThunderbird-debugsource - update to 91.4.0-8.45.2
MozillaThunderbird-debuginfo - update to 91.4.0-8.45.2
MozillaThunderbird - update to 91.4.0-8.45.2
thunderbird (Debian package) - addressed in versions 1:91.4.1-1~deb10u1, 1:91.4.1-1~deb11u1
mail-client/thunderbird-bin - update to 91.12.0
mail-client/thunderbird - update to 91.12.0
firefox (Ubuntu package) - addressed in versions 94.0+build3-0ubuntu0.18.04.1, 94.0+build3-0ubuntu0.20.04.1, 94.0+build3-0ubuntu0.21.04.1, 94.0+build3-0ubuntu0.21.10.1

External References

Related Security Bulletins