Security advisory Debian

Debian systemd-coredump information leak (DSA-5931-1, CVE-2025-4598): check, update, mitigate

DSA-5931-1 fixed a systemd-coredump race that could let a local user read memory of crashed SUID programs or root daemons on Debian 12.

Published
Reading time
4 min read

Security advisory Vulnerability

Severity: Medium Status: Patched
Status
Fixed versions are available for Debian 12 (bookworm) and Debian 11 (bullseye).
Affected
  • systemd in Debian 12 (bookworm) before 252.38-1~deb12u1
  • systemd in Debian 11 (bullseye) before 247.3-7+deb11u7
Published
Updated

What you should do

  • Check whether systemd-coredump is installed; if you do not use it, consider removing it.
  • If it is installed, update systemd packages to at least 252.38-1~deb12u1 on bookworm and reboot when convenient.
  • Keep the kernel updated too, as Debian notes a kernel change is part of the complete fix.
  • Review the systemd tracker page for later issues; several minor ones are handled through point releases rather than DSAs.
  • Ubuntu's crash handler is apport, covered separately; see Ubuntu Security Notices.
Timeline
  1. Debian published DSA-5931-1 for systemd.
  2. The Debian LTS team published DLA-4259-1 for systemd.
  3. Skyline published this summary.

On 29 May 2025 Debian released DSA-5931-1 for systemd on Debian 12 (bookworm). It fixes CVE-2025-4598, found by the Qualys Threat Research Unit in systemd-coredump, the optional crash-dump handler. A local user could use it to read sensitive memory, such as password hashes, from crashed privileged programs. Only machines where systemd-coredump is installed and handling core dumps are exposed.

At a glance

ItemDetail
Source packagesystemd (the flaw is in the binary package systemd-coredump)
ReleasesDebian 12 (bookworm); Debian 11 (bullseye) got DLA-4259-1 on 30 July 2025
Fixed versionsbookworm 252.38-1~deb12u1; bullseye 247.3-7+deb11u7 (historical). The tracker lists Debian 13 (trixie) as fixed.
CVECVE-2025-4598
SeverityMedium: CNA (Red Hat) CVSS 3.1 base 4.7; local access needed
AdvisoryDSA-5931-1, 29 May 2025

What the vulnerability is

When a program crashes, the kernel can hand its memory image to a helper such as systemd-coredump. Debian's advisory describes two problems in that hand-off:

  • A kill-and-replace race. A local attacker could crash a SUID program and quickly replace the process with one of their own, so the dump handler treated the privileged dump as belonging to the attacker. Qualys demonstrated this against unix_chkpwd, a helper installed on most Linux systems, to read data from /etc/shadow.
  • The dumpable flag was ignored. systemd-coredump did not pass %d (the kernel's per-process dumpable flag) in /proc/sys/kernel/core_pattern. An attacker could crash root daemons that fork and switch to the attacker's user ID and then read their core dumps. Qualys reports extracting secrets this way from sshd-session, sd-pam and cron.

Debian's tracker adds that a comprehensive fix also needs a kernel change that hands a pidfd to the user-mode coredump helper, which is another reason to keep the kernel package current.

Are you affected?

systemd-coredump is a separate package with priority optional, so first check whether it is installed and in use:

dpkg -l 'systemd*' | grep '^ii'
apt policy systemd-coredump
cat /proc/sys/kernel/core_pattern
cat /proc/sys/fs/suid_dumpable

If apt policy shows Installed: (none) and core_pattern does not pipe to systemd-coredump, this flaw does not apply. If it is installed, compare the installed version with the fixed one for your release.

How to update

sudo apt update
sudo apt install --only-upgrade systemd systemd-coredump libsystemd0
apt policy systemd-coredump

--only-upgrade upgrades packages that are already installed and does not install new ones, so the command is safe on machines without systemd-coredump. A normal sudo apt upgrade does the same job. The bookworm version available today is newer than the one in the advisory and contains the fix.

Restart or reboot?

systemd-coredump runs only when a process crashes, so the fixed code is used for the next crash. Because the update also replaces systemd itself and its library, a reboot at a convenient time is the simplest way to be sure every component runs the new code, and it also loads any newer kernel you have installed.

If you cannot update yet

Qualys suggests setting fs.suid_dumpable to 0 as a temporary fix. This stops SUID programs, and root daemons that drop privileges, from producing core dumps, so you lose crash dumps for those programs:

echo 'fs.suid_dumpable = 0' | sudo tee /etc/sysctl.d/90-no-suid-dumps.conf
sudo sysctl --system
cat /proc/sys/fs/suid_dumpable

Sources

SKYLINE Engineering

@skyline

The engineering team at SKYLINE Industrial Solutions. We publish field-tested guides drawn from real KSA and GCC deployments.

See author profile
SKYLINE engineering services

Need this implemented for you?

Reading is free — building it right takes a team. SKYLINE engineers ship Debian for Aramco vendors, banks, hospitals and government agencies across Saudi Arabia. Talk to us before you start.

Aramco Approved Contractor ISO 9001 · ISO 27001 SAMA CSF aligned NCA ECC ready 247+ KSA clients

Comments

0 total · 0 threads
Be the first to leave a comment.