CVE-2025-5054

Race Condition in Canonical Apport

4.7 medium EPSS 0.78%

Published 30 May 2025 Updated 3 Nov 2025 CNA: canonical

Check your servers for CVE-2025-5054

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-5054 affects apport, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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).

Severity (CVSS)

4.7 medium CVSS 3.1 from canonical (CNA)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.78%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 57.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 30 May 2025):

Exploitation
poc: a proof of concept is public
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization

Affected products

As the CNA lists them.

ProductVersions
Apport
package apport
affected from 2.20.1, before 2.20.1-0ubuntu2.30+esm5
affected from 2.20.9, before 2.20.9-0ubuntu7.29+esm1
affected from 2.20.11, before 2.20.11-0ubuntu27.28
affected from 2.20.11, before 2.20.11-0ubuntu82.7
affected from 2.28.1, before 2.28.1-0ubuntu3.6
affected from 2.30.0, before 2.30.0-0ubuntu4.3
affected from 2.32.0, before 2.32.0-0ubuntu5.1
affected from 2.32.0, before 2.33.0-0ubuntu1
affected from 2.20 up to and including 2.32.0
Other versions: unaffected

Is my server affected?

Find the installed version of apport and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i apport
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-5054 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-5054

RHEL, Rocky, Alma, Fedora

rpm -q apport
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-5054

Alpine

apk list --installed | grep -i apport

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-5054
trivy image --scanners vuln IMAGE | grep CVE-2025-5054

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Other references

Source: the record CVE-2025-5054 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.