All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-74595

Probability of exploitation in the next 30 days: 0.09%

FIRST EPSS · 2026-11-24

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.

A flaw was found in the Linux kernel's fscrypt component. When setting an encryption policy on an idmapped mount, the fscrypt_ioctl_set_policy() function incorrectly performs an owner check. This vulnerability can lead to legitimate users being denied access to set encryption policies, while unauthorized users might be wrongly permitted to do so, resulting in an access control bypass.