{"id":"CVE-2023-53172","published":"2025-09-15T14:04:06Z","modified":"2026-05-11T19:39:39Z","title":"fsverity: reject FS_IOC_ENABLE_VERITY on mode 3 fds","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfsverity: reject FS_IOC_ENABLE_VERITY on mode 3 fds\n\nCommit 56124d6c87fd (\"fsverity: support enabling with tree block size <\nPAGE_SIZE\") changed FS_IOC_ENABLE_VERITY to use __kernel_read() to read\nthe file's data, instead of direct pagecache accesses.\n\nAn unintended consequence of this is that the\n'WARN_ON_ONCE(!(file->f_mode & FMODE_READ))' in __kernel_read() became\nreachable by fuzz tests.  This happens if FS_IOC_ENABLE_VERITY is called\non a fd opened with access mode 3, which means \"ioctl access only\".\n\nArguably, FS_IOC_ENABLE_VERITY should work on ioctl-only fds.  But\nioctl-only fds are a weird Linux extension that is rarely used and that\nfew people even know about.  (The documentation for FS_IOC_ENABLE_VERITY\neven specifically says it requires O_RDONLY.)  It's probably not\nworthwhile to make the ioctl internally open a new fd just to handle\nthis case.  Thus, just reject the ioctl on such fds for now.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0014,"percentile":0.03315,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/85c039cff3c359967cafe90443c02321e950b216","tags":[]},{"url":"https://git.kernel.org/stable/c/04839139213cf60d4c5fc792214a08830e294ff8","tags":[]}],"priority":{"score":0.7,"factors":[{"name":"EPSS percentile","points":0.66}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 56124d6c87fd749477425110d2564166621a89c4, < 85c039cff3c359967cafe90443c02321e950b216",">= 56124d6c87fd749477425110d2564166621a89c4, < 04839139213cf60d4c5fc792214a08830e294ff8"]},{"vendor":"Linux","product":"Linux","versions":["6.3"]}],"euvd":{"id":"EUVD-2023-59804","exploited":false,"provenance":"source"}}