PT-2025-49076 · Xfs+4 · Xfs+4
CVE-2025-40246
·
Published
2025-11-12
·
Updated
2026-08-30
CVSS v3.1
7.1
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions prior to 6.18.0-rc4-djwx
Description
The Linux kernel contains a flaw related to out-of-bounds memory access during symlink repair within the XFS filesystem. Specifically, an incorrect calculation in the
min() function leads to reading beyond the allocated buffer when handling symbolic links. This issue occurs because the size of the xfs ifork::if bytes buffer can be smaller than the actual data fork size, particularly for symbolic links. The vulnerability is triggered during metadata scrubbing operations, potentially leading to system instability or crashes. The issue was identified through kfence testing and reported by xfs/286.Recommendations
Update to a version newer than 6.18.0-rc4-djwx to address this vulnerability.
Exploit
Fix
Out of bounds Read
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Debian
Linuxmint
Linux Kernel
Ubuntu
Xfs