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.
Published: 2026-07-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel introduced an issue in which file ownership checks performed by the mm subsystem used the nop_mnt_idmap instead of the correct mount‑specific idmap. This caused owner_or_capable() evaluations to fail when a file owned by one UID on disk was translated to a different UID via an idmapped mount, potentially denying legitimate access. Although the case is described as benign for normal memory page‑out operations, it creates a serious flaw where operations requiring correct permission checks may fail, exposing the system to denial‑of‑service or privilege‑escalation vectors. The vulnerability arises from improper handling of ID mappings, resulting in an inconsistent enforcement of file ownership semantics. This flaw corresponds to CWE‑283 (Improper Access Control).

Affected Systems

All Linux kernel installations that have not incorporated the patch commit for this issue are vulnerable. This includes the stock kernel across major distributions where the relevant code paths are compiled, as the changes affect the generic mm layer. Exact affected kernel versions are not specified in the advisory, but any release prior to the commit that introduced the file_owner_or_capable() fix remains at risk.

Risk and Exploitability

The EPSS score is less than 1%, indicating a very low predicted exploitation probability. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector requires the attacker to have the ability to create or manipulate idmapped mounts, which typically necessitates kernel‑level or root privilege. Once that capability is available, the attacker could force failed authorization checks on files whose ownership differs by idmap translation, potentially disrupting legitimate operations or extracting privileged access. The practical risk is mitigated by the low EPSS and the requirement of elevated privileges, yet still presents a non‑negligible threat in high‑security environments.

Generated by OpenCVE AI on August 13, 2026 at 10:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a kernel release that includes the file_owner_or_capable() patch
  • If patching immediately is not possible, restrict the use of idmapped mounts by disabling them or limiting mount privileges (e.g., using the "nodev" or "nosuid" options and ensuring only trusted users can create such mounts).
  • Implement additional kernel hardening measures such as SELinux, AppArmor, or Linux Security Modules to enforce file access controls independently of the kernel’s internal idmap logic.

Generated by OpenCVE AI on August 13, 2026 at 10:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Wed, 12 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.2:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.2:rc2:*:*:*:*:*:*

Sat, 01 Aug 2026 02:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-284

Wed, 29 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-283
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Sun, 26 Jul 2026 02:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-284

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
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.
Title mm: do file ownership checks with the proper mount idmap
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-25T08:49:32.570Z

Reserved: 2026-07-19T15:36:31.778Z

Link: CVE-2026-64294

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-07-25T10:17:10.160

Modified: 2026-08-12T15:05:00.887

Link: CVE-2026-64294

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64294 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T10:30:04Z

Weaknesses