OL 9 must disable access to network bpf system call from nonprivileged processes.
Overview
| Finding ID | Version | Rule ID | IA Controls | Severity |
| V-271748 | OL09-00-002409 | SV-271748r1091956_rule | CCI-001082 | medium |
| Description | ||||
| 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. | ||||
| STIG | Date | |||
| Oracle Linux 9 Security Technical Implementation Guide | 2025-05-08 | |||
Details
Check Text (C-271748r1091956_chk)
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 Text (F-75705r1091955_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