{"id":"CVE-2025-5054","state":"PUBLISHED","title":"Race Condition in Canonical Apport","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.\n\n\n\n\nWhen 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).","publishedAt":"2025-05-30T17:37:01.006Z","updatedAt":"2025-11-03T20:05:43.609Z","severity":{"score":4.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"canonical"},"assigner":"canonical","products":["Canonical Apport"],"affected":[{"vendor":"Canonical","product":"Apport","packageName":"apport","defaultStatus":"unaffected","versions":[{"version":"2.20.1","status":"affected","lessThan":"2.20.1-0ubuntu2.30+esm5","versionType":"dpkg"},{"version":"2.20.9","status":"affected","lessThan":"2.20.9-0ubuntu7.29+esm1","versionType":"dpkg"},{"version":"2.20.11","status":"affected","lessThan":"2.20.11-0ubuntu27.28","versionType":"dpkg"},{"version":"2.20.11","status":"affected","lessThan":"2.20.11-0ubuntu82.7","versionType":"dpkg"},{"version":"2.28.1","status":"affected","lessThan":"2.28.1-0ubuntu3.6","versionType":"dpkg"},{"version":"2.30.0","status":"affected","lessThan":"2.30.0-0ubuntu4.3","versionType":"dpkg"},{"version":"2.32.0","status":"affected","lessThan":"2.32.0-0ubuntu5.1","versionType":"dpkg"},{"version":"2.32.0","status":"affected","lessThan":"2.33.0-0ubuntu1","versionType":"dpkg"},{"version":"2.20","status":"affected","lessThanOrEqual":"2.32.0","versionType":"semver"}],"collectionURL":"https://launchpad.net/apport","platforms":["Linux"],"repo":"https://git.launchpad.net/apport"}],"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","http://seclists.org/fulldisclosure/2025/Jun/9"],"weaknesses":["CWE-362"],"ingestedAt":"2026-10-29T20:09:39.787Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/5xxx/CVE-2025-5054.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-5054","state":"PUBLISHED","datePublished":"2025-05-30T17:37:01.006Z","dateUpdated":"2025-11-03T20:05:43.609Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2025-05-21T14:00:55.371Z"},"containers":{"cna":{"title":"Race Condition in Canonical Apport","descriptions":[{"lang":"en","value":"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.\n\n\n\n\nWhen 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)."}],"affected":[{"vendor":"Canonical","product":"Apport","packageName":"apport","defaultStatus":"unaffected","versions":[{"version":"2.20.1","status":"affected","lessThan":"2.20.1-0ubuntu2.30+esm5","versionType":"dpkg"},{"version":"2.20.9","status":"affected","lessThan":"2.20.9-0ubuntu7.29+esm1","versionType":"dpkg"},{"version":"2.20.11","status":"affected","lessThan":"2.20.11-0ubuntu27.28","versionType":"dpkg"},{"version":"2.20.11","status":"affected","lessThan":"2.20.11-0ubuntu82.7","versionType":"dpkg"},{"version":"2.28.1","status":"affected","lessThan":"2.28.1-0ubuntu3.6","versionType":"dpkg"},{"version":"2.30.0","status":"affected","lessThan":"2.30.0-0ubuntu4.3","versionType":"dpkg"},{"version":"2.32.0","status":"affected","lessThan":"2.32.0-0ubuntu5.1","versionType":"dpkg"},{"version":"2.32.0","status":"affected","lessThan":"2.33.0-0ubuntu1","versionType":"dpkg"},{"version":"2.20","status":"affected","lessThanOrEqual":"2.32.0","versionType":"semver"}],"collectionURL":"https://launchpad.net/apport","platforms":["Linux"],"repo":"https://git.launchpad.net/apport"}],"references":[{"url":"https://ubuntu.com/security/notices/USN-7545-1","tags":["vendor-advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-5054","tags":["vdb-entry"]},{"url":"https://www.qualys.com/2025/05/29/apport-coredump/apport-coredump.txt","tags":["third-party-advisory"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":4.7,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","description":"CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"canonical","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateUpdated":"2025-06-09T16:23:28.514Z"},"credits":[{"lang":"en","type":"reporter","value":"Qualys Threat Research Unit (TRU)"}],"impacts":[{"capecId":"CAPEC-26","descriptions":[{"lang":"en","value":"CAPEC-26 Leveraging Race Conditions"}]}],"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-05-30T17:59:23.055492Z","id":"CVE-2025-5054","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-30T17:59:52.521Z"}},{"title":"CVE Program Container","references":[{"url":"http://seclists.org/fulldisclosure/2025/Jun/9"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:05:43.609Z"}}]}}}