CVEfocus › CVE database › CVE-2021-41133

CVE-2021-41133Sandbox bypass via recent VFS-manipulating syscalls

CVSS 8.8 HighEPSS 0.4% (higher than 30% of CVEs)Published 2021-10-08Updated 2024-08-04Assigner: GitHub_M

Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. In versions prior to 1.10.4 and 1.12.0, Flatpak apps with direct access to AF_UNIX sockets such as those used by Wayland, Pipewire or pipewire-pulse can trick portals and other host-OS services into treating the Flatpak app as though it was an ordinary, non-sandboxed host-OS process. They can do this by manipulating the VFS using recent mount-related syscalls that are not blocked by Flatpak's denylist seccomp filter, in order to substitute a crafted `/.flatpak-info` or make that file disappear entirely. Flatpak apps that act as clients for AF_UNIX sockets such as those used by Wayland, Pipewire or pipewire-pulse can escalate the privileges that the corresponding services will believe the Flatpak app has. Note that protocols that operate entirely over the D-Bus session bus (user bus), system bus or accessibility bus are not affected by this. This is due to the use of a proxy process `xdg-dbus-proxy`, whose VFS cannot be manipulated by the Flatpak app, when interacting with these buses. Patches exist for versions 1.10.4 and 1.12.0, and as of time of publication, a patch for version 1.8.2 is being planned. There are no workarounds aside from upgrading to a patched version.

CWE-20

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

30Fixed
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04flatpakFixed1.6.5-0ubuntu0.4UBUNTU-CVE-2021-41133
Ubuntu 18.04flatpakFixed1.0.9-0ubuntu0.4UBUNTU-CVE-2021-41133
Debian 14flatpakFixed1.12.1-1DEBIAN-CVE-2021-41133
Debian 13flatpakFixed1.12.1-1DEBIAN-CVE-2021-41133
Debian 12flatpakFixed1.12.1-1DEBIAN-CVE-2021-41133
Red Hat Enterprise Linux 9flatpakNot affected
Red Hat Enterprise Linux 9flatpak-develNot affected
Red Hat Enterprise Linux 9flatpak-libsNot affected
Red Hat Enterprise Linux 9flatpak-selinuxNot affected
Red Hat Enterprise Linux 9flatpak-session-helperNot affected
Red Hat Enterprise Linux 8flatpakFixed0:1.8.5-4.el8_4RHSA-2021:4042
Red Hat Enterprise Linux 8flatpak-libsFixed0:1.8.5-4.el8_4RHSA-2021:4042
Red Hat Enterprise Linux 8flatpak-selinuxFixed0:1.8.5-4.el8_4RHSA-2021:4042
Red Hat Enterprise Linux 8flatpak-session-helperFixed0:1.8.5-4.el8_4RHSA-2021:4042
Red Hat Enterprise Linux 7flatpakFixed0:1.0.9-12.el7_9RHSA-2021:4044
Red Hat Enterprise Linux 7flatpak-builderFixed0:1.0.0-12.el7_9RHSA-2021:4044
Red Hat Enterprise Linux 7flatpak-develFixed0:1.0.9-12.el7_9RHSA-2021:4044
Red Hat Enterprise Linux 7flatpak-libsFixed0:1.0.9-12.el7_9RHSA-2021:4044
AlmaLinux 8flatpakFixed1.8.5-4.el8_4ALEA-2021:4539
AlmaLinux 8flatpak-develFixed1.8.5-5.el8_5ALEA-2021:4539
AlmaLinux 8flatpak-libsFixed1.8.5-5.el8_5ALSA-2021:4042
AlmaLinux 8flatpak-selinuxFixed1.8.5-4.el8_4ALEA-2021:4539
AlmaLinux 8flatpak-session-helperFixed1.8.5-5.el8_5ALSA-2021:4042
Rocky Linux 8flatpakFixed0:1.8.5-4.el8_4RLSA-2021:4042
Alpine Linux 3.24flatpakFixed1.12.2-r0ALPINE-CVE-2021-41133
Alpine Linux 3.23flatpakFixed1.12.2-r0ALPINE-CVE-2021-41133
Alpine Linux 3.22flatpakFixed1.12.2-r0ALPINE-CVE-2021-41133
Alpine Linux 3.21flatpakFixed1.12.2-r0ALPINE-CVE-2021-41133
Alpine Linux 3.20flatpakFixed1.12.2-r0ALPINE-CVE-2021-41133
Alpine Linux 3.19flatpakFixed1.12.2-r0ALPINE-CVE-2021-41133
Alpine Linux 3.18flatpakFixed1.12.2-r0ALPINE-CVE-2021-41133
Alpine Linux 3.17flatpakFixed1.12.2-r0ALPINE-CVE-2021-41133
Alpine Linux 3.16flatpakFixed1.12.2-r0ALPINE-CVE-2021-41133
Alpine Linux 3.15flatpakFixed1.12.2-r0ALPINE-CVE-2021-41133
Alpine Linux 3.14flatpakFixed1.10.5-r0ALPINE-CVE-2021-41133

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.