Vulnerability · Published May 30, 2025 · Assigned by redhat
CVE-2025-4598Systemd-coredump: race condition that allows a local attacker to crash a suid program and gain read access to the resulting core dump
Medium 4.7
In plain English
A medium-severity security flaw in systemd-coredump. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | rhel-net-naming-sysattrs | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-boot-unsigned | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-container | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-devel | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-journal-remote | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-libs | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-oomd | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-pam | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-resolved | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-rpm-macros | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-udev | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| AlmaLinux:9 | systemd-ukify | 252-55.el9_7.7.alma.1 | ALSA-2025:22660 |
| Debian:12 | systemd | 252.38-1~deb12u1 | DEBIAN-CVE-2025-4598 |
| Debian:12 | systemd | 252.38-1~deb12u1 | DSA-5931-1 |
| Debian:13 | systemd | 257.6-1 | DEBIAN-CVE-2025-4598 |
| Debian:14 | systemd | 257.6-1 | DEBIAN-CVE-2025-4598 |
| Rocky Linux:10 | systemd | 0:257-23.el10_2.1.rocky.0.1 | RLSA-2026:18153 |
| Rocky Linux:9 | systemd | 0:252-55.el9_7.7.rocky.0.1 | RLSA-2025:22660 |
| Ubuntu:22.04:LTS | systemd | 249.11-0ubuntu3.16 | UBUNTU-CVE-2025-4598 |
| Ubuntu:22.04:LTS | systemd | 249.11-0ubuntu3.16 | USN-7559-1 |
| Ubuntu:24.04:LTS | systemd | 255.4-1ubuntu8.8 | USN-7559-1 |
| Ubuntu:24.04:LTS | systemd | 255.4-1ubuntu8.8 | UBUNTU-CVE-2025-4598 |
Affected products (as reported)
Weakness: CWE-364 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
References
- RHSA-2025:22660 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:22868 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23227 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23234 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:0414 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:1652 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:18153 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-4598 vdb-entry, x_refsource_REDHAT
- RHBZ#2369242 issue-tracking, x_refsource_REDHAT
- https://www.openwall.com/lists/oss-security/2025/05/29/3
- http://www.openwall.com/lists/oss-security/2025/06/05/1
- http://www.openwall.com/lists/oss-security/2025/06/05/3
- https://www.openwall.com/lists/oss-security/2025/08/18/3
- https://blogs.oracle.com/linux/post/analysis-of-cve-2025-4598
- https://ciq.com/blog/the-real-danger-of-systemd-coredump-cve-2025-4598/
- https://lists.debian.org/debian-lts-announce/2025/07/msg00022.html
- http://seclists.org/fulldisclosure/2025/Jun/9
- http://www.openwall.com/lists/oss-security/2025/08/18/3
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html