STIGUI
V-281337CAT II — Medium severitySV-281337r1167161_rule

RHEL 10 must enable hardening for the Berkeley Packet Filter (BPF) just-in-time compiler.

Rule version RHEL-10-800050 · STIG v1 · 2026-09-17

Discussion

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

Check

Verify RHEL 10 enables hardening for the BPF JIT compiler.

Check the status of the "net.core.bpf_jit_harden" parameter with the following command:

$ sudo sysctl net.core.bpf_jit_harden net.core.bpf_jit_harden = 2

If "net.core.bpf_jit_harden" is not equal to "2" or is missing, this is a finding.

Fix

Configure RHEL 10 to enable hardening for the BPF JIT compiler.

Create the drop-in file if it does not already exist:

$ sudo vi /etc/sysctl.d/99-net_core-bpf_jit_harden.conf

Add the following line to the file:

net.core.bpf_jit_harden = 2

Reload settings from all system configuration files with the following command:

$ sudo sysctl --system

Identifiers

Group ID
V-281337
Group title
SRG-OS-000433-GPOS-00192
Rule ID
SV-281337r1167161_rule
Check ID
C-85898r1167159_chk
Fix ID
F-85803r1167160_fix