CVE-2026-43187
XFS Filesystem Attribute Leaf Freemap Corruption
Publication date: 2026-05-06
Last updated on: 2026-05-06
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux_kernel | xfs | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's XFS filesystem code related to extended attributes (xattr). Specifically, it involves the handling of freemap entries in the attribute leaf block. A freemap is used to track free space within the leaf block, but due to a bug, zero-length freemap entries with nonzero base values can be left behind.
When new xattr entries are added, the code can fail to properly update these freemap entries, causing overlapping entries with the same base but different sizes. This can lead to allocation of new xattr entries on top of existing ones, potentially causing data loss.
The fix involves zeroing out the base of any freemap entry that has zero size to prevent confusion and ensure proper free space tracking.
How can this vulnerability impact me? :
This vulnerability can lead to data loss because the filesystem may allocate new extended attribute entries on top of existing ones due to incorrect free space tracking.
Such data corruption can affect the integrity of file metadata stored in extended attributes, potentially causing system instability or loss of important file information.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability has been resolved by eliminating the possibility of confusion caused by zero-length freemap entries with nonzero bases in the xfs attribute leaf freemap.
Immediate mitigation involves updating the Linux kernel to a version that includes the fix for this issue, which zeroes out the base of any freemap entry that has zero size.
Because the freemap is not a complete index of free space, if a failure to find free space occurs, block compaction will be triggered to regenerate the freemap, preventing data loss.