AlmaLinux OS 9 must disable access to network bpf system call from nonprivileged processes.
An XCCDF Rule
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.
- ID
- SV-269422r1050305_rule
- Version
- ALMA-09-040720
- Severity
- Medium
- References
- Updated
Remediation Templates
A Manual Procedure
Configure AlmaLinux OS 9 to prevent privilege escalation through the kernel by disabling access to the bpf syscall with the following command:
$ echo "kernel.unprivileged_bpf_disabled = 1" > /etc/sysctl.d/60-bpf.conf
Load settings from all system configuration files with the following command:
$ sysctl --system