CVE-2025-5054 Race Condition in Canonical Apport

Medium 4.7 Published Updated

A local attacker can exploit a race condition in Canonical Apport to leak sensitive information by leveraging PID reuse and namespaces.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-5054?

CVE-2025-5054 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 30 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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).

Weakness: CWE-362

Which versions are affected by CVE-2025-5054?

It affects 2 products.

Products include Canonical Apport, Canonical Ubuntu Linux.

How do I fix CVE-2025-5054?

Apply the vendor's patch.

Is CVE-2025-5054 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5054 exists.

Public exploit code: 1 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-4c8w-67qj-c8vp, UBUNTU-CVE-2025-5054, USN-7545-1.

Is CVE-2025-5054 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free