Description
There is a race condition in the 'replaced executable' detection that, with the correct local configuration, allow an attacker to execute arbitrary code as root.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Canonical | Apport | < 2.21.0 | 2.21.0 |
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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | apport | 2.20.11-0ubuntu82.1 | USN-5427-1 |
| Ubuntu 20.04 LTS | apport | 2.20.11-0ubuntu27.24 | USN-5427-1 |
| Ubuntu 18.04 LTS | apport | 2.20.9-0ubuntu7.28 | USN-5427-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | apport | 2.20.1-0ubuntu2.30+esm4 | USN-6894-1 |
| Ubuntu Pro 14.04 LTS | apport | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
liumuqing/CVE-2021-3899_PoC ★ 3 · May 21, 2022
race condition in apport lead to Local Privilege Escalation on Ubuntu
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- USN-6894-1 apport vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-5427-1 apport vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
References
- https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1948376 issue-tracking
- https://ubuntu.com/security/notices/USN-5427-1 vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2021-3899 issue-tracking