STIGUI
V-269426CAT II — Medium severitySV-269426r1198253_rule

AlmaLinux OS 9 must prevent kernel profiling by nonprivileged users.

Rule version ALMA-09-041160 · STIG v1 · 2026-08-25

Discussion

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

Check

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

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

Identifiers

Group ID
V-269426
Group title
SRG-OS-000132-GPOS-00067
Rule ID
SV-269426r1198253_rule
Check ID
C-73457r1049688_chk
Fix ID
F-73358r1049689_fix