CVE-2026-74595
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.09% (higher than 0% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 14f3db5542e62bcf6fe088a09760ac52d55306c5 before 174633a468817a49bd474bcfc9067c84e54efe68, from 14f3db5542e62bcf6fe088a09760ac52d55306c5 before 0baeb730044981f5ec5fb7d62a3763835ea606f6, from 14f3db5542e62bcf6fe088a09760ac52d55306c5 before 33b7e810ce09955aa02f3b632455cf5e7ac990a9, from 14f3db5542e62bcf6fe088a09760ac52d55306c5 before 6a67c460b12315033268dce597546984fe5739e7, from 14f3db5542e62bcf6fe088a09760ac52d55306c5 before 653e888a24c87b8bbeab44d7e558a1c1a3641088, from 14f3db5542e62bcf6fe088a09760ac52d55306c5 before 98516ba8b817f34e86bdd7a5b7a383cff75c3ddf, from 14f3db5542e62bcf6fe088a09760ac52d55306c5 before cf6c993c0feca7984797e634deba3c80342e199a, 5.12
Not affected: before 5.12, from 5.15.217 up to 5.15.*, from 6.1.184 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*, from 6.18.45 up to 6.18.*
CVE List

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: fscrypt: usar el idmap del montaje para la verificación del propietario en fscrypt_ioctl_set_policy() fscrypt_ioctl_set_policy() llama a inode_owner_or_capable() con &nop_mnt_idmap antes de permitir que se establezca una política de cifrado, en lugar del idmap del montaje en el que se emitió el ioctl. fscrypt es utilizado por sistemas de archivos que soportan montajes con idmap (p. ej., ext4, f2fs), así, en dicho montaje, esto compara el fsuid del llamador contra el propietario en disco sin mapear en lugar del propietario mapeado: el propietario real puede ser denegado erróneamente con -EACCES y un llamador no relacionado puede ser permitido erróneamente. Usar file_mnt_idmap(filp) en su lugar.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-74595 changed 2026-10-16CVE Terms of Use
NVDCVE-2026-74595 changed 2026-10-16Public domain