{"id":"UBUNTU-CVE-2025-5054","details":"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).","modified":"2026-02-04T02:20:22.338226Z","published":"2025-05-29T00:00:00Z","related":["USN-7545-1"],"upstream":["CVE-2025-5054"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-5054"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-5054"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7545-1"}],"affected":[{"package":{"name":"apport","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/apport@2.20.1-0ubuntu2.30+esm5?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.20.1-0ubuntu2.30+esm5"}]}],"versions":["2.19.1-0ubuntu3","2.19.2-0ubuntu1","2.19.2-0ubuntu2","2.19.2-0ubuntu3","2.19.2-0ubuntu4","2.19.2-0ubuntu5","2.19.2-0ubuntu6","2.19.2-0ubuntu8","2.19.2-0ubuntu9","2.19.3-0ubuntu1","2.19.3-0ubuntu2","2.19.3-0ubuntu3","2.19.4-0ubuntu1","2.19.4-0ubuntu2","2.20-0ubuntu2","2.20-0ubuntu3","2.20.1-0ubuntu1","2.20.1-0ubuntu2","2.20.1-0ubuntu2.1","2.20.1-0ubuntu2.2","2.20.1-0ubuntu2.4","2.20.1-0ubuntu2.5","2.20.1-0ubuntu2.6","2.20.1-0ubuntu2.9","2.20.1-0ubuntu2.10","2.20.1-0ubuntu2.12","2.20.1-0ubuntu2.13","2.20.1-0ubuntu2.14","2.20.1-0ubuntu2.15","2.20.1-0ubuntu2.16","2.20.1-0ubuntu2.17","2.20.1-0ubuntu2.18","2.20.1-0ubuntu2.19","2.20.1-0ubuntu2.20","2.20.1-0ubuntu2.21","2.20.1-0ubuntu2.22","2.20.1-0ubuntu2.23","2.20.1-0ubuntu2.24","2.20.1-0ubuntu2.25","2.20.1-0ubuntu2.26","2.20.1-0ubuntu2.27","2.20.1-0ubuntu2.28","2.20.1-0ubuntu2.30","2.20.1-0ubuntu2.30+esm1","2.20.1-0ubuntu2.30+esm2","2.20.1-0ubuntu2.30+esm3","2.20.1-0ubuntu2.30+esm4"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"apport","binary_version":"2.20.1-0ubuntu2.30+esm5"},{"binary_name":"apport-gtk","binary_version":"2.20.1-0ubuntu2.30+esm5"},{"binary_name":"apport-kde","binary_version":"2.20.1-0ubuntu2.30+esm5"},{"binary_name":"apport-noui","binary_version":"2.20.1-0ubuntu2.30+esm5"},{"binary_name":"apport-retrace","binary_version":"2.20.1-0ubuntu2.30+esm5"},{"binary_name":"apport-valgrind","binary_version":"2.20.1-0ubuntu2.30+esm5"},{"binary_name":"dh-apport","binary_version":"2.20.1-0ubuntu2.30+esm5"},{"binary_name":"python-apport","binary_version":"2.20.1-0ubuntu2.30+esm5"},{"binary_name":"python-problem-report","binary_version":"2.20.1-0ubuntu2.30+esm5"},{"binary_version":"2.20.1-0ubuntu2.30+esm5","binary_name":"python3-apport"},{"binary_version":"2.20.1-0ubuntu2.30+esm5","binary_name":"python3-problem-report"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5054.json"}},{"package":{"name":"apport","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/apport@2.20.9-0ubuntu7.29+esm1?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.20.9-0ubuntu7.29+esm1"}]}],"versions":["2.20.7-0ubuntu3","2.20.7-0ubuntu3.1","2.20.7-0ubuntu4","2.20.8-0ubuntu1","2.20.8-0ubuntu2","2.20.8-0ubuntu3","2.20.8-0ubuntu4","2.20.8-0ubuntu5","2.20.8-0ubuntu6","2.20.8-0ubuntu7","2.20.8-0ubuntu8","2.20.8-0ubuntu9","2.20.8-0ubuntu10","2.20.9-0ubuntu1","2.20.9-0ubuntu2","2.20.9-0ubuntu4","2.20.9-0ubuntu5","2.20.9-0ubuntu6","2.20.9-0ubuntu7","2.20.9-0ubuntu7.1","2.20.9-0ubuntu7.2","2.20.9-0ubuntu7.3","2.20.9-0ubuntu7.4","2.20.9-0ubuntu7.5","2.20.9-0ubuntu7.6","2.20.9-0ubuntu7.7","2.20.9-0ubuntu7.8","2.20.9-0ubuntu7.9","2.20.9-0ubuntu7.11","2.20.9-0ubuntu7.12","2.20.9-0ubuntu7.13","2.20.9-0ubuntu7.14","2.20.9-0ubuntu7.15","2.20.9-0ubuntu7.16","2.20.9-0ubuntu7.17","2.20.9-0ubuntu7.18","2.20.9-0ubuntu7.19","2.20.9-0ubuntu7.20","2.20.9-0ubuntu7.21","2.20.9-0ubuntu7.23","2.20.9-0ubuntu7.24","2.20.9-0ubuntu7.26","2.20.9-0ubuntu7.27","2.20.9-0ubuntu7.28","2.20.9-0ubuntu7.29"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"apport","binary_version":"2.20.9-0ubuntu7.29+esm1"},{"binary_name":"apport-gtk","binary_version":"2.20.9-0ubuntu7.29+esm1"},{"binary_name":"apport-kde","binary_version":"2.20.9-0ubuntu7.29+esm1"},{"binary_name":"apport-noui","binary_version":"2.20.9-0ubuntu7.29+esm1"},{"binary_name":"apport-retrace","binary_version":"2.20.9-0ubuntu7.29+esm1"},{"binary_name":"apport-valgrind","binary_version":"2.20.9-0ubuntu7.29+esm1"},{"binary_name":"dh-apport","binary_version":"2.20.9-0ubuntu7.29+esm1"},{"binary_name":"python-apport","binary_version":"2.20.9-0ubuntu7.29+esm1"},{"binary_version":"2.20.9-0ubuntu7.29+esm1","binary_name":"python-problem-report"},{"binary_name":"python3-apport","binary_version":"2.20.9-0ubuntu7.29+esm1"},{"binary_version":"2.20.9-0ubuntu7.29+esm1","binary_name":"python3-problem-report"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5054.json"}},{"package":{"name":"apport","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/apport@2.20.11-0ubuntu27.28?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.20.11-0ubuntu27.28"}]}],"versions":["2.20.11-0ubuntu8","2.20.11-0ubuntu9","2.20.11-0ubuntu13","2.20.11-0ubuntu14","2.20.11-0ubuntu15","2.20.11-0ubuntu16","2.20.11-0ubuntu17","2.20.11-0ubuntu18","2.20.11-0ubuntu19","2.20.11-0ubuntu20","2.20.11-0ubuntu21","2.20.11-0ubuntu22","2.20.11-0ubuntu24","2.20.11-0ubuntu25","2.20.11-0ubuntu26","2.20.11-0ubuntu27","2.20.11-0ubuntu27.2","2.20.11-0ubuntu27.3","2.20.11-0ubuntu27.4","2.20.11-0ubuntu27.6","2.20.11-0ubuntu27.8","2.20.11-0ubuntu27.9","2.20.11-0ubuntu27.10","2.20.11-0ubuntu27.11","2.20.11-0ubuntu27.12","2.20.11-0ubuntu27.13","2.20.11-0ubuntu27.14","2.20.11-0ubuntu27.16","2.20.11-0ubuntu27.17","2.20.11-0ubuntu27.18","2.20.11-0ubuntu27.20","2.20.11-0ubuntu27.21","2.20.11-0ubuntu27.23","2.20.11-0ubuntu27.24","2.20.11-0ubuntu27.25","2.20.11-0ubuntu27.26","2.20.11-0ubuntu27.27"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.20.11-0ubuntu27.28","binary_name":"apport"},{"binary_name":"apport-gtk","binary_version":"2.20.11-0ubuntu27.28"},{"binary_name":"apport-kde","binary_version":"2.20.11-0ubuntu27.28"},{"binary_name":"apport-noui","binary_version":"2.20.11-0ubuntu27.28"},{"binary_name":"apport-retrace","binary_version":"2.20.11-0ubuntu27.28"},{"binary_name":"apport-valgrind","binary_version":"2.20.11-0ubuntu27.28"},{"binary_name":"dh-apport","binary_version":"2.20.11-0ubuntu27.28"},{"binary_name":"python3-apport","binary_version":"2.20.11-0ubuntu27.28"},{"binary_name":"python3-problem-report","binary_version":"2.20.11-0ubuntu27.28"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5054.json"}},{"package":{"name":"apport","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/apport@2.20.11-0ubuntu82.7?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.20.11-0ubuntu82.7"}]}],"versions":["2.20.11-0ubuntu70","2.20.11-0ubuntu73","2.20.11-0ubuntu74","2.20.11-0ubuntu75","2.20.11-0ubuntu76","2.20.11-0ubuntu77","2.20.11-0ubuntu78","2.20.11-0ubuntu79","2.20.11-0ubuntu80","2.20.11-0ubuntu81","2.20.11-0ubuntu82","2.20.11-0ubuntu82.1","2.20.11-0ubuntu82.2","2.20.11-0ubuntu82.3","2.20.11-0ubuntu82.4","2.20.11-0ubuntu82.5","2.20.11-0ubuntu82.6"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"apport","binary_version":"2.20.11-0ubuntu82.7"},{"binary_name":"apport-gtk","binary_version":"2.20.11-0ubuntu82.7"},{"binary_name":"apport-kde","binary_version":"2.20.11-0ubuntu82.7"},{"binary_name":"apport-noui","binary_version":"2.20.11-0ubuntu82.7"},{"binary_name":"apport-retrace","binary_version":"2.20.11-0ubuntu82.7"},{"binary_name":"apport-valgrind","binary_version":"2.20.11-0ubuntu82.7"},{"binary_version":"2.20.11-0ubuntu82.7","binary_name":"dh-apport"},{"binary_version":"2.20.11-0ubuntu82.7","binary_name":"python3-apport"},{"binary_name":"python3-problem-report","binary_version":"2.20.11-0ubuntu82.7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5054.json"}},{"package":{"name":"apport","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/apport@2.28.1-0ubuntu3.6?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.28.1-0ubuntu3.6"}]}],"versions":["2.27.0-0ubuntu5","2.27.0-0ubuntu6","2.27.0-0ubuntu7","2.28.0-0ubuntu1","2.28.1-0ubuntu1","2.28.1-0ubuntu2","2.28.1-0ubuntu3","2.28.1-0ubuntu3.1","2.28.1-0ubuntu3.3","2.28.1-0ubuntu3.5"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"apport","binary_version":"2.28.1-0ubuntu3.6"},{"binary_name":"apport-core-dump-handler","binary_version":"2.28.1-0ubuntu3.6"},{"binary_name":"apport-gtk","binary_version":"2.28.1-0ubuntu3.6"},{"binary_name":"apport-kde","binary_version":"2.28.1-0ubuntu3.6"},{"binary_name":"apport-noui","binary_version":"2.28.1-0ubuntu3.6"},{"binary_name":"apport-retrace","binary_version":"2.28.1-0ubuntu3.6"},{"binary_name":"apport-valgrind","binary_version":"2.28.1-0ubuntu3.6"},{"binary_name":"dh-apport","binary_version":"2.28.1-0ubuntu3.6"},{"binary_name":"python3-apport","binary_version":"2.28.1-0ubuntu3.6"},{"binary_name":"python3-problem-report","binary_version":"2.28.1-0ubuntu3.6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5054.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}