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_V1R1_STIG.zip

Item Details

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

Plugin: Unix

Control ID: 1e591eb63b2828f14526b15218c6ff440c767df4d06c408c2d5acde36b6af9e1