CVE-2020-5291Privilege escalation in setuid mode via user namespaces in Bubblewrap
Bubblewrap (bwrap) before version 0.4.1, if installed in setuid mode and the kernel supports unprivileged user namespaces, then the `bwrap --userns2` option can be used to make the setuid process keep running as root while being traceable. This can in turn be used to gain root permissions. Note that this only affects the combination of bubblewrap in setuid mode (which is typically used when unprivileged user namespaces are not supported) and the support of unprivileged user namespaces. Known to be affected are: * Debian testing/unstable, if unprivileged user namespaces enabled (not default) * Debian buster-backports, if unprivileged user namespaces enabled (not default) * Arch if using `linux-hardened`, if unprivileged user namespaces enabled (not default) * Centos 7 flatpak COPR, if unprivileged user namespaces enabled (not default) This has been fixed in the 0.4.1 release, and all affected users should update.
What to do
Fixed builds are available from Alpine, Debian, 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 | bubblewrap | Fixed | 0.4.0-1ubuntu4 | UBUNTU-CVE-2020-5291 |
| Debian 14 | bubblewrap | Fixed | 0.4.1-1 | DEBIAN-CVE-2020-5291 |
| Debian 13 | bubblewrap | Fixed | 0.4.1-1 | DEBIAN-CVE-2020-5291 |
| Debian 12 | bubblewrap | Fixed | 0.4.1-1 | DEBIAN-CVE-2020-5291 |
| Red Hat Enterprise Linux 8 | bubblewrap | Not affected | ||
| Alpine Linux 3.24 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.23 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.22 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.21 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.20 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.19 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.18 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.17 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.16 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.15 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.14 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.13 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.12 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
| Alpine Linux 3.11 | bubblewrap | Fixed | 0.4.1-r0 | ALPINE-CVE-2020-5291 |
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.
- containers bubblewrap: affected: < 0.4.1
References
- https://github.com/containers/bubblewrap/security/advisories/GHSA-j2qp-rvxj-43vj
- https://github.com/containers/bubblewrap/commit/1f7e2ad948c051054b683461885a0215f1806240
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.