CVE-2025-4598: Systemd-coredump: race condition that allows a local attacker to crash a suid program and gain read access to the resulting core dump
A race condidition in systemd-coredump allows a local attacker to crash a SUID program and gain read access to the resulting core dump
Other sources
A vulnerability was found in systemd-coredump. This flaw allows an attacker to force a SUID process to crash and replace it with a non-SUID binary to access the original's privileged process coredump, allowing the attacker to read sensitive data, such as /etc/shadow content, loaded by the original process.
A SUID binary or process has a special type of permission, which allows the process to run with the file owner's permissions, regardless of the user executing the binary. This allows the process to access more restricted data than unprivileged users or processes would be able to. An attacker can leverage this flaw by forcing a SUID process to crash and force the Linux kernel to recycle the process PID before systemd-coredump can analyze the /proc/pid/auxv file. If the attacker wins the race condition, they gain access to the original's SUID process coredump file. They can read sensitive content loaded into memory by the original binary, affecting data confidentiality.
— MITRE
Systemd-coredump: race condition that allows a local attacker to crash a suid program and gain read access to the resulting core dump
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Mitigate the systemd-coredump race condition by preventing local unprivileged users from being able to trigger crashes of SUID programs that would cause systemd-coredump to create/parse core dumps (e.g., restrict who can execute/trigger the relevant SUID binaries and limit access to the coredump handling path via OS permissions/ACLs).
Event History
Frequently Asked Questions
What is the severity of CVE-2025-4598?
CVE-2025-4598 has a high severity rating due to the potential for local attackers to exploit the vulnerability to gain unauthorized access.
How do I fix CVE-2025-4598?
To fix CVE-2025-4598, update systemd-coredump to the latest version provided by your distribution that addresses this vulnerability.
Who is affected by CVE-2025-4598?
CVE-2025-4598 affects systems running the vulnerable versions of systemd-coredump, specifically those that employ SUID programs.
What is the impact of CVE-2025-4598?
The impact of CVE-2025-4598 includes the ability for local attackers to crash SUID programs and potentially access sensitive core dumps.
Is CVE-2025-4598 being actively exploited?
As of now, there haven't been any confirmed active exploits for CVE-2025-4598, but it is advisable to apply mitigation measures promptly.