CVE-2026-99476 (GCVE-0-2026-99476)
Vulnerability from cvelistv5 – Published: 2026-11-19 14:43 – Updated: 2026-11-22 11:08
VLAI
EPSS
VEX
Title
fsverity: Set S_VERITY only after rollback is no longer possible
Summary
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().
Severity
Assigner
References
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
f77f281b61183a5c0b87e6a4d101c70bd32c1c79 , < 10c13801ea38e4ced23c59052ce45acb07c5deda
(git)
Affected: f77f281b61183a5c0b87e6a4d101c70bd32c1c79 , < c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b (git) |
|
| Linux | Linux |
Affected:
7.0
Unaffected: 0 , < 7.0 (semver) Unaffected: 7.3.2 , ≤ 7.3.* (semver) Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix) |
{
"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 -\u003eend_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\u0027t 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 -\u003eend_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\u0027s 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\u0027s tree_params.hashstate and kvfree\u0027s 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-\u003ehash_block_verified, and fsverity_hash_block follows vi-\u003etree_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",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-99476",
"date": "2026-11-22",
"epss": "0.00156",
"percentile": "0.04716"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"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"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"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 -\u003eend_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\u0027t 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 -\u003eend_enable_verity()."
}
],
"id": "CVE-2026-99476",
"lastModified": "2026-11-22T11:16:53.593",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "HIGH",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.0,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.0,
"impactScore": 5.9,
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary"
}
]
},
"published": "2026-11-19T15:18:02.143",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/10c13801ea38e4ced23c59052ce45acb07c5deda"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/c349b233d6ab0fc3517401a1e2d36f5f90eb8c9b"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-22T11:33:40+00:00",
"cve": "CVE-2026-99476",
"id": "CVE-2026-99476",
"initial_release_date": "2026-11-19T14:43:08.574000+00:00",
"product_status:known_not_affected": "204",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: kernel: Use-after-free in fsverity during error rollback",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99476.json",
"version": "3"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…