Skip to content
Noroxi
CVE.org (no NVD analysis yet)· CNA Linux

CVE-2026-98974: xfs: fix exchange-range-to-eof file size exchange

HighCVSS 7.8 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 31/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.16% (FIRST EPSS).
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: Linux Linux 7dfb218c829c1acb626e0fe92c5fddb9a26a03e9, 952b5c99a840c2bff1f6645fd5e06e1db6ec2623, b361d32b884f8ddcb9bad5d99b69eece648f8e43.
  • Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to Linux Linux 7dfb218c829c1acb626e0fe92c5fddb9a26a03e9, 952b5c99a840c2bff1f6645fd5e06e1db6ec2623, b361d32b884f8ddcb9bad5d99b69eece648f8e43 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

In the Linux kernel, the following vulnerability has been resolved: xfs: fix exchange-range-to-eof file size exchange Norbert Szetei posted a patch containing an incomplete description of a bug in XFS_IOC_EXCHANGE_RANGE's TO_EOF flag. The bug tricks exchange-range into modifying a file so that it has shared blocks starting beyond EOF, which is never allowed because files never have written data beyond EOF, and you can only share written data blocks. This is key to all the incorrect behavior that follows. Eventually I got from Norbert a description of what's going wrong: > Fair. Here it is with physical block numbers, 4k blocks. peer is the file > that gets rewritten and file1 is the one that ends up with the flag > cleared. > > Start, nothing shared: > > peer size 4096 -> [100] > file1 size 12288 -> [200] [201] [202] > donor1 size 4096 -> [300] > donor2 size 4096 -> [400] > > 1. FICLONERANGE peer's block into file1's middle slot: > > peer size 4096 -> [100] > file1 size 12288 -> [200] [100] [202] reflink flag set > ^^^^^ both files own block 100 > > 2. XFS_IOC_EXCHANGE_RANGE file1 against donor1, file1_offset 0, > file2_offset 8192, length 0, TO_EOF. One block is exchanged, and the sizes > are exchanged with it: > > file1 size 4096 -> [200] [100] [300] reflink flag set > ^^^^^^^^^^^ still owned, now past the size > donor1 size 12288 -> [202] > > file1 says it is one block long while it still owns three. Nothing was > unmapped. file2_offset is block 2, so this exchange cannot clear a flag. > > 3. XFS_IOC_EXCHANGE_RANGE file1 against donor2, both offsets 0, length 4096. > By i_disk_size this is two one-block files exchanging everything, so > xmi_can_exchange_reflink_flags() agrees and the flag is cleared: > > file1 size 4096 -> [400] [100] [300] reflink flag CLEARED > donor2 size 4096 -> [200] > > Block 100 is still shared with peer. > > 4. pwrite(file1, 4096, 4096), which is file1's second slot, block 100. > xfs_is_cow_inode(file1) is false, so no CoW: > > peer size 4096 -> [100] same block, new contents > > Block 100 is the only one that matters here. PoC below, it reads a file > called peer in the current directory. The filesystem needs reflink and > exchange-range, which mkfs.xfs 7.x turns on by default. So yes, TO_EOF is screwing up the file size even if it's actually exchanging the data block correctly. The following is the intended behavior of XFS_EXCHANGE_RANGE_TO_EOF, as described by its manpage: "Ignore the length parameter. All bytes in file1_fd from file1_offset to EOF are moved to file2_fd, and file2's size is set to (file2_offset+(file1_length-file1_offset)). Meanwhile, all bytes in file2 from file2_offset to EOF are moved to file1 and file1's size is set to (file1_offset+(file2_length-file2_offset))." In other words, if we only exchange a portion of the file data, then we should only exchange the portion of the file size that relates to the exchanged data. Unfortunately, the code swaps the ondisk file size and the incore file sizes, which is incorrect if the caller passes in a nonzero offset. Having confused the file sizes, the PoC uses a second exchange-range call on what looks like a non-reflinked single-block file. Because the file size is set incorrectly, exchange-range thinks it's exchanging the full contents of two files and clears the reflink flag on the broken file. That enables an extending write of the broken file to rewrite the shared block that's just past EOF. This has become known colloquially as refluxfs. Once the file sizes are set correctly, the second exchange-range no longer thinks that it's doing a full-contents swap, so it won't clear the reflink flag on either of its file arguments. Norbert followed up to an earlier version of this patch with a second complaint about us not handling the i_disk_size state correctly: > The offsets are bounded against the incore i_size but subtracted from > ---truncated---

Published
Oct 23, 2026
Updated
Oct 24, 2026
EPSS
0.1% · 5th percentile
CWE
—

Report tools

JSON

Action score

31

Monitor

Low priority for now.

CVSS
31 / 40 · 7.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.1%

CNA vs NVD score

NVD
—
CNA · Linux
7.8
NVD has not scored this yet; the score shown is the CNA’s.

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2026-98974

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

—

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux Linux

    • 6.10affected
    • 966ceafc7a437105ecfe1cadb3747b2965a260ca and later · before b361d32b884f8ddcb9bad5d99b69eece648f8e43affected · git
    • 966ceafc7a437105ecfe1cadb3747b2965a260ca and later · before cf32eb20dfacfd2e92ce86ba1fece9ae5f98a7d8affected · git
    • 966ceafc7a437105ecfe1cadb3747b2965a260ca and later · before 952b5c99a840c2bff1f6645fd5e06e1db6ec2623affected · git
    • 966ceafc7a437105ecfe1cadb3747b2965a260ca and later · before 7dfb218c829c1acb626e0fe92c5fddb9a26a03e9affected · git
    • before 6.10not affected · semver
    • 6.12.114 and later · up to and including 6.12.*not affected · semver
    • 6.18.57 and later · up to and including 6.18.*not affected · semver
    • 7.2.11 and later · up to and including 7.2.*not affected · semver
    • 7.3 and laternot affected · original_commit_for_fix

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:10kernelbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64kbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-corebefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-debugbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-debug-corebefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-debug-develbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-debug-devel-matchedbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-debug-modulesbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-debug-modules-corebefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-debug-modules-extrabefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-develbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-devel-matchedbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-modulesbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-modules-corebefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-64k-modules-extrabefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-abi-stablelistsbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-corebefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-cross-headersbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-debugbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-debug-corebefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-debug-develbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-debug-devel-matchedbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-debug-modulesbefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2
AlmaLinux:10kernel-debug-modules-corebefore 6.12.0-211.74.1.el10_26.12.0-211.74.1.el10_2

+54

Other highest-scoring records for the same primary product.

  • CVE-2026-74705udp: fix potential use-after-free in tunnel segmentation
    40Plan
  • CVE-2026-74612veth: fix skb length accounting after XDP frag adjustment
    40Plan
  • CVE-2026-74475vxlan: use neigh_ha_snapshot() in route_shortcircuit()
    40Plan

Published before and after this one in the same product

  • ← EarlierCVE-2026-98972Oct 23, 2026 · cgroup/cpuset: Don't access cpuset_cgrp_subsys.root in is_in_v2_mode()
    0Monitor
  • ← EarlierCVE-2026-98973Oct 23, 2026 · drm/bridge: Fix unlocked list_del in drm_bridge_add()
    0Monitor
  • Later →CVE-2026-98975Oct 23, 2026 · xfs: stop exchanging reflink flags when exchanging mappings
    31Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux7dfb218c829c1acb626e0fe92c5fddb9a26a03e9Vendor (CNA)
Linux Linux952b5c99a840c2bff1f6645fd5e06e1db6ec2623Vendor (CNA)
Linux Linuxb361d32b884f8ddcb9bad5d99b69eece648f8e43Vendor (CNA)
Linux Linuxcf32eb20dfacfd2e92ce86ba1fece9ae5f98a7d8Vendor (CNA)
almalinux:kernel6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k-core6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k-debug6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k-debug-core6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k-debug-devel6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k-debug-devel-matched6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k-debug-modules6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k-debug-modules-core6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k-debug-modules-extra6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k-devel6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:kernel-64k-devel-matched6.12.0-211.74.1.el10_2 · AlmaLinux:10Package registry (OSV)
debian:linux6.12.115-2 · Debian:13Package registry (OSV)
debian:linux7.2.11-1 · Debian:14Package registry (OSV)
rocky linux:kernel0:6.12.0-211.74.1.el10_2 · Rocky Linux:10Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. Fix recordedsame day
  3. TodayNov 12, 2026+20 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Not on record for this CVE: patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

Weakness class (CWE)

—

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. CVSS— → 7.8
  2. Severity— → high
  3. Exploit maturity— → none
  4. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records