Description
Firejail before 0.9.60 allows truncation (resizing to length 0) of the firejail binary on the host by running exploit code inside a firejail sandbox and having the sandbox terminated. To succeed, certain conditions need to be fulfilled: The jail (with the exploit code inside) needs to be started as root, and it also needs to be terminated as root from the host (either by stopping it ungracefully (e.g., SIGKILL), or by using the --shutdown control command). This is similar to CVE-2019-5736.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | firejail | 0.9.58.2-2 | — |
| Debian 13 | firejail | 0.9.58.2-2 | — |
| Debian 12 | firejail | 0.9.58.2-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | firejail | No fix yet | — |
| Ubuntu 16.04 LTS | firejail | No fix yet | — |
References
- https://github.com/netblue30/firejail/issues/2401
- FEDORA-2020-0fb484d7f7 vendor-advisory
- FEDORA-2020-7f6e0e6e00 vendor-advisory