ALMA-09-021800 - AlmaLinux OS 9 must enable hardening for the Berkeley Packet Filter (BPF) just-in-time (JIT) compiler.

Information

When hardened, the extended BPF JIT compiler will randomize any kernel addresses in the BPF programs and maps, and will not expose the JIT addresses in "/proc/kallsyms".

Solution

Configure AlmaLinux OS 9 to enable hardening for the BPF JIT compiler.

Create a numbered *.conf file in /etc/sysctl.d/ with the following content:

net.core.bpf_jit_harden = 2

The system configuration files must be reloaded for the changes to take effect. To reload the contents of the files, run the following command:

$ sysctl -system

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CL_AlmaLinux_OS_9_V1R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-269273r1050155_rule, STIG-ID|ALMA-09-021800, Vuln-ID|V-269273

Plugin: Unix

Control ID: 171fcad5984c3eaa0f19e2625b4cdc23041c5dcc0159a609ac0983b29d37e80d