Skip to content
OpenAdvisories
High · 7.2 CVE-2020-5291 EUVD-2020-26485

Privilege escalation in setuid mode via user namespaces in Bubblewrap

Published Mar 31, 2020 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
containers bubblewrap < 0.4.1 —

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 bubblewrap 0.4.1-1 —
Debian 13 bubblewrap 0.4.1-1 —
Debian 12 bubblewrap 0.4.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS bubblewrap 0.4.0-1ubuntu4 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed bubblewrap 0.5.0-1.1 openSUSE-SU-2024:10663-1
ReleasePackageFixed inAdvisory
Alpine v3.24 bubblewrap 0.4.1-r0 —
Alpine v3.23 bubblewrap 0.4.1-r0 —
Alpine v3.22 bubblewrap 0.4.1-r0 —
Alpine v3.21 bubblewrap 0.4.1-r0 —
Alpine v3.20 bubblewrap 0.4.1-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 bubblewrap 0.4.1-r0 —
Alpine v3.18 bubblewrap 0.4.1-r0 —
Alpine v3.17 bubblewrap 0.4.1-r0 —
Alpine v3.16 bubblewrap 0.4.1-r0 —
Alpine v3.15 bubblewrap 0.4.1-r0 —
Alpine v3.14 bubblewrap 0.4.1-r0 —
Alpine v3.13 bubblewrap 0.4.1-r0 —
Alpine v3.12 bubblewrap 0.4.1-r0 —
Alpine v3.11 bubblewrap 0.4.1-r0 —

Advisories 1

References