CVE-2021-3899 is a high severity (CVSS 7.8) race condition in Apport, the crash reporting tool on Ubuntu. With the right local configuration, a local user could execute code as root. The record lists Ubuntu 18.04, 20.04 and 21.10. Install the update described in Ubuntu notice USN-5427-1.
What's affected
- Apport on Ubuntu 18.04 LTS, 20.04 LTS and 21.10, per the product list in the NVD record.
- The record says exploitation depends on the correct local configuration, so not every installation is equally exposed.
- Attack vector is local with low privileges required, so this matters most on shared machines, build hosts and multi-user servers.
- The exact fixed package versions are in Ubuntu notice USN-5427-1. We could not retrieve that page, so check it for the version for your release.
- KEV status: false in the record.
How to check if you're exposed
On an Ubuntu host, compare the installed Apport package with the version listed in the notice for your release.
lsb_release -a
apt policy apport
dpkg -l apport
If the installed version is older than the fixed one in USN-5427-1, you are exposed. Containers built from Ubuntu base images carry the package only if it was installed, so check images as well as hosts.
What to do now
- Open USN-5427-1 and note the fixed Apport version for your Ubuntu release.
- Run your normal update flow, for example
sudo apt updatefollowed bysudo apt upgrade apport. - Rebuild any container or VM images that include Apport and redeploy them.
- If you cannot patch immediately, check whether Apport is needed at all on that host. Crash reporting is often unnecessary on servers, and disabling it removes the attack surface.
- Limit local shell access on affected machines until the update is in.
Why it matters
The class is CWE-367, time of check to time of use. The record says the flaw is in the code that detects a replaced executable. A race condition means two events must happen in a particular order, and an attacker who can repeat the attempt quickly may eventually win the race. Because Apport runs with elevated privileges when handling crashes, winning it can turn a normal user account into root.
Local privilege escalation bugs do not usually let an outsider in on their own. They matter after another foothold, such as a stolen low privilege credential or a compromised build job, because they shorten the path to full control of the host.
Quick check
Is this remotely exploitable?
No. The record gives a local attack vector, so the attacker already needs an account or code running on the machine.
Which version fixes it?
The notice USN-5427-1 lists fixed versions per Ubuntu release. Check it for your release rather than relying on a single number.
Sources
Last reviewed: 19 October 2026.