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

4.7 medium EPSS 0.45%

Published 30 May 2025 Updated 24 Nov 2026 CNA: redhat

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.

Severity (CVSS)

4.7 medium CVSS 3.1 from redhat (CNA)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.45%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 31.4% of all scored CVEs. Scores of 26 Nov 2026.

The assessment of CISA (SSVC, 30 May 2025):

Exploitation
poc: a proof of concept is public
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-364 Signal Handler Race Condition

Affected products

As the CNA lists them.

ProductVersions
systemd-coredump
package systemd-coredump
affected before 252.37
affected from 253.0, before 253.32
affected from 254.0, before 254.25
affected from 255.0, before 255.19
affected from 256.0, before 256.14
affected from 257.0, before 257.6
Other versions: unaffected
Red Hat Enterprise Linux 10
package systemd
unaffected 0:257-23.el10 and later
Other versions: affected
Red Hat Enterprise Linux 9
package systemd
unaffected 0:252-55.el9_7.7 and later
Other versions: affected
Red Hat Enterprise Linux 9
package systemd
unaffected 0:252-55.el9_7.7 and later
Other versions: affected
Red Hat Ceph Storage 7
package rhceph/rhceph-7-rhel9
unaffected 7 and later
Other versions: affected
Red Hat Ceph Storage 8
package rhceph/rhceph-8-rhel9
unaffected 8 and later
Other versions: affected
Red Hat Ceph Storage 8
package rhceph/rhceph-8-rhel9
unaffected 1769512383 and later
Other versions: affected
Red Hat Discovery 2
package discovery/discovery-server-rhel9
unaffected 1767888970 and later
Other versions: affected
Red Hat Discovery 2
package discovery/discovery-ui-rhel9
unaffected 1767904573 and later
Other versions: affected
Red Hat Insights proxy 1.5
package insights-proxy/insights-proxy-container-rhel9
unaffected 1.5.9-1765201856 and later
Other versions: affected
Red Hat Enterprise Linux 10
package NetworkManager
unaffected the record does not list versions
Red Hat Enterprise Linux 10
package rpm-ostree
unaffected the record does not list versions
Red Hat Enterprise Linux 7
package NetworkManager
unaffected the record does not list versions
Red Hat Enterprise Linux 7
package systemd
affected the record does not list versions
Red Hat Enterprise Linux 8
package systemd
affected the record does not list versions
Red Hat Enterprise Linux 9
package NetworkManager
unaffected the record does not list versions
Red Hat OpenShift Container Platform 4
package openshift/ose-rhel-coreos-8
unaffected the record does not list versions
Red Hat OpenShift Container Platform 4
package openshift/ose-rhel-coreos-9
affected the record does not list versions
Red Hat OpenShift Container Platform 4
package systemd
unaffected the record does not list versions

Is my server affected?

Find the installed version of systemd and compare it with the fixed version of your distribution. Distributions often fix a CVE in their own package version, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i systemd
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-4598 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-4598

RHEL, Rocky, Alma, Fedora

rpm -q systemd
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-4598

Alpine

apk list --installed | grep -i systemd

With Trivy, on the host and for a container image; it prints the installed and the fixed version when a package is affected:

trivy rootfs --scanners vuln / | grep CVE-2025-4598
trivy image --scanners vuln IMAGE | grep CVE-2025-4598

Patchbrief matches the package lists of your Linux servers and containers every day against the Trivy vulnerability database, which covers the packages of Linux distributions and language packages (npm, PyPI, Go, Maven and others), and sends one digest with the command that fixes each problem. Install the agent.

References

Advisories

Other references

Source: the record CVE-2025-4598 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.