{"id":"CVE-2026-99476","published":"2026-11-19T14:43:08Z","modified":"2026-11-22T11:08:32Z","title":"fsverity: Set S_VERITY only after rollback is no longer possible","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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().","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00109,"percentile":0.01214,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/10c13801ea38e4ced23c59052ce45acb07c5deda","tags":[]},{"url":"https://git.kernel.org/stable/c/c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b","tags":[]}],"priority":{"score":5.1,"factors":[{"name":"EPSS percentile","points":0.24},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f77f281b61183a5c0b87e6a4d101c70bd32c1c79, < 10c13801ea38e4ced23c59052ce45acb07c5deda",">= f77f281b61183a5c0b87e6a4d101c70bd32c1c79, < c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b"]},{"vendor":"Linux","product":"Linux","versions":["7.0"]}],"euvd":{"id":"EUVD-2026-130149","exploited":false,"provenance":"source"}}