Skip to content

CVE-2020-5291 Privilege escalation in setuid mode via user namespaces in Bubblewrap

HighCVSS 7.8 EPSS 0.90%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

23 packages: 19 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
archlinux arch linux All versions No fix listed No fix yet
alpine/bubblewrap(Alpine v3.11) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.12) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.13) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.14) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.15) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.16) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.17) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.18) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.19) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.20) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.21) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.22) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.23) < 0.4.1-r0 0.4.1-r0 Fixed
alpine/bubblewrap(Alpine v3.24) < 0.4.1-r0 0.4.1-r0 Fixed
debian/bubblewrap(Debian 12) < 0.4.1-1 0.4.1-1 Fixed
debian/bubblewrap(Debian 13) < 0.4.1-1 0.4.1-1 Fixed
debian/bubblewrap(Debian 14) < 0.4.1-1 0.4.1-1 Fixed
projectatomic bubblewrap < 0.4.1 0.4.1 Fixed
ubuntu/bubblewrap(Ubuntu 20.04) < 0.4.0-1ubuntu4; = 0.3.3-2; = 0.4.0-1; = 0.4.0-1ubuntu1 +2 more 0.4.0-1ubuntu4 Fixed
centos = 7.0 No fix listed Versions listed
containers bubblewrap = < 0.4.1 No fix listed Versions listed
debian linux = 10.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/bubblewrap(Debian:12) < 0.4.1-1 0.4.1-1
debian/bubblewrap(Debian:13) < 0.4.1-1 0.4.1-1
debian/bubblewrap(Debian:14) < 0.4.1-1 0.4.1-1
projectatomic bubblewrap < 0.4.1 0.4.1
debian linux = 10.0 No fix listed
archlinux arch linux All versions No fix listed
centos = 7.0 No fix listed
alpine/bubblewrap(Alpine:v3.11) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.12) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.13) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.14) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.15) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.16) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.17) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.18) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.19) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.20) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.21) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.22) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.23) < 0.4.1-r0 0.4.1-r0
alpine/bubblewrap(Alpine:v3.24) < 0.4.1-r0 0.4.1-r0
containers bubblewrap = < 0.4.1 No fix listed
ubuntu/bubblewrap(Ubuntu:20.04) < 0.4.0-1ubuntu4 0.4.0-1ubuntu4
ubuntu/bubblewrap(Ubuntu:20.04) = 0.3.3-2 No fix listed
ubuntu/bubblewrap(Ubuntu:20.04) = 0.4.0-1 No fix listed
Show 3 more
ProductAffected versionsFixed in
ubuntu/bubblewrap(Ubuntu:20.04) = 0.4.0-1ubuntu1 No fix listed
ubuntu/bubblewrap(Ubuntu:20.04) = 0.4.0-1ubuntu2 No fix listed
ubuntu/bubblewrap(Ubuntu:20.04) = 0.4.0-1ubuntu3 No fix listed

References