CVE-2026-142791: xfs: fix buffer overflow in corrupt inline attr structure
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix buffer overflow in corrupt inline attr structure
LOLLM noticed a buffer overrun if the xattr scrubber encounters a file with a shortform attr fork with sf->count > 0 but ifbytes == sizeof(struct xfsattrsfhdr). Basically, we have enough data to have a header with a nonzero count, but no space for any of those shortform entries. In this case, the xfsattrsfnextentry() call will run off the end of ifdata and blow up.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.3-1
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems running the Linux kernel with XFS filesystems are exposed when the XFS extended-attribute scrubber processes a file containing a malformed shortform attribute fork. The issue requires corrupt on-disk inline attribute metadata with a nonzero entry count but no space for any entries.
What must occur for the buffer overrun to be triggered?
The XFS xattr scrubber must encounter a shortform attribute structure where sf->count is greater than zero while if_bytes equals the size of the shortform attribute header. Processing then calls xfs_attr_sf_nextentry() despite there being no entry data available, causing it to read past if_data.
How can administrators identify potentially affected filesystem metadata?
The described condition is a shortform XFS attribute fork whose header reports one or more entries but whose recorded size contains only the header. Detection therefore depends on XFS xattr scrubbing encountering that corrupt metadata; no separate detection method is provided.