AlmaLinux OS 9 must prevent kernel profiling by nonprivileged users.
Overview
| Finding ID | Version | Rule ID | IA Controls | Severity |
| V-269426 | ALMA-09-041160 | SV-269426r1050309_rule | CCI-001082 | medium |
| Description | ||||
| Setting the kernel.perf_event_paranoid kernel parameter to "2" prevents attackers from gaining additional system information as a nonprivileged user. Satisfies: SRG-OS-000132-GPOS-00067, SRG-OS-000138-GPOS-00069 | ||||
| STIG | Date | |||
| CloudLinux AlmaLinux OS 9 Security Technical Implementation Guide | 2025-05-22 | |||
Details
Check Text (C-269426r1050309_chk)
Verify AlmaLinux OS 9 is configured to prevent kernel profiling by nonprivileged users with the following commands:
Check the status of the kernel.perf_event_paranoid kernel parameter.
$ sysctl kernel.perf_event_paranoid
kernel.perf_event_paranoid = 2
If "kernel.perf_event_paranoid" is not set to "2" or is missing, this is a finding.
Check that the configuration files are present to enable this kernel parameter.
$ /usr/lib/systemd/systemd-sysctl --cat-config | egrep -v '^(#|;)' | grep -F kernel.perf_event_paranoid | tail -1
kernel.perf_event_paranoid = 2
If "kernel.perf_event_paranoid" is not set to "2" or is missing, this is a finding.
Fix Text (F-73358r1049689_fix)
Configure AlmaLinux OS 9 to prevent kernel profiling by nonprivileged users with the following command:
$ echo "kernel.perf_event_paranoid = 2" > /etc/sysctl.d/60-perf.conf
Load settings from all system configuration files with the following command:
$ sysctl --system