VDB

CVE-2026-52990

CVE-2026-52990 PUBLISHED

fsnotify: fix inode reference leak in fsnotify_recalc_mask()

Reported by linux · Published June 24, 2026

In the Linux kernel, the following vulnerability has been resolved: fsnotify: fix inode reference leak in fsnotify_recalc_mask() fsnotify_recalc_mask() fails to handle the return value of __fsnotify_recalc_mask(), which may return an inode pointer that needs to be released via fsnotify_drop_object() when the connector's HAS_IREF flag transitions from set to cleared. This manifests as a hung task with the following call trace: INFO: task umount:1234 blocked for more than 120 seconds. Call Trace: __schedule schedule fsnotify_sb_delete generic_shutdown_super kill_anon_super cleanup_mnt task_work_run do_exit do_group_exit The race window that triggers the iref leak: Thread A (adding mark) Thread B (removing mark) ────────────────────── ──────────────────────── fsnotify_add_mark_locked(): fsnotify_add_mark_list(): spin_lock(conn->lock) add mark_B(evictable) to list spin_unlock(conn->lock) return /* ---- gap: no lock held ---- */ fsnotify_detach_mark(mark_A): spin_lock(mark_A->lock) clear ATTACHED flag on mark_A spin_unlock(mark_A->lock) fsnotify_put_mark(mark_A) fsnotify_recalc_mask(): spin_lock(conn->lock) __fsnotify_recalc_mask(): /* mark_A skipped: ATTACHED cleared */ /* only mark_B(evictable) remains */ want_iref = false has_iref = true /* not yet cleared */ -> HAS_IREF transitions true -> false -> returns inode pointer spin_unlock(conn->lock) /* BUG: return value discarded! * iput() and fsnotify_put_sb_watched_objects() * are never called */ Fix this by deferring the transition true -> false of HAS_IREF flag from fsnotify_recalc_mask() (Thread A) to fsnotify_put_mark() (thread B).

Fixed versions

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

PackageEcosystemFixed in
kernel-livepatch-6.18.33-63.124Amazon Linux1:1.0-0.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.33-63.124.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.92-122.166.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.92-122.166.amzn2023
bpftool6.12Amazon Linux1:6.12.92-122.166.amzn2023
python3-perf6.18Amazon Linux1:6.18.33-63.124.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.92-122.166.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.33-63.124.amzn2023
perf6.18Amazon Linux1:6.18.33-63.124.amzn2023
kernel6.18-modules-extra-commonAmazon Linux1:6.18.33-63.124.amzn2023
kernel6.18-toolsAmazon Linux1:6.18.33-63.124.amzn2023
kernel6.18-headersAmazon Linux1:6.18.33-63.124.amzn2023

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

Affected products

VendorProductVersions
LinuxLinuxc3638b5b13740fa31762d414bbce8b7a694e582a, c3638b5b13740fa31762d414bbce8b7a694e582a, c3638b5b13740fa31762d414bbce8b7a694e582a
LinuxLinux5.19, 0, 6.1.191
amazon:2023kernel-livepatch-6.18.33-63.1240
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-tools-devel0
amazon:2023bpftool6.120
amazon:2023python3-perf6.180
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.18-tools-devel0
amazon:2023perf6.180
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-headers0
amazon:2023kernel6.180
amazon:2023kernel-livepatch-6.12.92-122.1660
amazon:2023perf6.120
LinuxLinux7.1, *, *
amazon:2023kernel6.12-devel0
amazon:2023bpftool6.180

…and 6 more

Timeline

  • Jun 24, 2026 CVE Published
  • Jun 25, 2026 Coalition ESS Score
  • Jun 26, 2026 EPSS Score (10 in total, the first dated here)
  • Aug 11, 2026 Distribution Patch (63 in total, the first dated here)
  • Aug 11, 2026 Security Advisory (63 in total, the first dated here)
  • Nov 6, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-52990
vulnetix vdb fixes CVE-2026-52990

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-52990/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 ›