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

State
Published
Severity
4.7 Medium
Published
May 30, 2025
Updated
Oct 15, 2026
Reserved
May 12, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:Nredhat

Weaknesses

  • CWE-364 Signal Handler Race Condition

Affected Products

ProductVersions
systemd-coredump
  • before 252.37Affected
  • 253.0 to before 253.32Affected
  • 254.0 to before 254.25Affected
  • 255.0 to before 255.19Affected
  • 256.0 to before 256.14Affected
  • 257.0 to before 257.6Affected
Red Hat Enterprise Linux 10Red Hat
  • 0:257-23.el10 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 0:252-55.el9_7.7 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 0:252-55.el9_7.7 and laterNot affected
Red Hat Ceph Storage 7Red Hat
  • 7 and laterNot affected
Red Hat Ceph Storage 8Red Hat
  • 8 and laterNot affected
Red Hat Ceph Storage 8Red Hat
  • 1769512383 and laterNot affected
Red Hat Discovery 2Red Hat
  • 1767888970 and laterNot affected
Red Hat Discovery 2Red Hat
  • 1767904573 and laterNot affected
Red Hat Insights proxy 1.5Red Hat
  • 1.5.9-1765201856 and laterNot affected
Red Hat Enterprise Linux 10Red Hat
    Red Hat Enterprise Linux 10Red Hat
      Red Hat Enterprise Linux 7Red Hat
        Red Hat Enterprise Linux 7Red Hat
          Red Hat Enterprise Linux 8Red Hat
            Red Hat Enterprise Linux 9Red Hat
              Red Hat OpenShift Container Platform 4Red Hat
                Red Hat OpenShift Container Platform 4Red Hat
                  Red Hat OpenShift Container Platform 4Red Hat

                    References

                    Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.