CVE-2021-41133Sandbox bypass via recent VFS-manipulating syscalls
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | flatpak | Fixed | 1.6.5-0ubuntu0.4 | UBUNTU-CVE-2021-41133 |
| Ubuntu 18.04 | flatpak | Fixed | 1.0.9-0ubuntu0.4 | UBUNTU-CVE-2021-41133 |
| Debian 14 | flatpak | Fixed | 1.12.1-1 | DEBIAN-CVE-2021-41133 |
| Debian 13 | flatpak | Fixed | 1.12.1-1 | DEBIAN-CVE-2021-41133 |
| Debian 12 | flatpak | Fixed | 1.12.1-1 | DEBIAN-CVE-2021-41133 |
| Red Hat Enterprise Linux 9 | flatpak | Not affected | ||
| Red Hat Enterprise Linux 9 | flatpak-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | flatpak-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | flatpak-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | flatpak-session-helper | Not affected | ||
| Red Hat Enterprise Linux 8 | flatpak | Fixed | 0:1.8.5-4.el8_4 | RHSA-2021:4042 |
| Red Hat Enterprise Linux 8 | flatpak-libs | Fixed | 0:1.8.5-4.el8_4 | RHSA-2021:4042 |
| Red Hat Enterprise Linux 8 | flatpak-selinux | Fixed | 0:1.8.5-4.el8_4 | RHSA-2021:4042 |
| Red Hat Enterprise Linux 8 | flatpak-session-helper | Fixed | 0:1.8.5-4.el8_4 | RHSA-2021:4042 |
| Red Hat Enterprise Linux 7 | flatpak | Fixed | 0:1.0.9-12.el7_9 | RHSA-2021:4044 |
| Red Hat Enterprise Linux 7 | flatpak-builder | Fixed | 0:1.0.0-12.el7_9 | RHSA-2021:4044 |
| Red Hat Enterprise Linux 7 | flatpak-devel | Fixed | 0:1.0.9-12.el7_9 | RHSA-2021:4044 |
| Red Hat Enterprise Linux 7 | flatpak-libs | Fixed | 0:1.0.9-12.el7_9 | RHSA-2021:4044 |
| AlmaLinux 8 | flatpak | Fixed | 1.8.5-4.el8_4 | ALEA-2021:4539 |
| AlmaLinux 8 | flatpak-devel | Fixed | 1.8.5-5.el8_5 | ALEA-2021:4539 |
| AlmaLinux 8 | flatpak-libs | Fixed | 1.8.5-5.el8_5 | ALSA-2021:4042 |
| AlmaLinux 8 | flatpak-selinux | Fixed | 1.8.5-4.el8_4 | ALEA-2021:4539 |
| AlmaLinux 8 | flatpak-session-helper | Fixed | 1.8.5-5.el8_5 | ALSA-2021:4042 |
| Rocky Linux 8 | flatpak | Fixed | 0:1.8.5-4.el8_4 | RLSA-2021:4042 |
| Alpine Linux 3.24 | flatpak | Fixed | 1.12.2-r0 | ALPINE-CVE-2021-41133 |
| Alpine Linux 3.23 | flatpak | Fixed | 1.12.2-r0 | ALPINE-CVE-2021-41133 |
| Alpine Linux 3.22 | flatpak | Fixed | 1.12.2-r0 | ALPINE-CVE-2021-41133 |
| Alpine Linux 3.21 | flatpak | Fixed | 1.12.2-r0 | ALPINE-CVE-2021-41133 |
| Alpine Linux 3.20 | flatpak | Fixed | 1.12.2-r0 | ALPINE-CVE-2021-41133 |
| Alpine Linux 3.19 | flatpak | Fixed | 1.12.2-r0 | ALPINE-CVE-2021-41133 |
| Alpine Linux 3.18 | flatpak | Fixed | 1.12.2-r0 | ALPINE-CVE-2021-41133 |
| Alpine Linux 3.17 | flatpak | Fixed | 1.12.2-r0 | ALPINE-CVE-2021-41133 |
| Alpine Linux 3.16 | flatpak | Fixed | 1.12.2-r0 | ALPINE-CVE-2021-41133 |
| Alpine Linux 3.15 | flatpak | Fixed | 1.12.2-r0 | ALPINE-CVE-2021-41133 |
| Alpine Linux 3.14 | flatpak | Fixed | 1.10.5-r0 | ALPINE-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.
- flatpak: affected: >= 1.8.0, <= 1.8.2, >= 1.10.0, < 1.10.4, >= 1.11.0, < 1.12.0
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://www.debian.org/security/2021/dsa-4984 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202312-12 (vendor-advisory)
References
- https://github.com/flatpak/flatpak/security/advisories/GHSA-67h7-w3jq-vh4q
- https://github.com/flatpak/flatpak/commit/1330662f33a55e88bfe18e76de28b7922d91a999
- https://github.com/flatpak/flatpak/commit/26b12484eb8a6219b9e7aa287b298a894b2f34ca
- https://github.com/flatpak/flatpak/commit/462fca2c666e0cd2b60d6d2593a7216a83047aaf
- https://github.com/flatpak/flatpak/commit/4c34815784e9ffda5733225c7d95824f96375e36
- https://github.com/flatpak/flatpak/commit/89ae9fe74c6d445bb1b3a40e568d77cf5de47e48
- https://github.com/flatpak/flatpak/commit/9766ee05b1425db397d2cf23afd24c7f6146a69f
- https://github.com/flatpak/flatpak/commit/a10f52a7565c549612c92b8e736a6698a53db330
- https://github.com/flatpak/flatpak/commit/e26ac7586c392b5eb35ff4609fe232c52523b2cf
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R5656ONDP2MGKIJMKEC7N2NXCV27WGTC/
- https://www.debian.org/security/2021/dsa-4984
- http://www.openwall.com/lists/oss-security/2021/10/26/9
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T5DKCYRC6MFSTFCUP4DELCOUUP3SFEFX/
- https://security.gentoo.org/glsa/202312-12
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.