# CVE-2026-64294: mm: do file ownership checks with the proper mount idmap

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.16% (percentile 3, 2026-11-26)
- **Published:** 2026-07-25T08:49:32.570Z
- **Modified:** 2026-11-06T17:18:46.170Z

## Who should check

- Anyone running Linux \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 7368bec565bac3e536cd43579dbde1e715e6ba61; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< b2f3d94ea310bea9d36d53e9d9b3f45e86c1d893; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 744b23aa430d52f5c8e4dbff7d71496d6643bed2; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 8344bdf0629457e532797b42d9d2bbf2a2900bbf; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 5c942ad7df75925ee166e7f0fb36892d8dde376b; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 04ba248d02d9eaa3d9077b00a6134caa75fa3e90; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< e187bc02f8fa4226d62814592cf064ee4557c470
- Anyone running Linux 5.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm: do file ownership checks with the proper mount idmap

Ever since idmapped mounts were introduced, inode ownership checks (for
side-channel protection) in mincore() and madvise(MADV\_PAGEOUT) were done
against the nop\_mnt\_idmap, which completely ignores the file's mount's
idmap.  This results in odd edgecases like:

1) mount/bind-mount with an idmap userA:userB:1
2) userB runs an owner\_or\_capable() check on file that is owned by userA
on-disk/in-memory, but owned by userB after idmap translation
3) owner\_or\_capable() mysteriously fails as the correct idmap wasn't supplied

In the case of mincore/madvise MADV\_PAGEOUT, this is usually benign,
because file\_permission(file, MAY\_WRITE) will probably succeed, as it uses
the proper idmap internally, but it does not need to be the case on e.g a
0444 file where even the owner itself doesn't have permissions to write to
it.

Since this is clearly not trivial to get right, introduce a
file\_owner\_or\_capable() that can carry the correct semantics, and switch
the various users in mm to it.

The issue was found by manual code inspection & an off-list discussion
with Jan Kara.

## Affected and fixed versions

- Linux: \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 7368bec565bac3e536cd43579dbde1e715e6ba61; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< b2f3d94ea310bea9d36d53e9d9b3f45e86c1d893; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 744b23aa430d52f5c8e4dbff7d71496d6643bed2; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 8344bdf0629457e532797b42d9d2bbf2a2900bbf; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 5c942ad7df75925ee166e7f0fb36892d8dde376b; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 04ba248d02d9eaa3d9077b00a6134caa75fa3e90; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< e187bc02f8fa4226d62814592cf064ee4557c470 (cvelist)
- Linux: 5.12 (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-64294. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64294.md
Affected: Linux >= 9caccd41541a6f7d6279928d9f971f6642c361af, < 7368bec565bac3e536cd43579dbde1e715e6ba61; >= 9caccd41541a6f7d6279928d9f971f6642c361af, < b2f3d94ea310bea9d36d53e9d9b3f45e86c1d893; >= 9caccd41541a6f7d6279928d9f971f6642c361af, < 744b23aa430d52f5c8e4dbff7d71496d6643bed2; >= 9caccd41541a6f7d6279928…
Fixed in: Linux 7368bec565bac3e536cd43579dbde1e715e6ba61, Linux 744b23aa430d52f5c8e4dbff7d71496d6643bed2, Linux 8344bdf0629457e532797b42d9d2bbf2a2900bbf, Linux 5c942ad7df75925ee166e7f0fb36892d8dde376b, Linux 04ba248d02d9eaa3d9077b00a6134caa75fa3e90

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-64294 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 7368bec565bac3e536cd43579dbde1e715e6ba61; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< b2f3d94ea310bea9d36d53e9d9b3f45e86c1d893; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 744b23aa430d52f5c8e4dbff7d71496d6643bed2; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 8344bdf0629457e532797b42d9d2bbf2a2900bbf; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 5c942ad7df75925ee166e7f0fb36892d8dde376b; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< 04ba248d02d9eaa3d9077b00a6134caa75fa3e90; \>= 9caccd41541a6f7d6279928d9f971f6642c361af, \< e187bc02f8fa4226d62814592cf064ee4557c470; Linux 5.12.

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

Yes. Fixed in Linux 7368bec565bac3e536cd43579dbde1e715e6ba61, Linux 744b23aa430d52f5c8e4dbff7d71496d6643bed2, Linux 8344bdf0629457e532797b42d9d2bbf2a2900bbf, Linux 5c942ad7df75925ee166e7f0fb36892d8dde376b, Linux 04ba248d02d9eaa3d9077b00a6134caa75fa3e90. No fix listed yet: follow the vendor advisory.

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

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

- patch: <https://git.kernel.org/stable/c/744b23aa430d52f5c8e4dbff7d71496d6643bed2>
- patch: <https://git.kernel.org/stable/c/8344bdf0629457e532797b42d9d2bbf2a2900bbf>
- patch: <https://git.kernel.org/stable/c/5c942ad7df75925ee166e7f0fb36892d8dde376b>
- patch: <https://git.kernel.org/stable/c/04ba248d02d9eaa3d9077b00a6134caa75fa3e90>
- patch: <https://git.kernel.org/stable/c/e187bc02f8fa4226d62814592cf064ee4557c470>
- other: <https://git.kernel.org/stable/c/7368bec565bac3e536cd43579dbde1e715e6ba61>
- other: <https://git.kernel.org/stable/c/b2f3d94ea310bea9d36d53e9d9b3f45e86c1d893>

## 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-64294>

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