CVE-2026-74595: fscrypt: use the mount idmap for the owner check in fscrypt_ioctl_set_policy()

Published Aug 22, 2026
·
Updated

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

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

fscryptioctlsetpolicy() calls inodeownerorcapable() with &nopmntidmap 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 filemntidmap(filp) instead.

Affected Software

1 affected component
Linux Linux kernel

Event History

Aug 22, 2026
CVE Published
via MITRE·03:31 PM
Data Sourced
via MITRE·03:31 PM
Description
Data Sourced
via NVD·04:16 PM
Description

Frequently Asked Questions

1

Which systems are exposed to the incorrect permission check?

The issue affects fscrypt policy-setting operations on filesystems that support idmapped mounts, such as ext4 and f2fs, when the ioctl is issued through an idmapped mount. Systems not using an idmapped mount are not described as affected by this owner-mapping mismatch.

2

What access does an attacker need to exploit this?

An attacker needs to be able to issue the fscrypt policy-setting ioctl on a file through an idmapped mount. The flawed check can then compare their fsuid with the unmapped on-disk owner and incorrectly authorize an unrelated caller.

3

What is the practical impact of the bug?

An unrelated caller can be wrongly allowed to set an encryption policy, while the actual mapped owner can be wrongly denied with -EACCES. The problem is limited to the ownership check used by fscrypt_ioctl_set_policy().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203