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

fscrypt: use the mount idmap for the owner check in fscrypt_ioctl_set_policy()

fscrypt_ioctl_set_policy() calls inode_owner_or_capable() with
&nop_mnt_idmap before allowing an encryption policy to be set, instead
of the idmap of the mount the ioctl was issued on.

fscrypt is used by filesystems that support idmapped mounts (e.g. ext4,
f2fs), so on such a mount this compares the caller's fsuid against the
unmapped on-disk owner rather than the mapped owner: the actual owner
can be wrongly denied with -EACCES and an unrelated caller wrongly
allowed. Use file_mnt_idmap(filp) instead.
Published: 2026-08-22
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In earlier Linux kernel releases the kernel function fscrypt_ioctl_set_policy() performed an owner check using the &nop_mnt_idmap map instead of the idmap of the filesystem mount on which the ioctl was issued. This caused comparison of the caller's fsuid with an unmapped on-disk owner. As a result, a legitimate file owner could be denied permission while an unrelated user could be granted the right to set an encryption policy on the file. The flaw allows an attacker to mount a filesystem with idmapping enabled, invoke the ioctl, and change the encryption policy on files they do not own, thereby escalating privileges and potentially tampering with data confidentiality and integrity.

Affected Systems

Affected systems include the Linux kernel in any distribution that uses fscrypt on filesystems supporting idmapped mounts such as ext4 and f2fs. Any user who can execute the fscrypt ioctl on such mounts and has the ability to create or modify encrypted files may be impacted.

Risk and Exploitability

The vulnerability requires the attacker have access to invoke the fscrypt ioctl on a mounted filesystem that has encryption enabled and idmapping. No publicly available exploits are known and the CVE is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation would allow privilege escalation within the scope of the filesystem, affecting integrity and confidentiality of encrypted data. The lack of an EPSS score and KEV listing suggests exploitation probability is uncertain, though the symmetry of the flaw makes it potentially exploitable in environments lacking proper access controls.

Generated by OpenCVE AI on August 22, 2026 at 16:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the system to a Linux kernel version that includes the fscrypt owner‑check fix, or apply the upstream patch that changes &nop_mnt_idmap to file_mnt_idmap in fscrypt_ioctl_set_policy().
  • If a kernel update cannot be performed immediately, limit or deny the use of fscrypt ioctl by enforcing SELinux or AppArmor profiles that restrict encryption policy modifications to privileged users only.
  • Monitor filesystem activity for unexpected encryption‑policy‑setting syscalls and audit all attempts to invoke fscrypt ioctl on mounted filesystems with idmapping.

Generated by OpenCVE AI on August 22, 2026 at 16:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-269

Sat, 22 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: fscrypt: use the mount idmap for the owner check in fscrypt_ioctl_set_policy() fscrypt_ioctl_set_policy() calls inode_owner_or_capable() with &nop_mnt_idmap before allowing an encryption policy to be set, instead of the idmap of the mount the ioctl was issued on. fscrypt is used by filesystems that support idmapped mounts (e.g. ext4, f2fs), so on such a mount this compares the caller's fsuid against the unmapped on-disk owner rather than the mapped owner: the actual owner can be wrongly denied with -EACCES and an unrelated caller wrongly allowed. Use file_mnt_idmap(filp) instead.
Title fscrypt: use the mount idmap for the owner check in fscrypt_ioctl_set_policy()
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-08-22T15:31:45.649Z

Reserved: 2026-08-15T05:44:03.919Z

Link: CVE-2026-74595

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T16:16:31.817

Modified: 2026-08-22T16:16:31.817

Link: CVE-2026-74595

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T16:30:05Z

Weaknesses
  • CWE-269

    Improper Privilege Management