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.
https://git.kernel.org/stable/c/d29ed9ff972afe17c215cab171761d7a15d7063f
https://git.kernel.org/stable/c/5990fd756943836978ad184aac980e2b36ab7e01
https://git.kernel.org/stable/c/1e2d3aa19c7962b9474b22893160cb460494c45f