{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "c3638b5b13740fa31762d414bbce8b7a694e582a"
            },
            {
              "fixed": "8c8afa6444e6bdc145d2bf2f3aeeca6da3e36b42"
            },
            {
              "fixed": "b740cc86816bbc87902ae9db74cd21abde3c8d63"
            },
            {
              "fixed": "5c80289503da3658e3df80280598c68d181eadbd"
            },
            {
              "fixed": "4aca914ac152f5d055ddcb36704d1e539ac08977"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "ff34ebaa6f6dc1eebce6a8d6f12a1566f33d00fe"
            },
            {
              "last_affected": "4f145b67c075324b13d6ae7d5abb6e7a1dbac26d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "5.10.220"
            },
            {
              "fixed": "5.11"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "5.15.154"
            },
            {
              "fixed": "5.16"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.19.0"
            },
            {
              "fixed": "6.12.91"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.33"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.0.10"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52990.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nfsnotify: fix inode reference leak in fsnotify_recalc_mask()\n\nfsnotify_recalc_mask() fails to handle the return value of\n__fsnotify_recalc_mask(), which may return an inode pointer that needs\nto be released via fsnotify_drop_object() when the connector's HAS_IREF\nflag transitions from set to cleared.\n\nThis manifests as a hung task with the following call trace:\n\n  INFO: task umount:1234 blocked for more than 120 seconds.\n  Call Trace:\n   __schedule\n   schedule\n   fsnotify_sb_delete\n   generic_shutdown_super\n   kill_anon_super\n   cleanup_mnt\n   task_work_run\n   do_exit\n   do_group_exit\n\nThe race window that triggers the iref leak:\n\n  Thread A (adding mark)              Thread B (removing mark)\n  ──────────────────────              ────────────────────────\n  fsnotify_add_mark_locked():\n    fsnotify_add_mark_list():\n      spin_lock(conn-\u003elock)\n      add mark_B(evictable) to list\n      spin_unlock(conn-\u003elock)\n    return\n\n    /* ---- gap: no lock held ---- */\n\n                                      fsnotify_detach_mark(mark_A):\n                                        spin_lock(mark_A-\u003elock)\n                                        clear ATTACHED flag on mark_A\n                                        spin_unlock(mark_A-\u003elock)\n                                        fsnotify_put_mark(mark_A)\n\n    fsnotify_recalc_mask():\n      spin_lock(conn-\u003elock)\n      __fsnotify_recalc_mask():\n        /* mark_A skipped: ATTACHED cleared */\n        /* only mark_B(evictable) remains */\n        want_iref = false\n        has_iref = true  /* not yet cleared */\n        -\u003e HAS_IREF transitions true -\u003e false\n        -\u003e returns inode pointer\n      spin_unlock(conn-\u003elock)\n      /* BUG: return value discarded!\n       * iput() and fsnotify_put_sb_watched_objects()\n       * are never called */\n\nFix this by deferring the transition true -\u003e false of HAS_IREF flag from\nfsnotify_recalc_mask() (Thread A) to fsnotify_put_mark() (thread B).",
  "id": "CVE-2026-52990",
  "modified": "2026-07-16T03:30:48.412863027Z",
  "published": "2026-06-24T16:29:04.148Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4aca914ac152f5d055ddcb36704d1e539ac08977"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5c80289503da3658e3df80280598c68d181eadbd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8c8afa6444e6bdc145d2bf2f3aeeca6da3e36b42"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b740cc86816bbc87902ae9db74cd21abde3c8d63"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52990.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-52990"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "summary": "fsnotify: fix inode reference leak in fsnotify_recalc_mask()"
}