RHEL-08-040281 - RHEL 8 must disable access to network bpf syscall from unprivileged processes.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

It is detrimental for operating systems to provide, or install by default, functionality exceeding requirements or mission objectives. These unnecessary capabilities or services are often overlooked and therefore may remain unsecured. They increase the risk to the platform by providing additional attack vectors.

Solution

Configure RHEL 8 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_8_V1R1_STIG.zip

Item Details

References: CAT|II, CCI|CCI-000366, Rule-ID|SV-230545r599732_rule, STIG-ID|RHEL-08-040281, Vuln-ID|V-230545

Plugin: Unix

Control ID: 0510010c27e3888a8e14555f2af182f2b8e9b182afad2a6837f7c8982407f413