Skip to main content

In the Linux kernel, the following vulnerability has been resolved: xfs: stop exchanging reflink flags when exchanging mappings When an exchange… (CVE-2026-98975)

0
High
Published: 10/23/2026 (10/23/2026, 15:31:33 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's XFS filesystem handling was resolved that involved improper management of reflink flags during file extent exchanges. The flaw caused reflink flags to be incorrectly transferred between files during certain extent exchange operations, potentially leading to data corruption due to writes occurring in place instead of copy-on-write. The fix stops exchanging reflink flags during these operations and ensures both inodes retain the flag as appropriate. The vulnerability affects the XFS_IOC_SWAPEXT operation as well, which was corrected by setting reflink flags on both inodes and ensuring copy-on-write forks exist. The reflink flags remain set until explicitly removed by specific operations.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/23/2026, 18:57:17 UTC

Technical Analysis

The Linux kernel vulnerability CVE-2026-98975 concerns the XFS filesystem's handling of reflink flags during extent exchange operations. When exchanging extents covering files from offset 0 to i_disk_size, the function xmi_can_exchange_reflink_flags() incorrectly assumed all mappings were moved and transferred the reflink flag to the other file. However, files can own shared blocks beyond i_disk_size, which leads to clearing the reflink flag prematurely. This causes subsequent writes to shared blocks to occur in place rather than using copy-on-write, resulting in corruption of the other file sharing those blocks. The fix involves stopping the movement of reflink flags during exchanges, relying instead on xfs_exchmaps_ensure_reflink() to set flags on both inodes before exchange. For the XFS_IOC_SWAPEXT operation, the patch sets reflink flags on both inodes and ensures both have copy-on-write forks, preventing loss of reflink flags. The reflink flags now persist until removed by specific operations like FALLOC_FL_UNSHARE_RANGE, xfs_scrub, or truncation to zero.

Potential Impact

The vulnerability can lead to data corruption in files sharing reflinked extents due to improper clearing of reflink flags during extent exchange operations. Writes to shared blocks may occur in place instead of copy-on-write, corrupting data in the other file sharing those blocks. This affects the integrity of data stored on XFS filesystems using reflinks and extent exchange features.

Mitigation Recommendations

A fix has been implemented in the Linux kernel that stops exchanging reflink flags during extent exchange operations and ensures both inodes retain the reflink flag correctly. Users should update to the Linux kernel version containing commit a23eca88448e or later where this issue is resolved. No additional mitigation is required as the patch addresses the root cause.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-pxhv-6mjw-34j3
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98975"]

Threat ID: 6adbaacfd73cc49347b20569

Added to database: 10/23/2026, 18:43:27 UTC

Last enriched: 10/23/2026, 18:57:17 UTC

Last updated: 10/23/2026, 22:45:14 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses