1.371 RHEL-10-701000

Information

RHEL 10 must clear the page allocator to prevent use-after-free attacks.

GROUP ID: V-281302RULE ID: SV-281302r1167056

Poisoning writes an arbitrary value to freed pages, so any modification or reference to that page after being freed or before being initialized will be detected and prevented. This prevents many types of use-after-free vulnerabilities at little performance cost. It also prevents data leakage and detection of corrupted memory.

Solution

Configure RHEL 10 to enable page poisoning with the following commands:

$ sudo grubby --update-kernel=ALL --args="page_poison=1"

See Also

https://workbench.cisecurity.org/benchmarks/26403