CVE-2026-142791: xfs: fix buffer overflow in corrupt inline attr structure

Published Dec 3, 2026
·
Updated

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

8 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.4.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2
debian/linux<6.12.117-1
6.12.117-1
debian/linux<7.3.3-1
7.3.3-1
debian/linux
6.12.117-17.3.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.61
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1
  6. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.3-1
  7. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1Fixed in 7.3.3-1

Event History

Dec 3, 2026
CVE Published
via MITRE·03:11 AM
Data Sourced
via MITRE·03:11 AM
Description
Data Sourced
via OSV·03:11 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203