Medium severity · published May 30, 2025
CVE-2025-5054
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
4.7
CVSS
0.8%
EPSS
No
On KEV
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).
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Local
Complexity
High
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.8% · higher than 56% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AP
Apport · Canonical
through 2.32.0 · source: NVD
UL
Ubuntu Linux · Canonical
16.04; 18.04; 20.04; 22.04; 24.04; 24.10; +1 more · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-5054
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-5054
Third Party Advisory
https://ubuntu.com/security/CVE-2025-5054
Third Party Advisory
https://ubuntu.com/security/notices/USN-7545-1
Exploit
https://www.qualys.com/2025/05/29/apport-coredump/apport-coredump.txt
seclists.org
http://seclists.org/fulldisclosure/2025/Jun/9
More from Apport
7.8
CVE-2022-1242
Apport can be tricked into connecting to arbitrary sockets as the root user
7.8
CVE-2021-3899
There is a race condition in the 'replaced executable' detection that, with the correct local configuration, allow an attacker to execute arbitrary code as root
7.8
CVE-2023-1326
A privilege escalation attack was found in apport-cli 2.26.0 and earlier which is similar to CVE-2023-26604
7.8
CVE-2021-25684
It was discovered that apport in data/apport did not properly open a report file to prevent hanging reads on a FIFO
7.8
CVE-2021-25683
It was discovered that the get_starttime() function in data/apport did not properly parse the /proc/pid/stat file from the kernel
