Skip to content
OpenAdvisories
High · 8.8 CVE-2021-41133 EUVD-2021-28254

Sandbox bypass via recent VFS-manipulating syscalls

Published Oct 8, 2021 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
flatpak flatpak >= 1.8.0, <= 1.8.2, >= 1.10.0, < 1.10.4, >= 1.11.0, < 1.12.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 flatpak 1.12.1-1 —
Debian 13 flatpak 1.12.1-1 —
Debian 12 flatpak 1.12.1-1 —
Debian 11 flatpak 1.10.5-0+deb11u1 DSA-4984-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS flatpak 1.6.5-0ubuntu0.4 USN-5191-1
Ubuntu 18.04 LTS flatpak 1.0.9-0ubuntu0.4 USN-5191-1
ReleasePackageFixed inAdvisory
RHEL 8 flatpak +3 1.8.5-4.el8_4 RHSA-2021:4042
RHEL 7 flatpak +2 1.0.9-12.el7_9 RHSA-2021:4044
RHEL 7 flatpak-builder 1.0.0-12.el7_9 RHSA-2021:4044
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.2 EUS flatpak +3 1.6.2-6.el8_2 RHSA-2021:4107
RHEL 8.1 EUS flatpak +1 1.0.9-5.el8_1 RHSA-2021:4106

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 flatpak +3 1.8.5-4.el8_4 ALSA-2021:4042, ALEA-2021:4539
AlmaLinux 8 flatpak-devel 1.8.5-5.el8_5 ALEA-2021:4539

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 flatpak 1.8.5-4.el8 RLSA-2021:4042
ReleasePackageFixed inAdvisory
SLES 15 SP3 flatpak 1.10.5-4.9.1 SUSE-SU-2021:3472-1
SLES 15 SP2 flatpak 1.10.5-4.9.1 SUSE-SU-2021:3472-1
SLES 15 SP1 flatpak 1.2.3-150100.4.8.1 SUSE-SU-2022:3284-1
SLES 15 flatpak 0.10.4-150000.4.13.1 SUSE-SU-2022:3439-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 flatpak 1.2.3-150100.4.8.1 SUSE-SU-2022:3284-1
SLES for SAP 15 flatpak 0.10.4-150000.4.13.1 SUSE-SU-2022:3439-1
SLE HPC 15 SP1 flatpak 1.2.3-150100.4.8.1 SUSE-SU-2022:3284-1
SLE HPC 15 flatpak 0.10.4-150000.4.13.1 SUSE-SU-2022:3439-1
SUSE Enterprise Storage 6 flatpak 1.2.3-150100.4.8.1 SUSE-SU-2022:3284-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed flatpak 1.12.1-1.1 openSUSE-SU-2024:11574-1
openSUSE Leap 15.3 flatpak 1.10.5-4.9.1 openSUSE-SU-2021:3472-1
openSUSE Leap 15.2 flatpak 1.10.5-lp152.3.9.1 openSUSE-SU-2021:1400-1
ReleasePackageFixed inAdvisory
Alpine v3.24 flatpak 1.12.2-r0 —
Alpine v3.23 flatpak 1.12.2-r0 —
Alpine v3.22 flatpak 1.12.2-r0 —
Alpine v3.21 flatpak 1.12.2-r0 —
Alpine v3.20 flatpak 1.12.2-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 flatpak 1.12.2-r0 —
Alpine v3.18 flatpak 1.12.2-r0 —
Alpine v3.17 flatpak 1.12.2-r0 —
Alpine v3.16 flatpak 1.12.2-r0 —
Alpine v3.15 flatpak 1.12.2-r0 —
Alpine v3.14 flatpak 1.10.5-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 flatpak +2 1.0.9-10.amzn2.0.2 ALAS2-2023-2076
Amazon Linux 2 flatpak-builder 1.0.0-10.amzn2.0.2 ALAS2-2023-2076

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 flatpak +3 1.8.5-4.el8_4 ELSA-2021-4042
Oracle Linux 7 flatpak +2 1.0.9-12.el7_9 ELSA-2021-4044
Oracle Linux 7 flatpak-builder 1.0.0-12.el7_9 ELSA-2021-4044

Advisories 21

References