SV-257794r1069362_rule
V-257794
SRG-OS-000433-GPOS-00192
RHEL-09-212045
CAT II
10
Configure RHEL 9 to enable init_on_free with the following command:
$ sudo grubby --update-kernel=ALL --args="init_on_free=1"
Regenerate the GRUB configuration:
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Reboot the system:
$ sudo reboot
Verify that GRUB2 is configured to mitigate use-after-free vulnerabilities by employing memory poisoning.
Inspect the "GRUB_CMDLINE_LINUX" entry of /etc/default/grub as follows:
$ sudo grep -i 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-257794
False
RHEL-09-212045
Verify that GRUB2 is configured to mitigate use-after-free vulnerabilities by employing memory poisoning.
Inspect the "GRUB_CMDLINE_LINUX" entry of /etc/default/grub as follows:
$ sudo grep -i 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
5551