STIGUI
V-258828CAT II — Medium severitySV-258828r1137695_rule

The Photon operating system must restrict access to the kernel message buffer.

Rule version PHTN-40-000067 · STIG v2 · 2026-08-26

Discussion

Restricting access to the kernel message buffer limits access only to root. This prevents attackers from gaining additional system information as a nonprivileged user.

Check

At the command line, run the following command to verify kernel message buffer restrictions are enabled:

# /sbin/sysctl kernel.dmesg_restrict

Example result:

kernel.dmesg_restrict = 1

If the "kernel.dmesg_restrict" kernel parameter is not set to "1", this is a finding.

Fix

Navigate to and open:

/etc/sysctl.d/zz-stig-hardening.conf

Add or update the following line:

kernel.dmesg_restrict = 1

At the command line, run the following command to load the new configuration:

# /sbin/sysctl --load /etc/sysctl.d/zz-stig-hardening.conf

Note: If the file zz-stig-hardening.conf does not exist, it must be created.

Identifiers

Group ID
V-258828
Group title
SRG-OS-000138-GPOS-00069
Rule ID
SV-258828r1137695_rule
Check ID
C-62568r933543_chk
Fix ID
F-62477r933544_fix