CVE-2026-98974: xfs: fix exchange-range-to-eof file size exchange
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
Action score
31
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.
Is your version affected? Check itNoroxi 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 helpAffected 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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:10 | kernel | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-core | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-core | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-devel | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-devel-matched | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-modules | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-modules-core | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-modules-extra | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-devel | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-devel-matched | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-modules | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-modules-core | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-64k-modules-extra | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-abi-stablelists | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-core | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-cross-headers | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-debug | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-debug-core | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-debug-devel | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-debug-devel-matched | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-debug-modules | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
| AlmaLinux:10 | kernel-debug-modules-core | before 6.12.0-211.74.1.el10_2 | 6.12.0-211.74.1.el10_2 |
+54
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-74705udp: fix potential use-after-free in tunnel segmentation40Plan
- CVE-2026-74612veth: fix skb length accounting after XDP frag adjustment40Plan
- 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 mappings31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 7dfb218c829c1acb626e0fe92c5fddb9a26a03e9 | Vendor (CNA) |
| Linux Linux | 952b5c99a840c2bff1f6645fd5e06e1db6ec2623 | Vendor (CNA) |
| Linux Linux | b361d32b884f8ddcb9bad5d99b69eece648f8e43 | Vendor (CNA) |
| Linux Linux | cf32eb20dfacfd2e92ce86ba1fece9ae5f98a7d8 | Vendor (CNA) |
| almalinux:kernel | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k-core | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k-debug | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k-debug-core | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k-debug-devel | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k-debug-devel-matched | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules-core | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules-extra | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k-devel | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-64k-devel-matched | 6.12.0-211.74.1.el10_2 · AlmaLinux:10 | Package registry (OSV) |
| debian:linux | 6.12.115-2 · Debian:13 | Package registry (OSV) |
| debian:linux | 7.2.11-1 · Debian:14 | Package registry (OSV) |
| rocky linux:kernel | 0:6.12.0-211.74.1.el10_2 · Rocky Linux:10 | Package 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.
- Published
- Fix recordedsame day
- TodayNov 12, 2026+20 d
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.
- TR-26-1390 · Oct 26, 2026(Linux Kernel Güvenlik Bildirimi)
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
- CVSS— → 7.8
- Severity— → high
- Exploit maturity— → none
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (3 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.