A vulnerability in the Linux kernel's UFS filesystem code causes incorrect handling of directory sizes, leading to out-of-bounds reads and potential use-after-free conditions. This occurs because a 64-bit directory size is truncated to 32 bits, causing calculations to overflow and access memory beyond the intended directory data. The flaw affects privileged mounts of UFS filesystems and can be triggered by crafted UFS images. The issue has been fixed by maintaining 64-bit arithmetic for directory size calculations.