Race Condition in Canonical Apport
CVE-2025-5054Published 30 May 2025, 17:37 UTC
Real-world risk
1.7/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
4.7
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from 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).
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| ApportNiche | >= 2.20.1, < 2.20.1-0ubuntu2.30+esm5; >= 2.20.9, < 2.20.9-0ubuntu7.29+esm1; >= 2.20.11, < 2.20.11-0ubuntu27.28; >= 2.20.11, < 2.20.11-0ubuntu82.7; >= 2.28.1, < 2.28.1-0ubuntu3.6; >= 2.30.0, < 2.30.0-0ubuntu4.3; >= 2.32.0, < 2.32.0-0ubuntu5.1; >= 2.32.0, < 2.33.0-0ubuntu1; >= 2.20, <= 2.32.0 | 2.20.1-0ubuntu2.30+esm5, 2.20.9-0ubuntu7.29+esm1, 2.20.11-0ubuntu27.28, 2.20.11-0ubuntu82.7, 2.28.1-0ubuntu3.6, 2.30.0-0ubuntu4.3, 2.32.0-0ubuntu5.1, 2.33.0-0ubuntu1 |
What to do
Update to a fixed version: 2.20.1-0ubuntu2.30+esm5, 2.20.9-0ubuntu7.29+esm1, 2.20.11-0ubuntu27.28, 2.20.11-0ubuntu82.7, 2.28.1-0ubuntu3.6, 2.30.0-0ubuntu4.3, 2.32.0-0ubuntu5.1, 2.33.0-0ubuntu1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Public proof of concept on GitHub
- CISA SSVC: proof of concept
EPSS 0.8% chance of exploitation in 30 days (percentile 57), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.225
- Threat T3: Public proof of concept0.950
- 10 × impact 0.8 × prerequisites 0.225 × threat 0.951.710
- Rounded to one decimal between 0.1 and 101.7
Exploitation and evidence timeline
- 30 May 2025 Published
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 1.7 (cvss fallback)
Weakness
CWE-362