CVEfocus › CVE database › CVE-2025-5054

CVE-2025-5054Race Condition in Canonical Apport

CVSS 4.7 MediumEPSS 0.2% (higher than 6% of CVEs)Published 2025-05-30Updated 2025-11-03Assigner: canonical

Race condition in Canonical apport up to and including 2.32.0 allows a local attacker to leak sensitive information via PID-reuse by leveraging namespaces. When handling a crash, the function `_check_global_pid_and_forward`, which detects if the crashing process resided in a container, was being called before `consistency_checks`, which attempts to detect if the crashing process had been replaced. Because of this, if a process crashed and was quickly replaced with a containerized one, apport could be made to forward the core dump to the container, potentially leaking sensitive information. `consistency_checks` is now being called before `_check_global_pid_and_forward`. Additionally, given that the PID-reuse race condition cannot be reliably detected from userspace alone, crashes are only forwarded to containers if the kernel provided a pidfd, or if the crashing process was unprivileged (i.e., if dump mode == 1).

CWE-362

What to do

Fixed builds are available from Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
2Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04apportFixed2.28.1-0ubuntu3.6UBUNTU-CVE-2025-5054
Ubuntu 22.04apportFixed2.20.11-0ubuntu82.7UBUNTU-CVE-2025-5054
Ubuntu 20.04apportFixed2.20.11-0ubuntu27.28UBUNTU-CVE-2025-5054
Ubuntu 18.04apportFix pending2.20.9-0ubuntu7.29+esm1 (Ubuntu Pro)UBUNTU-CVE-2025-5054
Ubuntu 16.04apportFix pending2.20.1-0ubuntu2.30+esm5 (Ubuntu Pro)UBUNTU-CVE-2025-5054

What the vendor says

As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.