Debian GNU/Linux · Services

Disable the kdump kernel crash dump service

When it fails: Kernel crash dumps are collected on the system. A crash dump is a copy of memory that can hold keys, passwords and sensitive data.

CB-DEB-SVC-026lowactiveautomatedautomated fixprofile server-hardened

Description

kdump-tools loads a capture kernel at boot (kdump-tools.service). When the main kernel crashes, the capture kernel saves its memory to /var/crash.

The control passes when kdump-tools.service is masked or not installed at all.

kdump-tools is not installed by default. Systems where kernel developers or support need dumps should exclude this control in their tailoring file and protect /var/crash instead.

Rationale

The dump holds everything that was in memory: secrets of running services, session keys, documents. It stays on disk after the reboot and can be copied by anyone who gets access to /var/crash or to backups. Kernel crash analysis is rarely needed in production.

Impact

Kernel crashes leave no dump to analyse. The memory reserved by the crashkernel= boot parameter stays reserved until the parameter is removed (apt purge kdump-tools, then update-grub and a reboot).

Audit

Run systemctl is-enabled kdump-tools.service. It must print masked, or fail because the unit does not exist.

Automated: every check must pass. Scanners report each check by its id.

kdump-tools

kdump capture kernel loader.

unit: kdump-tools.service
state: masked

Remediation

Run systemctl mask --now kdump-tools.service. To also free the reserved memory, run apt purge kdump-tools, then update-grub, and reboot.

Restartnone
Disruptionnone

Rollback

Run systemctl unmask kdump-tools.service then systemctl enable --now kdump-tools.service.

kdump-tools

Generated from check kdump-tools: the engine writes the fix for every output, it sets the expected value and the check runs again after.

Each release turns these fixes into remediate.sh and an Ansible role per profile: dry run by default, a fix runs only when its check fails.

References

Mappings

FrameworkIDRelationNote
ANSSI-BP-028 - Recommandations de configuration d'un système GNU/Linux2.0R62partialR62 asks to disable every unneeded service; this control covers kdump.
NIST SP 800-53 Rev. 55.1.1CM-7partial

How this control relates to the other framework's: equivalent, stricter, looser, partial or related.

Threats mitigated

People and lifecycle

Authors
Verified2026-10-18 by Sn0wAlice on 12, Proxmox VM, Debian 12 genericcloud image, kernel 6.1.0-54-cloud-amd64. Fresh image passes; with kdump-tools installed the check fails, fix masks the service, audit passes after reboot; kdump-tools still purges cleanly.
Verified2026-10-18 by Sn0wAlice on 13, Proxmox VM, Debian 13 genericcloud image, kernel 6.12.113+deb13-cloud-amd64. Fresh image passes; with kdump-tools installed the check fails, fix masks the service, audit passes after reboot; kdump-tools still purges cleanly.
Introduced inv0.1.0
Created, updated2026-10-18, 2026-10-18
Translationsfr