UBTU-22-213010 - Ubuntu 22.04 LTS must restrict access to the kernel message buffer.

Warning! Audit Deprecated

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

View Next Audit Version

Information

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 Ubuntu 22.04 LTS 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://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CAN_Ubuntu_22-04_LTS_V2R1_STIG.zip

Item Details

References: CAT|III, CCI|CCI-001090, Rule-ID|SV-260472r958524_rule, STIG-ID|UBTU-22-213010, Vuln-ID|V-260472

Plugin: Unix

Control ID: 28073edb4b13910f485e7e1bccffad8c1b01b3624333b25032c568d216ed0fbc