CVE-2026-89595
fsnotify: Fix stale object mask after concurrent mark updates
Check your servers for CVE-2026-89595
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-89595 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 63c882a05416e18de6fb59f7dd6da48f3bbe8273, before 27d172b60eeca5c8fd51b246f9fb959067cf102b affected from 63c882a05416e18de6fb59f7dd6da48f3bbe8273, before 2f09f08d602647fc4e328fc27ecb4c3008d10338 affected from 63c882a05416e18de6fb59f7dd6da48f3bbe8273, before de75382d6e354b2b055df4896d12a91969f12090 affected from 63c882a05416e18de6fb59f7dd6da48f3bbe8273, before 343ae18e960f6c5f1d34d58a69750c62cd463228 affected from 63c882a05416e18de6fb59f7dd6da48f3bbe8273, before 92289e66639f62abc754c6f3bce5ead7e98e4ee2 affected from 63c882a05416e18de6fb59f7dd6da48f3bbe8273, before 947400af98b9e63841929d079a2c3ea0a8ba227b affected from 63c882a05416e18de6fb59f7dd6da48f3bbe8273, before ac8d8b599d466a129122bded77db3d0f8b96b461 affected from 63c882a05416e18de6fb59f7dd6da48f3bbe8273, before e422777fdd4746de1109575c51e65038d4c5c1be
Other versions: unaffected
|
| Linux |
affected 2.6.31 unaffected before 2.6.31 unaffected from 5.10.270 up to and including 5.10.* unaffected from 5.15.221 up to and including 5.15.* unaffected from 6.1.188 up to and including 6.1.* unaffected from 6.6.157 up to and including 6.6.* unaffected from 6.12.110 up to and including 6.12.* unaffected from 6.18.51 up to and including 6.18.* unaffected from 7.2.4 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-89595 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89595
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-89595
trivy image --scanners vuln IMAGE | grep CVE-2026-89595
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/27d172b60eeca5c8fd51b246f9fb959067cf102b git.kernel.org
- https://git.kernel.org/stable/c/2f09f08d602647fc4e328fc27ecb4c3008d10338 git.kernel.org
- https://git.kernel.org/stable/c/de75382d6e354b2b055df4896d12a91969f12090 git.kernel.org
- https://git.kernel.org/stable/c/343ae18e960f6c5f1d34d58a69750c62cd463228 git.kernel.org
- https://git.kernel.org/stable/c/92289e66639f62abc754c6f3bce5ead7e98e4ee2 git.kernel.org
- https://git.kernel.org/stable/c/947400af98b9e63841929d079a2c3ea0a8ba227b git.kernel.org
- https://git.kernel.org/stable/c/ac8d8b599d466a129122bded77db3d0f8b96b461 git.kernel.org
- https://git.kernel.org/stable/c/e422777fdd4746de1109575c51e65038d4c5c1be git.kernel.org
Source: the record CVE-2026-89595 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse