1.4 UBTU-22-213010

Information

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

GROUP ID: V-260472
RULE ID: SV-260472r958524

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

Solution

Configure the operating system to restrict access to the kernel message buffer.

Add or modify the following line in the "/etc/sysctl.conf" file:

kernel.dmesg_restrict = 1

Remove any configurations that conflict with the above from the following locations:

/run/sysctl.d//etc/sysctl.d//usr/local/lib/sysctl.d//usr/lib/sysctl.d//lib/sysctl.d//etc/sysctl.conf

Reload settings from all system configuration files by using the following command:

$ sudo sysctl --system

See Also

https://workbench.cisecurity.org/benchmarks/22168

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-4, CAT|III, CCI|CCI-001090, CSCv7|9.2, Rule-ID|SV-260472r958524_rule, STIG-ID|UBTU-22-213010, Vuln-ID|V-260472

Plugin: Unix

Control ID: 6cd727505767ceff306cafcabaec512082c3f51874d596401f6e9215c98ae838