# CVE-2026-98975: xfs: stop exchanging reflink flags when exchanging mappings

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **Published:** 2026-10-23T12:19:48.379Z
- **Modified:** 2026-10-24T14:16:50.093Z

## Who should check

- Anyone running Linux \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< 1fa2f3a7ef7ee0f2503a4b0afe24bc8c9d0820be; \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< 7d3b9b2c9dc57f93f36c716ab752548cb4db9900; \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< 4756c94260e69ce42612b8220c3614f02f7a11d5; \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< d84d6c1a7f1e2de9e601703a326a4c1b7b421943
- Anyone running Linux 4.9

## Description

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.

## Affected and fixed versions

- Linux: \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< 1fa2f3a7ef7ee0f2503a4b0afe24bc8c9d0820be; \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< 7d3b9b2c9dc57f93f36c716ab752548cb4db9900; \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< 4756c94260e69ce42612b8220c3614f02f7a11d5; \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< d84d6c1a7f1e2de9e601703a326a4c1b7b421943 (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98975. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98975.md
Affected: Linux >= f0bc4d134b46607967bda1205ce3226a1bd95f42, < 1fa2f3a7ef7ee0f2503a4b0afe24bc8c9d0820be; >= f0bc4d134b46607967bda1205ce3226a1bd95f42, < 7d3b9b2c9dc57f93f36c716ab752548cb4db9900; >= f0bc4d134b46607967bda1205ce3226a1bd95f42, < 4756c94260e69ce42612b8220c3614f02f7a11d5; >= f0bc4d134b46607967bda12…
Fixed in: Linux 1fa2f3a7ef7ee0f2503a4b0afe24bc8c9d0820be, Linux 7d3b9b2c9dc57f93f36c716ab752548cb4db9900, Linux 4756c94260e69ce42612b8220c3614f02f7a11d5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98975 being exploited?

There is no confirmed exploitation: CVE-2026-98975 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98975?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-98975?

Linux \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< 1fa2f3a7ef7ee0f2503a4b0afe24bc8c9d0820be; \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< 7d3b9b2c9dc57f93f36c716ab752548cb4db9900; \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< 4756c94260e69ce42612b8220c3614f02f7a11d5; \>= f0bc4d134b46607967bda1205ce3226a1bd95f42, \< d84d6c1a7f1e2de9e601703a326a4c1b7b421943; Linux 4.9.

### Is there a fix for CVE-2026-98975?

Yes. Fixed in Linux 1fa2f3a7ef7ee0f2503a4b0afe24bc8c9d0820be, Linux 7d3b9b2c9dc57f93f36c716ab752548cb4db9900, Linux 4756c94260e69ce42612b8220c3614f02f7a11d5. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98975?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/1fa2f3a7ef7ee0f2503a4b0afe24bc8c9d0820be>
- other: <https://git.kernel.org/stable/c/7d3b9b2c9dc57f93f36c716ab752548cb4db9900>
- other: <https://git.kernel.org/stable/c/4756c94260e69ce42612b8220c3614f02f7a11d5>
- other: <https://git.kernel.org/stable/c/d84d6c1a7f1e2de9e601703a326a4c1b7b421943>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98975>

HTML: <https://flawdb.com/CVE-2026-98975> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98975>
