{"api_version":"1","generated_at":"2026-12-03T02:58:09+00:00","cve":"CVE-2026-99850","urls":{"html":"https://cve.report/CVE-2026-99850","api":"https://cve.report/api/cve/CVE-2026-99850.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99850","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99850"},"summary":{"title":"fsverity: Explicitly require FMODE_READ to retrieve hashes","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfsverity: Explicitly require FMODE_READ to retrieve hashes\n\nThe comment in fsverity_ioctl_read_metadata(), which justifies not\nchecking for FMODE_READ, doesn't consider that the nonstandard access\nmode 3 (ioctl-only) exists.\n\nOpening an ioctl-only fd generally requires read (and write) permission.\nHowever, there are gaps with certain LSMs: an ioctl-only fd requests\nread (and write) permission via security_inode_permission, but not\nsecurity_file_open.  With certain LSMs relying on the latter, such as\nLandlock and AppArmor, an ioctl-only fd can be opened without the LSM\ngranting read (and write) permission.\n\nSince FS_IOC_READ_VERITY_METADATA returns hashes of file contents\nblocks, it should require read permission.  This also applies to\nFS_IOC_MEASURE_VERITY, which returns a hash for the whole file.\n\nMeanwhile, ioctl-only fds are a rarely-used feature, not known to be\nused with either ioctl.\n\nTherefore, just disallow these ioctls on ioctl-only file descriptors,\nsimilar to what was already done with FS_IOC_ENABLE_VERITY.\n\nMore specifically, explicitly check for FMODE_READ.  This also covers\nwrite-only fds to non-verity files which otherwise would have failed\nwith ENODATA.  This change in error code for write-only fds should be\nfine too, as these ioctls cannot be usefully used with write-only fds\nanyway, but it's worth noting as another technicality.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:18","updated_at":"2026-11-30 14:20:18"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/9fe2f9b04681b2a1e3b516395ec3631967c77114","name":"https://git.kernel.org/stable/c/9fe2f9b04681b2a1e3b516395ec3631967c77114","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bcb5330153a89af3170a18fb887f3b37305c2cbd","name":"https://git.kernel.org/stable/c/bcb5330153a89af3170a18fb887f3b37305c2cbd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/666a39fcb5c9bcb600877480b121a91f59f3744e","name":"https://git.kernel.org/stable/c/666a39fcb5c9bcb600877480b121a91f59f3744e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f1f23cb28ae75284453d3947fb97d66b7fb85d6b","name":"https://git.kernel.org/stable/c/f1f23cb28ae75284453d3947fb97d66b7fb85d6b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1acb4fd2d011c4bd6cc961095ae17361c71ff61a","name":"https://git.kernel.org/stable/c/1acb4fd2d011c4bd6cc961095ae17361c71ff61a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/02c8f665755b1f43a82b333f04e7f7c52cce9865","name":"https://git.kernel.org/stable/c/02c8f665755b1f43a82b333f04e7f7c52cce9865","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/054901c3a5c0c5be4ac4f5889a1f31133701fb2e","name":"https://git.kernel.org/stable/c/054901c3a5c0c5be4ac4f5889a1f31133701fb2e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c4b9b5e0cac400c13d02ea71b44525d68170e7bc","name":"https://git.kernel.org/stable/c/c4b9b5e0cac400c13d02ea71b44525d68170e7bc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99850","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99850","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4dd893d832cf4da5409e1fecea9c4f6452a93f2b bcb5330153a89af3170a18fb887f3b37305c2cbd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4dd893d832cf4da5409e1fecea9c4f6452a93f2b 666a39fcb5c9bcb600877480b121a91f59f3744e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4dd893d832cf4da5409e1fecea9c4f6452a93f2b f1f23cb28ae75284453d3947fb97d66b7fb85d6b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4dd893d832cf4da5409e1fecea9c4f6452a93f2b 054901c3a5c0c5be4ac4f5889a1f31133701fb2e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4dd893d832cf4da5409e1fecea9c4f6452a93f2b 9fe2f9b04681b2a1e3b516395ec3631967c77114 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4dd893d832cf4da5409e1fecea9c4f6452a93f2b 02c8f665755b1f43a82b333f04e7f7c52cce9865 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4dd893d832cf4da5409e1fecea9c4f6452a93f2b c4b9b5e0cac400c13d02ea71b44525d68170e7bc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4dd893d832cf4da5409e1fecea9c4f6452a93f2b 1acb4fd2d011c4bd6cc961095ae17361c71ff61a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["Documentation/filesystems/fsverity.rst","fs/verity/measure.c","fs/verity/read_metadata.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"bcb5330153a89af3170a18fb887f3b37305c2cbd","status":"affected","version":"4dd893d832cf4da5409e1fecea9c4f6452a93f2b","versionType":"git"},{"lessThan":"666a39fcb5c9bcb600877480b121a91f59f3744e","status":"affected","version":"4dd893d832cf4da5409e1fecea9c4f6452a93f2b","versionType":"git"},{"lessThan":"f1f23cb28ae75284453d3947fb97d66b7fb85d6b","status":"affected","version":"4dd893d832cf4da5409e1fecea9c4f6452a93f2b","versionType":"git"},{"lessThan":"054901c3a5c0c5be4ac4f5889a1f31133701fb2e","status":"affected","version":"4dd893d832cf4da5409e1fecea9c4f6452a93f2b","versionType":"git"},{"lessThan":"9fe2f9b04681b2a1e3b516395ec3631967c77114","status":"affected","version":"4dd893d832cf4da5409e1fecea9c4f6452a93f2b","versionType":"git"},{"lessThan":"02c8f665755b1f43a82b333f04e7f7c52cce9865","status":"affected","version":"4dd893d832cf4da5409e1fecea9c4f6452a93f2b","versionType":"git"},{"lessThan":"c4b9b5e0cac400c13d02ea71b44525d68170e7bc","status":"affected","version":"4dd893d832cf4da5409e1fecea9c4f6452a93f2b","versionType":"git"},{"lessThan":"1acb4fd2d011c4bd6cc961095ae17361c71ff61a","status":"affected","version":"4dd893d832cf4da5409e1fecea9c4f6452a93f2b","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["Documentation/filesystems/fsverity.rst","fs/verity/measure.c","fs/verity/read_metadata.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.4"},{"lessThan":"5.4","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfsverity: Explicitly require FMODE_READ to retrieve hashes\n\nThe comment in fsverity_ioctl_read_metadata(), which justifies not\nchecking for FMODE_READ, doesn't consider that the nonstandard access\nmode 3 (ioctl-only) exists.\n\nOpening an ioctl-only fd generally requires read (and write) permission.\nHowever, there are gaps with certain LSMs: an ioctl-only fd requests\nread (and write) permission via security_inode_permission, but not\nsecurity_file_open.  With certain LSMs relying on the latter, such as\nLandlock and AppArmor, an ioctl-only fd can be opened without the LSM\ngranting read (and write) permission.\n\nSince FS_IOC_READ_VERITY_METADATA returns hashes of file contents\nblocks, it should require read permission.  This also applies to\nFS_IOC_MEASURE_VERITY, which returns a hash for the whole file.\n\nMeanwhile, ioctl-only fds are a rarely-used feature, not known to be\nused with either ioctl.\n\nTherefore, just disallow these ioctls on ioctl-only file descriptors,\nsimilar to what was already done with FS_IOC_ENABLE_VERITY.\n\nMore specifically, explicitly check for FMODE_READ.  This also covers\nwrite-only fds to non-verity files which otherwise would have failed\nwith ENODATA.  This change in error code for write-only fds should be\nfine too, as these ioctls cannot be usefully used with write-only fds\nanyway, but it's worth noting as another technicality."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:17:38.613Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/bcb5330153a89af3170a18fb887f3b37305c2cbd"},{"url":"https://git.kernel.org/stable/c/666a39fcb5c9bcb600877480b121a91f59f3744e"},{"url":"https://git.kernel.org/stable/c/f1f23cb28ae75284453d3947fb97d66b7fb85d6b"},{"url":"https://git.kernel.org/stable/c/054901c3a5c0c5be4ac4f5889a1f31133701fb2e"},{"url":"https://git.kernel.org/stable/c/9fe2f9b04681b2a1e3b516395ec3631967c77114"},{"url":"https://git.kernel.org/stable/c/02c8f665755b1f43a82b333f04e7f7c52cce9865"},{"url":"https://git.kernel.org/stable/c/c4b9b5e0cac400c13d02ea71b44525d68170e7bc"},{"url":"https://git.kernel.org/stable/c/1acb4fd2d011c4bd6cc961095ae17361c71ff61a"}],"title":"fsverity: Explicitly require FMODE_READ to retrieve hashes","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99850","datePublished":"2026-11-30T13:17:38.613Z","dateReserved":"2026-09-25T10:25:14.438Z","dateUpdated":"2026-11-30T13:17:38.613Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:18","lastModifiedDate":"2026-11-30 14:20:18","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99850","Ordinal":"1","Title":"fsverity: Explicitly require FMODE_READ to retrieve hashes","CVE":"CVE-2026-99850","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99850","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nfsverity: Explicitly require FMODE_READ to retrieve hashes\n\nThe comment in fsverity_ioctl_read_metadata(), which justifies not\nchecking for FMODE_READ, doesn't consider that the nonstandard access\nmode 3 (ioctl-only) exists.\n\nOpening an ioctl-only fd generally requires read (and write) permission.\nHowever, there are gaps with certain LSMs: an ioctl-only fd requests\nread (and write) permission via security_inode_permission, but not\nsecurity_file_open.  With certain LSMs relying on the latter, such as\nLandlock and AppArmor, an ioctl-only fd can be opened without the LSM\ngranting read (and write) permission.\n\nSince FS_IOC_READ_VERITY_METADATA returns hashes of file contents\nblocks, it should require read permission.  This also applies to\nFS_IOC_MEASURE_VERITY, which returns a hash for the whole file.\n\nMeanwhile, ioctl-only fds are a rarely-used feature, not known to be\nused with either ioctl.\n\nTherefore, just disallow these ioctls on ioctl-only file descriptors,\nsimilar to what was already done with FS_IOC_ENABLE_VERITY.\n\nMore specifically, explicitly check for FMODE_READ.  This also covers\nwrite-only fds to non-verity files which otherwise would have failed\nwith ENODATA.  This change in error code for write-only fds should be\nfine too, as these ioctls cannot be usefully used with write-only fds\nanyway, but it's worth noting as another technicality.","Type":"Description","Title":"fsverity: Explicitly require FMODE_READ to retrieve hashes"}]}}}