PT-2021-3612 · Firejail+4 · Firejail+4

Roman Fiedler

·

Published

2021-02-08

·

Updated

2024-08-16

·

CVE-2021-26910

CVSS v3.1

7.8

High

VectorAC:L/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:N
Name of the Vulnerable Software and Affected Versions Firejail versions prior to 0.9.64.4
Description The issue is related to insufficient checking of the state of a shared resource in the OverlayFS SUID sandbox component of Firejail. This can allow an attacker to access confidential data, compromise its integrity, and cause a denial of service. The vulnerability is due to a TOCTOU race condition between a stat operation and an OverlayFS mount operation. Firejail uses mechanisms such as namespaces, AppArmor, and seccomp-bpf filtering in Linux for isolation, but it requires elevated privileges for setup, which it obtains through binding to the suid root utility or running via sudo.
Recommendations For Firejail versions prior to 0.9.64.4, update to version 0.9.64.4 or later to resolve the issue. As a temporary workaround, consider restricting the use of the OverlayFS mount operation to minimize the risk of exploitation. Additionally, restrict access to the suid root utility or running Firejail via sudo to reduce the attack surface.

Exploit

Fix

Time Of Check To Time Of Use

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2021-1485
ALT-PU-2024-11110
BDU:2021-03745
CVE-2021-26910
DLA-2554-1
DSA-4849-1
MGASA-2021-0120
OPENSUSE-SU-2021:0271-1
OPENSUSE-SU-2021_0271-1
ROSA-SA-2023-2289
USN-5141-1

Affected Products

Alt Linux
Firejail
Linuxmint
Suse
Ubuntu