VDB

CVE-2026-89595

CVE-2026-89595 PUBLISHED

fsnotify: Fix stale object mask after concurrent mark updates

Reported by linux · Published September 11, 2026

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.

EPSS 0.22% · 12.1th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.18-toolsAmazon Linux1:6.18.51-120.162.amzn2023
perfAmazon Linux1:6.1.188-233.385.amzn2023
kernel6.12-headersAmazon Linux1:6.12.110-135.201.amzn2023
kernel-livepatch-6.18.51-120.162Amazon Linux1:1.0-0.amzn2023
python3-perf6.18Amazon Linux1:6.18.51-120.162.amzn2023
bpftool6.12Amazon Linux1:6.12.110-135.201.amzn2023
kernelAmazon Linux1:6.1.188-233.385.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.110-135.201.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.51-120.162.amzn2023
kernel-headersAmazon Linux1:6.1.188-233.385.amzn2023
kernel-develAmazon Linux1:6.1.188-233.385.amzn2023
microvm-kernel6.18Amazon Linux1:6.18.51-120.162.amzn2023

13 more packages have a fixed version. See every fix in Lookup.

Risk scores

EPSS Score
0.22%
12.1th percentile

Affected products

VendorProductVersions
LinuxLinux63c882a05416e18de6fb59f7dd6da48f3bbe8273, 63c882a05416e18de6fb59f7dd6da48f3bbe8273, 63c882a05416e18de6fb59f7dd6da48f3bbe8273
LinuxLinux2.6.31, 0, 5.10.270
amazon:2023kernel6.18-tools0
amazon:2023perf0
amazon:2023kernel6.12-headers0
amazon:2023kernel-livepatch-6.18.51-120.1620
amazon:2023python3-perf6.180
amazon:2023bpftool6.120
amazon:2023kernel0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel-headers0
amazon:2023kernel-devel0
amazon:2023microvm-kernel6.180
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023bpftool6.180
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-livepatch-6.12.110-135.2010

…and 18 more

Timeline

  • Sep 11, 2026 CVE Published
  • Sep 12, 2026 EPSS Score (15 in total, the first dated here)
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-89595
vulnetix vdb fixes CVE-2026-89595

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-89595/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›