RHEL-08-010672 - RHEL 8 must disable acquiring, saving, and processing core dumps.

Information

It is detrimental for operating systems to provide, or install by default, functionality exceeding requirements or mission objectives. These unnecessary capabilities or services are often overlooked and therefore may remain unsecured. They increase the risk to the platform by providing additional attack vectors.

A core dump includes a memory image taken at the time the operating system terminates an application. The memory image could contain sensitive data and is generally useful only for developers trying to debug problems.

When the kernel invokes systemd-coredumpt to handle a core dump, it runs in privileged mode, and will connect to the socket created by the systemd-coredump.socket unit. This, in turn, will spawn an unprivileged [email protected] instance to process the core dump.

Solution

Configure the system to disable the systemd-coredump.socket with the following commands:

$ sudo systemctl disable --now systemd-coredump.socket

$ sudo systemctl mask systemd-coredump.socket

Created symlink /etc/systemd/system/systemd-coredump.socket -> /dev/null

Reload the daemon for this change to take effect.

$ sudo systemctl daemon-reload

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_8_V2R3_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-230312r1017122_rule, STIG-ID|RHEL-08-010672, Vuln-ID|V-230312

Plugin: Unix

Control ID: 114168aa8790ad299c5c599cb6f13f1a35bee02088d422b96b85a93aae1204b3