Skip to main content

In the Linux kernel, the following vulnerability has been resolved: xfs: fix exchange-range-to-eof file size exchange Norbert Szetei posted a patch… (CVE-2026-98974)

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

Description

A vulnerability in the Linux kernel's XFS filesystem was resolved involving the XFS_IOC_EXCHANGE_RANGE ioctl with the TO_EOF flag. The flaw allowed file size inconsistencies where files could end up with shared blocks beyond EOF, which is invalid. This incorrect file size handling could lead to improper clearing of reflink flags and potential data corruption during writes. The issue was fixed by correcting how file sizes are exchanged and managed during the operation.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/23/2026, 18:58:22 UTC

Technical Analysis

The vulnerability in the Linux kernel's XFS filesystem concerns the XFS_IOC_EXCHANGE_RANGE ioctl's TO_EOF flag. The bug causes the exchange-range operation to incorrectly modify file sizes, allowing files to have shared blocks beyond EOF, which violates filesystem semantics. This occurs because the code swaps on-disk and in-core file sizes incorrectly when a nonzero offset is used. As a result, a second exchange-range call mistakenly clears the reflink flag on files that still share blocks, enabling writes to overwrite shared blocks past EOF. The patch corrects the handling of file sizes during exchange-range operations to prevent this inconsistent state and the associated data corruption risk.

Potential Impact

The vulnerability can cause files to have shared data blocks beyond their reported EOF, which is not allowed. This leads to incorrect clearing of reflink flags, enabling writes to overwrite shared blocks improperly. The impact is potential data corruption or loss due to filesystem inconsistencies. There is no indication of remote code execution or privilege escalation. No known exploits in the wild have been reported.

Mitigation Recommendations

A patch has been released to fix the incorrect file size handling in the XFS_IOC_EXCHANGE_RANGE ioctl with the TO_EOF flag. Users should apply the official Linux kernel update that includes this fix. No other mitigations are indicated or necessary once the patch is applied.

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-2g9r-fc27-29gx
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98974"]

Threat ID: 6adbaacfd73cc49347b2057a

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

Last enriched: 10/23/2026, 18:58:22 UTC

Last updated: 10/23/2026, 22:25:13 UTC

Views: 3

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