CVE-2026-98975·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: xfs: stop exchanging reflink flags when exchanging mappings When an exchange covers both files from offset 0 to i_disk_size, xmi_can_exchange_reflink_flags() assumes every mapping moved and hands the reflink flag over to the other file. That assumption is wrong. A file can still own shared blocks past i_disk_size, e.g. after EXCHANGE_RANGE_TO_EOF sets a smaller size without unmapping anything. The flag is cleared anyway, and the next write to such a block happens in place instead of CoW, corrupting the other file that shares it. Commit a23eca88448e ("xfs: fix exchange-range reflink flag clearing issue with INO1_WRITTEN") fixed one instance of this. Rather than add another special case, stop moving the flags. xfs_exchmaps_ensure_reflink() already sets the flag on both inodes before the exchange, so both just keep it. Nothing sets CLEAR_INO{1,2}_REFLINK anymore. Intents logged by older kernels may still carry them; recovery already masks them off, so they stay in the log format mask and are ignored. XFS_IOC_SWAPEXT has the same problem: it moves the reflink flag from one inode to the other along with the extents. Just removing that is not enough here: the exchange path flags both inodes up front in xfs_exchmaps_ensure_reflink(), but swapext has no such step, so the inode receiving the shared extents would be left without the flag. Set it on both inodes instead, and make sure both have a CoW fork, since an inode with the reflink flag is expected to have one. The flag now stays until FALLOC_FL_UNSHARE_RANGE, xfs_scrub, or a truncate to zero removes it.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.114, 6.18.57, 7.2.11, 7.3
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.16% — higher than 5% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-98975 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.16%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
How to fix this CVE
Update your Linux kernel to a patched version to resolve a reflink flag handling issue in XFS that can cause data corruption when files share blocks. Users should upgrade to kernel 6.12.114, 6.18.57, 7.2.11, or later depending on their current stable branch, or install their distribution's patched kernel package to avoid potential file corruption during extent exchanges.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` and compare against fixed versions 6.12.114, 6.18.57, 7.2.11, or mainline 7.3
- Step 2: Verify if XFS filesystems are in use on the system with `mount | grep xfs`
- Step 3: Search system logs for data corruption indicators related to XFS operations: `sudo journalctl -u kernel --since='24 hours ago' | grep -i 'xfs\|corruption\|reflink'`
- Step 4: After kernel update, confirm the new version with `uname -r` and verify it matches or exceeds the fixed version for your branch
FAQ
What is CVE-2026-98975?
This vulnerability affects XFS reflink flag handling during extent exchanges, where the kernel incorrectly transfers reflink flags between files without validating that all shared blocks have been moved, leading to copy-on-write bypasses and potential data corruption when multiple files share blocks.
Is CVE-2026-98975 being actively exploited?
No, this vulnerability is not listed as actively exploited by CISA and no public exploits are available, though the high CVSS score of 7.8 indicates significant local impact potential.
What versions of Kernel are affected by CVE-2026-98975?
All kernel versions prior to 6.12.114 (6.12.x branch), 6.18.57 (6.18.x branch), 7.2.11 (7.2.x branch), and mainline 7.3 are affected. Affected users should upgrade within their current stable branch rather than jumping to mainline.
How do I check if my server is vulnerable to CVE-2026-98975?
Run `uname -r` to get your kernel version, then compare it against the fixed versions for your branch (6.12.114, 6.18.57, 7.2.11, or 7.3). If your version is older, your system is vulnerable if using XFS filesystems.
Does Defensia detect CVE-2026-98975?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-98975 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98975. Free for 1 server.
Get started free