FKIE_CVE-2026-89595
Vulnerability from fkie_nvd - Published: 2026-09-11 20:19 - Updated: 2026-09-14 13:19
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved:
fsnotify: Fix stale object mask after concurrent mark updates
When a mark gets a new event bit, fanotify and inotify may avoid
recalculating the object mask if the cached aggregate already contains that
bit. This is racy with a recalculation triggered by a concurrent update to
another mark on the same connector.
The concurrent scan can read the mark before the new bit is added, while
the updater reads the old aggregate before that scan publishes its result.
The updater then skips recalculation and the scan publishes a mask without
the bit, leaving the object mask stale after both updates complete.
This can be reproduced with two fanotify groups watching the same inode:
one thread removes FAN_MODIFY from one existing mark while another thread
adds FAN_MODIFY to the other mark. After both fanotify_mark() calls return,
writes can fail to produce FAN_MODIFY for the group whose mark now contains
the bit. This was reproduced on an unmodified v6.12.95 kernel. The
equivalent inotify interleaving loses IN_MODIFY events.
For normal fanotify additions, recalculate whenever the raw mark mask
changes. The normal mask is not cleared asynchronously, so an unchanged
addition cannot introduce missing interest. Always recalculate ignore-mask
updates because FS_MODIFY handling may clear the ignore mask without taking
mark->lock, making snapshot comparisons unreliable.
Always recalculate after updating an existing inotify watch. Its replace
path temporarily sets mark->mask to zero, so a concurrent scan can observe
zero even when the old and final masks are equal. Assigning the replacement
mask directly would avoid the transient zero, but existing-watch updates
are infrequent, so unconditional recalculation is simpler.
References
Impacted products
| Vendor | Product | Version |
|---|
{
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/notify/fanotify/fanotify_user.c",
"fs/notify/inotify/inotify_user.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "27d172b60eeca5c8fd51b246f9fb959067cf102b",
"status": "affected",
"version": "63c882a05416e18de6fb59f7dd6da48f3bbe8273",
"versionType": "git"
},
{
"lessThan": "2f09f08d602647fc4e328fc27ecb4c3008d10338",
"status": "affected",
"version": "63c882a05416e18de6fb59f7dd6da48f3bbe8273",
"versionType": "git"
},
{
"lessThan": "de75382d6e354b2b055df4896d12a91969f12090",
"status": "affected",
"version": "63c882a05416e18de6fb59f7dd6da48f3bbe8273",
"versionType": "git"
},
{
"lessThan": "343ae18e960f6c5f1d34d58a69750c62cd463228",
"status": "affected",
"version": "63c882a05416e18de6fb59f7dd6da48f3bbe8273",
"versionType": "git"
},
{
"lessThan": "92289e66639f62abc754c6f3bce5ead7e98e4ee2",
"status": "affected",
"version": "63c882a05416e18de6fb59f7dd6da48f3bbe8273",
"versionType": "git"
},
{
"lessThan": "947400af98b9e63841929d079a2c3ea0a8ba227b",
"status": "affected",
"version": "63c882a05416e18de6fb59f7dd6da48f3bbe8273",
"versionType": "git"
},
{
"lessThan": "ac8d8b599d466a129122bded77db3d0f8b96b461",
"status": "affected",
"version": "63c882a05416e18de6fb59f7dd6da48f3bbe8273",
"versionType": "git"
},
{
"lessThan": "e422777fdd4746de1109575c51e65038d4c5c1be",
"status": "affected",
"version": "63c882a05416e18de6fb59f7dd6da48f3bbe8273",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/notify/fanotify/fanotify_user.c",
"fs/notify/inotify/inotify_user.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "2.6.31"
},
{
"lessThan": "2.6.31",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.270",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.221",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.188",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.157",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.110",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.51",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.2.*",
"status": "unaffected",
"version": "7.2.4",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.3-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\nfsnotify: Fix stale object mask after concurrent mark updates\n\nWhen a mark gets a new event bit, fanotify and inotify may avoid\nrecalculating the object mask if the cached aggregate already contains that\nbit. This is racy with a recalculation triggered by a concurrent update to\nanother mark on the same connector.\n\nThe concurrent scan can read the mark before the new bit is added, while\nthe updater reads the old aggregate before that scan publishes its result.\nThe updater then skips recalculation and the scan publishes a mask without\nthe bit, leaving the object mask stale after both updates complete.\n\nThis can be reproduced with two fanotify groups watching the same inode:\none thread removes FAN_MODIFY from one existing mark while another thread\nadds FAN_MODIFY to the other mark. After both fanotify_mark() calls return,\nwrites can fail to produce FAN_MODIFY for the group whose mark now contains\nthe bit. This was reproduced on an unmodified v6.12.95 kernel. The\nequivalent inotify interleaving loses IN_MODIFY events.\n\nFor normal fanotify additions, recalculate whenever the raw mark mask\nchanges. The normal mask is not cleared asynchronously, so an unchanged\naddition cannot introduce missing interest. Always recalculate ignore-mask\nupdates because FS_MODIFY handling may clear the ignore mask without taking\nmark-\u003elock, making snapshot comparisons unreliable.\n\nAlways recalculate after updating an existing inotify watch. Its replace\npath temporarily sets mark-\u003emask to zero, so a concurrent scan can observe\nzero even when the old and final masks are equal. Assigning the replacement\nmask directly would avoid the transient zero, but existing-watch updates\nare infrequent, so unconditional recalculation is simpler."
}
],
"id": "CVE-2026-89595",
"lastModified": "2026-09-14T13:19:13.490",
"metrics": {},
"published": "2026-09-11T20:19:44.177",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/27d172b60eeca5c8fd51b246f9fb959067cf102b"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/2f09f08d602647fc4e328fc27ecb4c3008d10338"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/343ae18e960f6c5f1d34d58a69750c62cd463228"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/92289e66639f62abc754c6f3bce5ead7e98e4ee2"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/947400af98b9e63841929d079a2c3ea0a8ba227b"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/ac8d8b599d466a129122bded77db3d0f8b96b461"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/de75382d6e354b2b055df4896d12a91969f12090"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/e422777fdd4746de1109575c51e65038d4c5c1be"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
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…
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…