A divide-by-zero vulnerability exists in littlefs versions 2.8.0 through 2.11.3 in the lfs_mount_() function. This vulnerability allows attackers to crash processes mounting crafted filesystem images when block_count is 0. Attackers can supply an image lacking a superblock entry or recording block_count 0, causing lfs->seed % lfs->block_count to trigger SIGFPE and denial of service.
A type confusion vulnerability exists in littlefs through 2.11.3 when built with LFS_MIGRATE. The vulnerability is in the lfs_dir_traverse() function, which treats a stack lfs_diskoff struct as an lfs_attr array. This can cause out-of-bounds stack reads and process crashes when a crafted littlefs v1 image is supplied. The vulnerability affects littlefs, a file system used in various embedded systems and IoT devices. Defenders responsible for systems using littlefs with LFS_MIGRATE enabled should assess exposure and verify configurations.