SV-248592r1069149_rule
V-248592
SRG-OS-000134-GPOS-00068
OL08-00-010423
CAT II
10
Configure OL 8 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 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-248592
False
OL08-00-010423
Verify 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
5416