fs,fsverity: remove check for fsverity being enabled in setattr_prepare()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fs,fsverity: remove check for fsverity being enabled in setattr_prepare()
The check that fs-verity is available in the kernel is not necessary here. Filesystems could have fsverity files even without fs-verity enabled. In that case, truncate on fsverity file will succeed, what this check is trying to prevent.
From the CVE record · Linux
The Linux kernel can allow truncation of an fs-verity file when fs-verity is not enabled in the kernel. A local user who can truncate such a file could modify it despite the check intended to prevent truncation; the input does not specify authentication requirements or additional user interaction.
Teams running Linux kernels with filesystems that contain fs-verity files should check whether their kernel is affected; no affected versions are specified.