Information
The msdosfs driver will permit the FreeBSD kernel to read and write MS-DOS based file systems.
Removing support for unneeded file system types reduces the local attack surface of the system. This module is required only when reading or writing from MS-DOS based filesystems such as FAT16 or FAT32 file systems. These types of file systems are used on flash and other memory cards but have mostly been replaced with NTFS on Microsoft systems. It is recommended that support for these file system types these be disabled.
NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.
Solution
Run the following script to disable the msdosfs module:
-IF- the module is available in the running kernel:
- Disable loading the kernel module
- Unload msdosfs from the kernel
# kldunload -f msdosfs
# printf "msdosfs_load=\"NO\"\n" >> /boot/loader.conf