A vulnerability in the Linux kernel's XFS filesystem log recovery process allows a heap out-of-bounds write during mount time. This occurs because the length of inode fork data copied from the log is not properly bounded against the fork's capacity, except for debug builds. The flaw is fixed by bounding the fork region length before copying and rejecting corrupted log items.