CVE-2025-5054: Race Condition in Canonical Apport
Reference page built from the source records below, each shown as its source publishes it. Dataset version ref-f12bc61fb1a7, updated 2026-06-17T09:47:06.343Z.
NVD analysis
- Status
- Modified
- Published
- 2025-05-30T18:15:32.670
- Last modified
- 2026-06-17T09:47:06.343
- Weaknesses
- CWE-362
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).
| Metric | Score | Severity | Vector | Scored by |
|---|---|---|---|---|
| CVSS 3.1 | 4.7 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N | [email protected] (Secondary) |
References
- https://ubuntu.com/security/CVE-2025-5054 (Third Party Advisory)
- https://ubuntu.com/security/notices/USN-7545-1 (Third Party Advisory)
- https://www.qualys.com/2025/05/29/apport-coredump/apport-coredump.txt (Exploit, Mitigation, Third Party Advisory)
- http://seclists.org/fulldisclosure/2025/Jun/9
This product uses the NVD API but is not endorsed or certified by the NVD.
Read on 2026-11-03T01:45:30.693Z under licence nvd-api-terms-of-use@ff2a5288 from https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2025-5054
CVE record
- Title (CNA)
- Race Condition in Canonical Apport
- Assigner
- canonical
- State
- PUBLISHED
- Published
- 2025-05-30T17:37:01.006Z
- Updated
- 2025-11-03T20:05:43.609Z
- Problem types
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
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).
References
- https://ubuntu.com/security/notices/USN-7545-1
- https://ubuntu.com/security/CVE-2025-5054
- https://www.qualys.com/2025/05/29/apport-coredump/apport-coredump.txt
Read on 2026-11-03T02:17:03.176Z under licence cve-terms-of-use@81bfa2f3 from https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2025/5xxx/CVE-2025-5054.json
Detection rules (SigmaHQ)
SigmaHQ rules whose own tags name this CVE. Each rule page shows the rule as its author published it.
- Potential Exploitation of CVE-2025-5054 or CVE-2025-4598 (status experimental, level medium)
Defensive techniques (MITRE D3FEND)
D3FEND maps these defensive techniques to the weakness (CWE) that NVD lists for this CVE, through the digital artifacts the weakness affects. D3FEND does not say they stop this vulnerability.
CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
- Harden: Domain Logic Validation (acts on Subroutine)
- Harden: Variable Initialization (acts on Subroutine)
- Isolate: Application-based Process Isolation (acts on Subroutine)
- Harden: Credential Scrubbing (acts on Subroutine)
- Model: Software Inventory (acts on Software)
- Harden: Trusted Library (acts on Subroutine)
- Restore: Restore Software (acts on Software)
- Harden: Software Update (acts on Software)
- Model: Asset Vulnerability Enumeration (acts on Software)
D3FEND ontology version 1.6.0.
Read on 2026-11-02T23:56:12.176Z under licence d3fend-terms-of-use@f98cbc7e from https://d3fend.mitre.org/api/weakness/cwe/CWE-362.json
MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/
Sources and licences
National Vulnerability Database (NIST)
This product uses the NVD API but is not endorsed or certified by the NVD.
NVD API Terms of Use (NIST publications in the public domain, 17 U.S.C. 105)
CVE Program, The MITRE Corporation
Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation. CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
SigmaHQ
"Potential Exploitation of CVE-2025-5054 or CVE-2025-4598" by Milad Cheraghi (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2025/Exploits/CVE_2025_4598/proc_creation_lnx_exploit_cve_2025_5054_or_cve_2025_4598.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-LicenseMITRE D3FEND
MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/MITRE D3FEND Terms of Use (site + knowledge graph); source repo MIT
Cite this page
Dragons Eye Ransomware Tracker, "CVE-2025-5054: Race Condition in Canonical Apport",
entity page, dataset version ref-f12bc61fb1a7, updated 2026-06-17T09:47:06.343Z,
https://ransomware-tracker.com/cve/CVE-2025-5054 (accessed 2026-11-03).
Underlying source: National Vulnerability Database (NIST), CVE API 2.0, record last modified 2026-06-17T09:47:06.343.
Underlying source: CVE List (CVE Program, The MITRE Corporation), record updated 2025-11-03T20:05:43.609Z.
Underlying source: SigmaHQ rule 33b3cfb1-574e-44b9-b527-fbf9303b9d7b, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Underlying source: MITRE D3FEND, ontology version 1.6.0.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.