1.1.1.5 Ensure jffs2 kernel module is not available

Information

The jffs2 (journaling flash filesystem 2) filesystem type is a log-structured filesystem used in flash memory devices.

Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.

Solution

Unload and disable the jffs2 kernel module.

- Run the following commands to unload the jffs2 kernel module:

# modprobe -r jffs2 2>/dev/null
# rmmod jffs2 2>/dev/null <xhtml:ol start="2"> - Perform the following to disable the jffs2 kernel module:

Create a file ending inconf with install jffs2 /bin/false in the /etc/modprobe.d/ directory.

Example:

# printf '%s\n' "" "install jffs2 /bin/false" >> /etc/modprobe.d/60-jffs2.conf

Create a file ending inconf with blacklist jffs2 in the /etc/modprobe.d/ directory.

Example:

# printf '%s\n' "" "blacklist jffs2" >> /etc/modprobe.d/60-jffs2.conf

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, 800-53|CM-7, CSCv7|9.2

Plugin: Unix

Control ID: 88fef134cfde8578fe8b92bb3fc03a3a5327f6429ddd33c1a4e3082b4cac4c4e