RHEL-09-213075 - RHEL 9 must disable access to network bpf system call from nonprivileged processes.

Information

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.

Satisfies: SRG-OS-000132-GPOS-00067, SRG-OS-000480-GPOS-00227

Solution

Configure RHEL 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

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|CM-6b., 800-53|SC-2, CAT|II, CCI|CCI-000366, CCI|CCI-001082, Rule-ID|SV-257810r958514_rule, STIG-ID|RHEL-09-213075, Vuln-ID|V-257810

Plugin: Unix

Control ID: 1c5521b013cbb9110f0212c4d81d2aa1ed22e9322f617ae22dd8d292f7081a8f