fsverity: Tell LSMs about signature only after verity is enabled

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

fsverity: Tell LSMs about signature only after verity is enabled

FS_IOC_ENABLE_VERITY calls security_inode_setintegrity() before verity has finished being enabled. That's broken because enabling verity can still fail at that point, e.g. due to insufficient xattr space.

Afterwards, arbitrary contents can be written to the file, which doesn't actually have verity enabled. The in-core inode stays the same, so the LSM considers it to have verity enabled with a valid signature. (Or rather, in the case of IPE, which is the only LSM that implements security_inode_setintegrity(), it also checks IS_VERITY(), which can be bypassed by enabling verity with no signature after the file writes.)

Fix this by moving the call to security_inode_setintegrity() out of fsverity_verify_signature() and into a new function that is called from the appropriate places.

ProductVersions
Linux Linux7c373e4f1445263728d3eeab7e33e932c8f4a288 to before 17f3e9cf7fa8365eb244417958c5b12c367c8922 Affected7c373e4f1445263728d3eeab7e33e932c8f4a288 to before f1b790d81caadfc71276885fd02b93ab56c04e05 Affected7c373e4f1445263728d3eeab7e33e932c8f4a288 to before 5f0436428b871b2cc800228837ea49a44d5169ec Affected7c373e4f1445263728d3eeab7e33e932c8f4a288 to before 28d74059fddbd8ae83c7715056b303c402071f6f Affected
Linux Linux6.12 Affectedbefore 6.12 Not Affected6.12.118 through 6.12.* Not Affected6.18.64 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.