# CVE-2026-99175: fsnotify: prevent mark additions during connector teardown

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-10-28T10:35:29.760Z
- Modified: 2026-10-30T13:21:51.120Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

fsnotify: prevent mark additions during connector teardown

fsnotify_destroy_marks() keeps a reference to its current mark while it
drops conn->lock to destroy the mark. This stabilizes the forward-walk
cursor, but does not prevent a new mark from being inserted before it.
For example, an inotify watch re-added after IN_IGNORED sorts before the
old, detached mark for the same group. The walk can miss the replacement
and then detach the entire connector from the object.

The replacement is still on its group's marks_list and, for inotify, in
the watch IDR. The group mutex no longer protects the connector's object
from disappearing. An unprivileged fdinfo read racing the final detach
can consequently call igrab(NULL):

  BUG: KASAN: null-ptr-deref in igrab+0x24/0x100
  Write of size 4 at addr 0000000000000148
  Call Trace:
   igrab+0x24/0x100
   inotify_show_fdinfo+0x1dc/0x5e0
   seq_show+0x397/0x690

Set a DESTROYING flag under conn->lock before starting the walk, and
reject new marks on that connector with -ENOENT. The existing add-mark
error paths undo the temporary group-list entry and the backend's watch
allocation. Do not wait for teardown while holding the group mutex,
which the destroyer needs. Once the old connector is detached, an add
can install a fresh connector as before.

This closes the insertion race for all object types using the common
connector teardown, without changing the mark reference or SRCU lifetime
rules.

(As written by CVE List.)

## Affected

- Linux Linux: from 6b3f05d24d355f50f3d9814304650fcab0efb482 before f7def717c06aea7004905e4d1568c3691ef9825d; from 6b3f05d24d355f50f3d9814304650fcab0efb482 before da2f9aa89ef1b1fe7a7c6e1a8ddacd9c975e86aa; from 6b3f05d24d355f50f3d9814304650fcab0efb482 before 587d80966dcce2824f13fd32dab83bf882acf66f; from 6b3f05d24d355f50f3d9814304650fcab0efb482 before d28a460a2237220d9ccbdd3baac6eaead44e96cb; from 6b3f05d24d355f50f3d9814304650fcab0efb482 before 61133f15773b907bada651a02d9c6d38eae37c48; from 6b3f05d24d355f50f3d9814304650fcab0efb482 before 952501bfc6e5e654ac4a17ec9d90c1ec614bd9f1; from 6b3f05d24d355f50f3d9814304650fcab0efb482 before 472589eacdf10b5f9bd10b333957ed5291b2544b; from 6b3f05d24d355f50f3d9814304650fcab0efb482 before 36ebddca56b9d8993d6dc984fdecc748ee1f5e06; 4.12 (not affected: before 4.12; from 5.10.273 up to 5.10.*; from 5.15.224 up to 5.15.*; from 6.1.191 up to 6.1.*; from 6.6.161 up to 6.6.*; from 6.12.115 up to 6.12.*; from 6.18.59 up to 6.18.*; from 7.2.13 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/f7def717c06aea7004905e4d1568c3691ef9825d>
- <https://git.kernel.org/stable/c/da2f9aa89ef1b1fe7a7c6e1a8ddacd9c975e86aa>
- <https://git.kernel.org/stable/c/587d80966dcce2824f13fd32dab83bf882acf66f>
- <https://git.kernel.org/stable/c/d28a460a2237220d9ccbdd3baac6eaead44e96cb>
- <https://git.kernel.org/stable/c/61133f15773b907bada651a02d9c6d38eae37c48>
- <https://git.kernel.org/stable/c/952501bfc6e5e654ac4a17ec9d90c1ec614bd9f1>
- <https://git.kernel.org/stable/c/472589eacdf10b5f9bd10b333957ed5291b2544b>
- <https://git.kernel.org/stable/c/36ebddca56b9d8993d6dc984fdecc748ee1f5e06>

## Sources

- CVE List: [CVE-2026-99175](https://www.cve.org/CVERecord?id=CVE-2026-99175), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-99175](https://nvd.nist.gov/vuln/detail/CVE-2026-99175), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-99175 · Whole record: https://cve.day/CVE-2026-99175.json · Rebuilt by cve.day 2026-11-25T22:59:47.590Z
