Cloudanix VulnDB

CVE-2026-64294

Medium · 5.5

CVSS

5.5

EPSS

0.2%

Published

Jul 25, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A Linux kernel bug can make some file ownership checks wrong on systems using special remapped mounts, which may weaken isolation between local users or containers.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Moderate
Impact
Data Exposure
Component
OS kernel
Class
Authorization Bypass
Remediation
Patch
Effort
Low
Patch risk
Low

What it actually does

This Linux kernel flaw causes ownership checks in memory-management paths to use the wrong mount ID mapping for files accessed through idmapped mounts. Specifically, mincore() and madvise(MADV_PAGEOUT) performed owner-or-capable checks against the default mount ID map rather than the file mount’s actual ID map. As a result, the kernel can make incorrect authorization decisions: a user who should be treated as the owner through an idmapped mount may be denied, while in some edge cases a user matching the underlying on-disk UID rather than the translated mount UID may pass checks incorrectly. The affected operations relate to page-cache residency visibility and page reclamation behavior, so the main technical risk is local authorization inconsistency and potential exposure or manipulation of memory/page-cache side-channel controls rather than remote code execution.

Why it matters to the business

The likely business impact is limited but relevant for organizations using containers, user namespaces, idmapped mounts, or multi-tenant Linux hosts. Incorrect ownership decisions can undermine isolation assumptions around file-backed memory behavior, potentially allowing local users or containerized workloads to infer page-cache activity or influence page reclamation in cases where they should not be authorized. It may also cause reliability or operational issues where legitimate mapped owners are unexpectedly denied expected behavior. The vulnerability is not currently listed in CISA KEV, has no known ransomware association, has low EPSS likelihood, and has no reported mature public exploit, so remediation should be prioritized through normal kernel maintenance unless the environment relies heavily on idmapped mounts or untrusted local/container workloads.

How an attack unfolds

An attacker needs local execution on a Linux system where idmapped mounts are present and where files are accessed through a mount whose UID/GID mapping differs from the underlying inode ownership. The attacker identifies files for which the default on-disk ownership and the idmapped ownership differ. They then invoke memory-management operations such as mincore() or madvise() with MADV_PAGEOUT against mappings of those files. Because the vulnerable kernel evaluates ownership using the default mount ID map instead of the file mount’s actual ID map, the attacker may trigger an authorization result based on the wrong identity. In favorable edge cases, this can allow access to page-cache residency information or page-out behavior that should have been restricted under the correct idmapped ownership model. Exploitation is local and situational, and there is no indication of active exploitation or named threat actors at this time.

How to fix it

Apply a Linux kernel update that includes the upstream fix changing these memory-management ownership checks to use the correct file mount ID map, including the file_owner_or_capable() semantics. Because no product-specific fixed versions were provided, use the latest security-supported kernel from the operating system vendor or distribution and confirm that the vendor advisory includes the fix for this issue. Reboot systems after kernel installation unless using a live-patching mechanism that explicitly covers this patch. As mitigations where immediate patching is not possible, reduce exposure by limiting untrusted local shell access, restricting container workloads that can use user namespaces or idmapped mounts, disabling or tightly controlling idmapped mount creation where operationally feasible, and applying least-privilege controls around CAP_SYS_ADMIN and mount namespace creation.

How to confirm the fix worked

Confirm the running kernel version is at or above the vendor-fixed release and that the active booted kernel matches the installed patched kernel. Review distribution advisories, kernel changelogs, or package metadata for references to the fix involving mm ownership checks, idmapped mounts, mincore(), madvise(MADV_PAGEOUT), or file_owner_or_capable(). Validate exposure by checking whether idmapped mounts are in use and whether untrusted users or containers can create or access them. Functional validation can include a controlled test with an idmapped mount and a file whose on-disk owner differs from the mapped owner, then verifying mincore() and madvise(MADV_PAGEOUT) authorization behavior matches the translated mount ownership rather than the underlying inode owner.

Typical attack path

  1. Obtain local code execution on a Linux host, container host, or namespace-enabled system.
  2. Identify or create an idmapped mount where the visible file owner differs from the underlying on-disk inode owner.
  3. Locate a target file where incorrect owner translation may affect mincore() or madvise(MADV_PAGEOUT) authorization checks.
  4. Map the file into memory or otherwise prepare a file-backed memory region.
  5. Call mincore() to query page residency or madvise() with MADV_PAGEOUT to influence page-cache reclamation.
  6. Use the incorrect authorization decision to infer file/page-cache activity, influence memory behavior, or test isolation boundaries across mapped identities.

How to detect it

There are no publicly known exploit artifacts, malware signatures, or threat actor campaigns associated with this issue. Detection should focus on behavioral and forensic review of local activity on systems that use idmapped mounts. Useful sources include Linux auditd syscall logs, eBPF-based syscall telemetry, container runtime logs, kernel audit records, shell history where available, and endpoint telemetry. Look for unusual combinations of idmapped mount creation followed by repeated mincore() or madvise() calls against file-backed mappings, especially by untrusted users or containerized processes. Review audit records for mount_setattr with ID-mapping attributes, user namespace creation, mount namespace creation, and repeated memory-management syscalls. Because mincore() and madvise() are legitimate in many applications, detections should be scoped to systems with idmapped mounts and correlated with unexpected users, containers, or workloads rather than treated as standalone compromise evidence.

  • mount_setattr
  • MOUNT_ATTR_IDMAP
  • mincore
  • madvise
  • MADV_PAGEOUT
  • syscall=mincore
  • syscall=madvise
  • syscall=mount_setattr
  • CLONE_NEWUSER
  • CLONE_NEWNS
  • unshare --user
  • unshare --mount

What your security team should do

  • Inventory Linux systems that use containers, user namespaces, idmapped mounts, or untrusted local workloads.
  • Prioritize patching shared container hosts, multi-user Linux servers, CI runners, build farms, and virtualization/container platforms before single-user endpoints.
  • Upgrade to the latest vendor-supported kernel containing the fix and reboot into the patched kernel.
  • Where patching is delayed, restrict untrusted users and containers from creating idmapped mounts or new user/mount namespaces where feasible.
  • Review use of CAP_SYS_ADMIN and privileged containers, since these controls often affect mount and namespace capabilities.
  • Enable or review audit logging for mount_setattr, mincore, and madvise syscall activity on high-risk multi-tenant systems if forensic visibility is required.
  • Monitor vendor advisories for exact fixed package versions and backport status for the deployed distributions.
  • Treat this as a local isolation and authorization-consistency issue rather than an internet-facing emergency, unless exposed systems host untrusted tenants or container workloads.

The record

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 packages

Ecosystem Package Introduced Fixed