{"description": "The <tt>ProcessSizeMax</tt> option in <tt>[Coredump]</tt> section\nof <tt>/etc/systemd/coredump.conf</tt> or in a drop-in file under\n<tt>/etc/systemd/coredump.conf.d/</tt> specifies the maximum size in bytes\nof a core which will be processed. Core dumps exceeding this size may be\nstored, but the backtrace will not be generated.", "rationale": "A core dump includes a memory image taken at the time the operating system\nterminates an application. The memory image could contain sensitive data\nand is generally useful only for developers or system operators trying to\ndebug problems.\n\nEnabling core dumps on production systems is not recommended,\nhowever there may be overriding operational requirements to enable advanced\ndebugging. Permitting temporary enablement of core dumps during such situations\nshould be reviewed through local needs and policy.", "severity": "medium", "references": {"nist": ["CM-6"], "pcidss": ["Req-3.2"], "srg": ["SRG-OS-000480-GPOS-00227"], "pcidss4": ["3.3.1.1", "3.3.1", "3.3"]}, "control_references": {"pcidss4": ["3.3.1.1", "3.3.1", "3.3"]}, "components": [], "identifiers": {}, "ocil_clause": "the \"ProcessSizeMax\" item is missing, commented out, or the value is anything other than \"0\" and the need for core dumps is not documented with the Information System Security Officer (ISSO) as an operational requirement for all domains that have the \"core\" item assigned", "ocil": "Verify Ubuntu 22.04 disables core dump backtraces by issuing the following command:\n\n<pre>$ grep -i process /etc/systemd/coredump.conf /etc/systemd/coredump.conf.d/*.conf\n\nProcessSizeMax=0</pre>", "oval_external_content": null, "fixtext": "Configure Ubuntu 22.04 to disable core dump backtraces.\n\nAdd or modify the following line in /etc/systemd/coredump.conf or in a drop-in file under /etc/systemd/coredump.conf.d/:\n\nProcessSizeMax=0", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 must disable core dump backtraces.", "warnings": [{"general": "If the <tt>/etc/systemd/coredump.conf</tt> file or a drop-in file under <tt>/etc/systemd/coredump.conf.d/</tt>\ndoes not already contain the <tt>[Coredump]</tt> section,\nthe value will not be configured correctly."}], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must disable core dump backtraces.", "vuldiscussion": "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 or system operators trying to debug problems.\n\nEnabling core dumps on production systems is not recommended; however, there may be overriding operational requirements to enable advanced debugging. Permitting temporary enablement of core dumps during such situations must be reviewed through local needs and policy.", "checktext": "Verify Ubuntu 22.04 disables core dump backtraces by issuing the following command:\n\n$ grep -i ProcessSizeMax /etc/systemd/coredump.conf\n\nProcessSizeMax=0\n\nIf the \"ProcessSizeMax\" item is missing or commented out, or the value is anything other than \"0\", and the need for core dumps is not documented with the information system security officer (ISSO) as an operational requirement for all domains that have the \"core\" item assigned, this is a finding.", "fixtext": "Configure the operating system to disable core dump backtraces.\n\nAdd or modify the following line in /etc/systemd/coredump.conf:\n\nProcessSizeMax=0"}}, "platform": "package[systemd]", "platforms": ["package[systemd]"], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": ["package_systemd"], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Disable core dump backtraces", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/restrictions/coredumps/coredump_disable_backtraces/rule.yml", "template": {"name": "systemd_dropin_configuration", "vars": {"master_cfg_file": "/etc/systemd/coredump.conf", "dropin_dir": "/etc/systemd/coredump.conf.d", "section": "Coredump", "param": "ProcessSizeMax", "application": "systemd-coredump", "value": "0", "no_quotes": "true", "missing_config_file_fail": "false"}, "backends": {}}}