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