{"api_version":"1","generated_at":"2026-11-25T00:09:36+00:00","cve":"CVE-2026-99476","urls":{"html":"https://cve.report/CVE-2026-99476","api":"https://cve.report/api/cve/CVE-2026-99476.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99476","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99476"},"summary":{"title":"fsverity: Set S_VERITY only after rollback is no longer possible","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfsverity: Set S_VERITY only after rollback is no longer possible\n\nCommit f77f281b6118 (\"fsverity: use a hashtable to find the\nfsverity_info\") changed the implementation of FS_IOC_ENABLE_VERITY to\nmake concurrent reads start going through fsverity verification slightly\nearlier than they did before.\n\nInstead of it happening when enable_verity() calls fsverity_set_info(),\nit now happens when ->end_enable_verity() sets S_VERITY.\n\nHowever, ext4 and btrfs can roll back verity after they set S_VERITY,\ncausing a use-after-free.\n\nFix that by making ext4 and btrfs set S_VERITY only after rollback is no\nlonger possible.  On failure, don't roll back S_VERITY, but do roll back\nthe filesystem-specific verity flag.\n\nAlso update enable_verity() to handle any future instances of this bug\nmore safely by warning and *not* freeing the fsverity_info.\n\nFinally, tweak some comments.  Clarify one, and move information from\nanother to its proper place in the comment for ->end_enable_verity().","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-19 15:18:02","updated_at":"2026-11-22 11:16:53"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b","name":"https://git.kernel.org/stable/c/c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/10c13801ea38e4ced23c59052ce45acb07c5deda","name":"https://git.kernel.org/stable/c/10c13801ea38e4ced23c59052ce45acb07c5deda","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99476","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99476","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f77f281b61183a5c0b87e6a4d101c70bd32c1c79 10c13801ea38e4ced23c59052ce45acb07c5deda git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f77f281b61183a5c0b87e6a4d101c70bd32c1c79 c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.0","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 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":{"cve_year":"2026","cve_id":"99476","cve":"CVE-2026-99476","epss":"0.001090000","percentile":"0.012140000","score_date":"2026-11-23","updated_at":"2026-11-24 00:07:47"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/btrfs/verity.c","fs/ext4/verity.c","fs/verity/enable.c","include/linux/fsverity.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"10c13801ea38e4ced23c59052ce45acb07c5deda","status":"affected","version":"f77f281b61183a5c0b87e6a4d101c70bd32c1c79","versionType":"git"},{"lessThan":"c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b","status":"affected","version":"f77f281b61183a5c0b87e6a4d101c70bd32c1c79","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/btrfs/verity.c","fs/ext4/verity.c","fs/verity/enable.c","include/linux/fsverity.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.0"},{"lessThan":"7.0","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","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":"7.3.2","versionStartIncluding":"7.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.0","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfsverity: Set S_VERITY only after rollback is no longer possible\n\nCommit f77f281b6118 (\"fsverity: use a hashtable to find the\nfsverity_info\") changed the implementation of FS_IOC_ENABLE_VERITY to\nmake concurrent reads start going through fsverity verification slightly\nearlier than they did before.\n\nInstead of it happening when enable_verity() calls fsverity_set_info(),\nit now happens when ->end_enable_verity() sets S_VERITY.\n\nHowever, ext4 and btrfs can roll back verity after they set S_VERITY,\ncausing a use-after-free.\n\nFix that by making ext4 and btrfs set S_VERITY only after rollback is no\nlonger possible.  On failure, don't roll back S_VERITY, but do roll back\nthe filesystem-specific verity flag.\n\nAlso update enable_verity() to handle any future instances of this bug\nmore safely by warning and *not* freeing the fsverity_info.\n\nFinally, tweak some comments.  Clarify one, and move information from\nanother to its proper place in the comment for ->end_enable_verity()."}],"metrics":[{"cvssV3_1":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - FS_IOC_ENABLE_VERITY reaches this through ext4_ioctl or btrfs_ioctl into fsverity_ioctl_enable and enable_verity. The failing step is ext4_end_enable_verity or btrfs_end_enable_verity; the caller supplies struct fsverity_enable_arg locally, and no remote protocol message carries the state that sets S_VERITY.\nAC:H - enable_verity calls fsverity_remove_info only if ext4_end_enable_verity or btrfs_end_enable_verity fails. ext4 publishes S_VERITY via ext4_set_inode_flags immediately before ext4_mark_iloc_dirty, which fails on ext4_emergency_state or an aborted journal. btrfs publishes it in finish_verity only after btrfs_start_transaction has reserved metadata, and a fatal signal returns from build_merkle_tree before either flag is set.\nPR:L - fsverity_ioctl_enable gates on file_permission(filp, MAY_WRITE), FMODE_READ, and mnt_want_write_file. Neither ext4_ioctl nor btrfs_ioctl adds a capability check for FS_IOC_ENABLE_VERITY; the ext4 verity incompat feature is a superblock flag, not a credential.\nUI:N - The caller opens its own regular file O_RDONLY, issues the ioctl, and can race a read through generic_file_read_iter or btrfs_file_read_iter, neither of which takes i_rwsem. No second user has to mount media or open the file.\nS:U - The freed object is the inode's fsverity_info in the same kernel that handled the ioctl. Exploitation is host kernel memory corruption, not a guest-to-host or IOMMU boundary crossing.\nC:H - fsverity_remove_info drops the object and fsverity_free_info kfree's tree_params.hashstate and kvfree's hash_block_verified. ext4 verity_work and btrfs end_bbio_data_read still pass that fsverity_info to fsverity_verify_bio or fsverity_verify_blocks, which read those reclaimed fields.\nI:H - is_hash_block_verified clear_bit()s vi->hash_block_verified, and fsverity_hash_block follows vi->tree_params.hash_alg, after both allocations have been freed on the failed enable path. A concurrent reader can therefore write into reclaimed memory and treat a sprayed hash_alg pointer as the algorithm descriptor.\nA:H - ext4 queues the dangling fsverity_info to verity_work, which calls fsverity_verify_bio, and btrfs end_folio_read calls fsverity_verify_folio. Dereferencing a freed hash_alg or hashstate oopses, and fsverity_hash_block hits BUG() if a reused object has an unexpected algo_id."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:08:32.361Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/10c13801ea38e4ced23c59052ce45acb07c5deda"},{"url":"https://git.kernel.org/stable/c/c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b"}],"title":"fsverity: Set S_VERITY only after rollback is no longer possible","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99476","datePublished":"2026-11-19T14:43:08.574Z","dateReserved":"2026-09-25T10:25:14.417Z","dateUpdated":"2026-11-22T11:08:32.361Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-19 15:18:02","lastModifiedDate":"2026-11-22 11:16:53","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99476","Ordinal":"1","Title":"fsverity: Set S_VERITY only after rollback is no longer possible","CVE":"CVE-2026-99476","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99476","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nfsverity: Set S_VERITY only after rollback is no longer possible\n\nCommit f77f281b6118 (\"fsverity: use a hashtable to find the\nfsverity_info\") changed the implementation of FS_IOC_ENABLE_VERITY to\nmake concurrent reads start going through fsverity verification slightly\nearlier than they did before.\n\nInstead of it happening when enable_verity() calls fsverity_set_info(),\nit now happens when ->end_enable_verity() sets S_VERITY.\n\nHowever, ext4 and btrfs can roll back verity after they set S_VERITY,\ncausing a use-after-free.\n\nFix that by making ext4 and btrfs set S_VERITY only after rollback is no\nlonger possible.  On failure, don't roll back S_VERITY, but do roll back\nthe filesystem-specific verity flag.\n\nAlso update enable_verity() to handle any future instances of this bug\nmore safely by warning and *not* freeing the fsverity_info.\n\nFinally, tweak some comments.  Clarify one, and move information from\nanother to its proper place in the comment for ->end_enable_verity().","Type":"Description","Title":"fsverity: Set S_VERITY only after rollback is no longer possible"}]}}}