Junglewise Threat Intelligence

CVE-2026-43187: Linux Kernel XFS data loss in attr leaf freemap management

CVE-2026-43187 · Severity: high · CVSS 8.8 · Published 2026-05-06

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's XFS file system could allow for data loss or corruption. The issue stems from how the system manages free space when handling extended file attributes. If exploited, an attacker could cause the system to overwrite existing file data, potentially leading to permanent information loss or system instability.

Technical details

An integer underflow and logic error in the XFS filesystem's attribute leaf management (xfs_attr_leaf.c) can result in overlapping freemap entries. Specifically, the code can leave behind zero-length freemap entries with non-zero bases; subsequent 'setxattr' operations may fail to update these entries correctly when they begin midway through a newly appended attribute. This leads to a state where the freemap contains duplicate bases for different sizes, causing the kernel to eventually allocate new attribute name-value pairs on top of existing entry arrays. This results in silent data corruption or data loss. The fix involves zeroing out the base of any zero-sized freemap entry to prevent address matching confusion during block compaction.

Affected products

  • Linux Linux Kernel 2.6.12 to 5.10.252, 5.11 to 5.15.202, 5.16 to 6.1.165, 6.2 to 6.6.128, 6.7 to 6.12.75, 6.13 to 6.18.16, 6.19 to 6.19.6

Timeline

  • 2026-05-06: disclosed: Initial disclosure of CVE-2026-43187
  • 2026-05-06: advisory
  • 2026-01-23: patched: Fix authored by Darrick J. Wong

References

Related threats