{"description": "To set the runtime status of the <code>kernel.panic_on_oops</code> kernel parameter, run the following command: <pre>$ sudo sysctl -w kernel.panic_on_oops=1</pre>\nTo make sure that the setting is persistent, add the following line to a file in the directory <tt>/etc/sysctl.d</tt>: <pre>kernel.panic_on_oops = 1</pre>", "rationale": "An attacker trying to exploit the kernel may trigger kernel OOPSes,\npanicking the system will impede them from continuing.", "severity": "medium", "references": {"anssi": ["R9"]}, "control_references": {"anssi": ["R9"]}, "components": [], "identifiers": {}, "ocil_clause": "the correct value is not returned", "ocil": "The runtime status of the <code>kernel.panic_on_oops</code> kernel parameter can be queried\nby running the following command:\n<pre>$ sysctl kernel.panic_on_oops</pre>\n<code>1</code>.\n", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [{"functionality": "The system may start to panic when it normally wouldn't. A non-catastrophic error that\nwould have allowed the system to continue operating will now result in a panic."}], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "system_with_kernel", "platforms": ["system_with_kernel"], "sce_metadata": {"check-import": "stdout", "platform": ["multi_platform_all"], "environment": "any", "filename": "sysctl_kernel_panic_on_oops.sh", "relative_path": "ubuntu2204/checks/sce/sysctl_kernel_panic_on_oops.sh"}, "inherited_platforms": [], "cpe_platform_names": ["system_with_kernel"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Kernel panic on oops", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/restrictions/sysctl_kernel_panic_on_oops/rule.yml", "template": {"name": "sysctl", "vars": {"sysctlvar": "kernel.panic_on_oops", "sysctlval": "1", "datatype": "int"}, "backends": {}}}