RHEL-09-231195 - RHEL 9 must disable mounting of cramfs.

Information

It is detrimental for operating systems to provide, or install by default, functionality exceeding requirements or mission objectives. These unnecessary capabilities or services are often overlooked and therefore may remain unsecured. They increase the risk to the platform by providing additional attack vectors.

Removing support for unneeded filesystem types reduces the local attack surface of the server.

Compressed ROM/RAM file system (or cramfs) is a read-only file system designed for simplicity and space-efficiency. It is mainly used in embedded and small-footprint systems.

Solution

To configure the system to prevent the cramfs kernel module from being loaded, add the following line to the file /etc/modprobe.d/blacklist.conf (or create blacklist.conf if it does not exist):

install cramfs /bin/false
blacklist cramfs

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_9_V1R3_STIG.zip

Item Details

References: CAT|III, CCI|CCI-000381, Rule-ID|SV-257880r942957_rule, STIG-ID|RHEL-09-231195, Vuln-ID|V-257880

Plugin: Unix

Control ID: b17f651970cca30839ad13fc51d95c077572c6fcec7b9555ab94a3eb8e660250