CVE-2025-40246 is a vulnerability in the Linux kernel's XFS filesystem code involving an out-of-bounds memory read error during symlink repair. The flaw occurs due to incorrect handling of buffer sizes when repairing symbolic links, leading to reading beyond allocated memory. This issue has been identified and fixed in the kernel source code.