SV-281303r1167059_rule
V-281303
SRG-OS-000134-GPOS-00068
RHEL-10-701010
CAT II
10
Configure RHEL 10 to enable "init_on_free" with the following command:
$ sudo grubby --update-kernel=ALL --args="init_on_free=1"
Verify RHEL 10 is configured so that the current GRUB2 configuration mitigates use-after-free vulnerabilities by employing memory poisoning.
Check that the current GRUB2 configuration mitigates use-after-free vulnerabilities by employing memory poisoning with the following command:
$ sudo grubby --info=ALL | grep args | grep -v init_on_free=1
If any output is returned, this is a finding.
Check that page poisoning is enabled by default to persist in kernel updates with the following command:
$ sudo grep grub_cmdline_linux /etc/default/grub
GRUB_CMDLINE_LINUX="... init_on_free=1"
If "init_on_free=1" is missing or commented out, this is a finding.
V-281303
False
RHEL-10-701010
Verify RHEL 10 is configured so that the current GRUB2 configuration mitigates use-after-free vulnerabilities by employing memory poisoning.
Check that the current GRUB2 configuration mitigates use-after-free vulnerabilities by employing memory poisoning with the following command:
$ sudo grubby --info=ALL | grep args | grep -v init_on_free=1
If any output is returned, this is a finding.
Check that page poisoning is enabled by default to persist in kernel updates with the following command:
$ sudo grep grub_cmdline_linux /etc/default/grub
GRUB_CMDLINE_LINUX="... init_on_free=1"
If "init_on_free=1" is missing or commented out, this is a finding.
M
5733