CVE-2026-99476
published high CVSS 3.1 · 7.0fsverity: Set S_VERITY only after rollback is no longer possible
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf77f281b61183a5c0b87e6a4d101c70bd32c1c79 to < 10c13801ea38e4ced23c59052ce45acb07c5deda · f77f281b61183a5c0b87e6a4d101c70bd32c1c79 to < c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.0 (affected) · 0 to < 7.0 (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: fsverity: Set S_VERITY only after rollback is no longer possible Commit f77f281b6118 ("fsverity: use a hashtable to find the fsverity_info") changed the implementation of FS_IOC_ENABLE_VERITY to make concurrent reads start going through fsverity verification slightly earlier than they did before. Instead of it happening when enable_verity() calls fsverity_set_info(), it now happens when ->end_enable_verity() sets S_VERITY. However, ext4 and btrfs can roll back verity after they set S_VERITY, causing a use-after-free. Fix that by making ext4 and btrfs set S_VERITY only after rollback is no longer possible. On failure, don't roll back S_VERITY, but do roll back the filesystem-specific verity flag. Also update enable_verity() to handle any future instances of this bug more safely by warning and *not* freeing the fsverity_info. Finally, tweak some comments. Clarify one, and move information from another to its proper place in the comment for ->end_enable_verity().
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f77f281b61183a5c0b87e6a4d101c70bd32c1c79 to < 10c13801ea38e4ced23c59052ce45acb07c5deda (affected · git)f77f281b61183a5c0b87e6a4d101c70bd32c1c79 to < c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.0 (affected)0 to < 7.0 (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
fsverity: Set S_VERITY only after rollback is no longer possible
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 11ebaf9b3c935b05b700fefe31a7c6524faae02a23d629a54ea5329fda0a1451
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record