CVE-2025-68784: xfs: fix a UAF problem in xattr repair
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix a UAF problem in xattr repair
The xchk_setup_xattr_buf function can allocate a new value buffer, which means that any reference to ab->value before the call could become a dangling pointer. Fix this by moving an assignment to after the buffer setup.
The Linux kernel CVE team has assigned CVE-2025-68784 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit e47dcf113ae348678143cc935a1183059c02c9ad and fixed in 6.12.64 with commit 1e2d3aa19c7962b9474b22893160cb460494c45f Issue introduced in 6.10 with commit e47dcf113ae348678143cc935a1183059c02c9ad and fixed in 6.18.3 with commit d29ed9ff972afe17c215cab171761d7a15d7063f Issue introduced in 6.10 with commit e47dcf113ae348678143cc935a1183059c02c9ad and fixed in 6.19-rc2 with commit 5990fd756943836978ad184aac980e2b36ab7e01
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-68784
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/xfs/scrub/attr_repair.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/1e2d3aa19c7962b9474b22893160cb460494c45f https://git.kernel.org/stable/c/d29ed9ff972afe17c215cab171761d7a15d7063f https://git.kernel.org/stable/c/5990fd756943836978ad184aac980e2b36ab7e01