Ubuntu 24.04 LTS must disable kernel core dumps.

STIG ID: UBTU-24-600070  |  SRG: SRG-OS-000184-GPOS-00078 |  Severity: medium |  CCI: CCI-001190 |  Vulnerability Id: V-270746

Vulnerability Discussion

Kernel core dumps may contain the full contents of system memory at the time of the crash. Kernel core dumps may consume a considerable amount of disk space and may result in denial of service by exhausting the available space on the target file system partition.

Check

Verify that kernel core dumps are disabled unless needed with the following command:

$ systemctl is-active kdump.service
inactive

If the "kdump" service is active, ask the system administrator (SA) if the use of the service is required and documented with the information system security officer (ISSO).

If the service is active and is not documented, this is a finding.

Fix

If kernel core dumps are not required, disable the "kdump" service with the following command:

$ sudo systemctl disable kdump.service

If kernel core dumps are required, document the need with the ISSO.