STIGUI
V-271748CAT II — Medium severitySV-271748r1198253_rule

OL 9 must disable access to network bpf system call from nonprivileged processes.

Rule version OL09-00-002409 · STIG v1 · 2026-08-21

Discussion

Loading and accessing the packet filters programs and maps using the bpf() system call has the potential of revealing sensitive information about the kernel state.

Check

Verify that OL 9 prevents privilege escalation thru the kernel by disabling access to the bpf system call with the following commands:

$ sysctl kernel.unprivileged_bpf_disabled kernel.unprivileged_bpf_disabled = 1

If the returned line does not have a value of "1", or a line is not returned, this is a finding.

Fix

Configure OL 9 to prevent privilege escalation thru the kernel by disabling access to the bpf syscall by adding the following line to a file, in the "/etc/sysctl.d" directory:

kernel.unprivileged_bpf_disabled = 1

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

$ sudo sysctl --system

Identifiers

Group ID
V-271748
Group title
SRG-OS-000132-GPOS-00067
Rule ID
SV-271748r1198253_rule
Check ID
C-75798r1091954_chk
Fix ID
F-75705r1091955_fix