Safeguard
Vulnerability Analysis•

CVE-2021-3899: High Race Condition in Ubuntu Apport

CVE-2021-3899 is a local race condition in Ubuntu Apport that can give root code execution under specific settings. Apply the update in USN-5427-1.

Safeguard Security Team
3 min read

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

  1. Open USN-5427-1 and note the fixed Apport version for your Ubuntu release.
  2. Run your normal update flow, for example sudo apt update followed by sudo apt upgrade apport.
  3. Rebuild any container or VM images that include Apport and redeploy them.
  4. 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.
  5. 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.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

We email you a link to confirm, and only then add you to the list. Unsubscribe in one click. Privacy

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.