SV-269451r1069342_rule
V-269451
SRG-OS-000433-GPOS-00192
ALMA-09-044790
CAT II
10
Configure AlmaLinux OS 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-269451
False
ALMA-09-044790
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
5664