{"id":"CVE-2026-99476","aliases":[],"title":"fsverity: Set S_VERITY only after rollback is no longer possible","originalDescription":"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().","severity":{"cvss":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00137,"percentile":0.03325},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Linux","range":">=f77f281b61183a5c0b87e6a4d101c70bd32c1c79, <10c13801ea38e4ced23c59052ce45acb07c5deda","fixed":"10c13801ea38e4ced23c59052ce45acb07c5deda"},{"ecosystem":"vendor","name":"Linux","range":">=f77f281b61183a5c0b87e6a4d101c70bd32c1c79, <c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b","fixed":"c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b"}],"references":[{"url":"https://git.kernel.org/stable/c/10c13801ea38e4ced23c59052ce45acb07c5deda","type":"other"},{"url":"https://git.kernel.org/stable/c/c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-22T11:19:00.918Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99476","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:48.120Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:03.120Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99476","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:33.930Z"}],"firstSeenAt":"2026-11-19T15:00:33.930Z","publishedAt":"2026-11-19T14:43:08.574Z","modifiedAt":"2026-11-22T11:16:53.593Z"}