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

Run the following to unload and disable the jffs2 kernel module. This can also be done by running the script included below.

Run the following commands to unload the jffs2 kernel module:

# modprobe -r jffs2 2>/dev/null
# rmmod jffs2 2>/dev/null

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 '\n%s\n' "install jffs2 /bin/false" >> jffs2.conf

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

Example:

# printf '\n%s\n' "blacklist jffs2" >> jffs2.conf

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: 8a559952b2aa0bd7005a2319b5f49a0fb33e00405e380a48709f3cb8616dc01f