{
  "id": "CVE-2026-22980",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-22980",
  "published_at": "2026-01-23T15:24:02.924Z",
  "title": "nfsd: provide locking for v4_end_grace",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: provide locking for v4_end_grace\n\nWriting to v4_end_grace can race with server shutdown and result in\nmemory being accessed after it was freed - reclaim_str_hashtbl in\nparticularly.\n\nWe cannot hold nfsd_mutex across the nfsd4_end_grace() call as that is\nheld while client_tracking_op-\u003einit() is called and that can wait for\nan upcall to nfsdcltrack which can write to v4_end_grace, resulting in a\ndeadlock.\n\nnfsd4_end_grace() is also called by the landromat work queue and this\ndoesn't require locking as server shutdown will stop the work and wait\nfor it before freeing anything that nfsd4_end_grace() might access.\n\nHowever, we must be sure that writing to v4_end_grace doesn't restart\nthe work item after shutdown has already waited for it.  For this we\nadd a new flag protected with nn-\u003eclient_lock.  It is set only while it\nis safe to make client tracking calls, and v4_end_grace only schedules\nwork while the flag is set with the spinlock held.\n\nSo this patch adds a nfsd_net field \"client_tracking_active\" which is\nset as described.  Another field \"grace_end_forced\", is set when\nv4_end_grace is written.  After this is set, and providing\nclient_tracking_active is set, the laundromat is scheduled.\nThis \"grace_end_forced\" field bypasses other checks for whether the\ngrace period has finished.\n\nThis resolves a race which can result in use-after-free.",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \u003c ca97360860eb02e3ae4ba42c19b439a0fcecbf06",
          "\u003e= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \u003c e8bfa2401d4c51eca6e48e9b33c798828ca9df61",
          "\u003e= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \u003c 34eb22836e0cdba093baac66599d68c4cd245a9d",
          "\u003e= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \u003c 06600719d0f7a723811c45e4d51f5b742f345309",
          "\u003e= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \u003c ba4811c8b433bfa681729ca42cc62b6034f223b0",
          "\u003e= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \u003c 53f07d095e7e680c5e4569a55a019f2c0348cdc6",
          "\u003e= 7f5ef2e900d9462bf9cffaf6bb246ed87a20a6d6, \u003c 2857bd59feb63fcf40fe4baf55401baea6b4feb4"
        ],
        "fixed_in": [
          "ca97360860eb02e3ae4ba42c19b439a0fcecbf06",
          "e8bfa2401d4c51eca6e48e9b33c798828ca9df61",
          "34eb22836e0cdba093baac66599d68c4cd245a9d",
          "06600719d0f7a723811c45e4d51f5b742f345309",
          "ba4811c8b433bfa681729ca42cc62b6034f223b0",
          "53f07d095e7e680c5e4569a55a019f2c0348cdc6",
          "2857bd59feb63fcf40fe4baf55401baea6b4feb4"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.18"
        ],
        "fixed_in": [
          "0",
          "5.10.248",
          "5.15.198",
          "6.1.161",
          "6.6.121",
          "6.12.66",
          "6.18.6",
          "6.19"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to ca97360860eb02e3ae4ba42c19b439a0fcecbf06 or e8bfa2401d4c51eca6e48e9b33c798828ca9df61 or 34eb22836e0cdba093baac66599d68c4cd245a9d or 06600719d0f7a723811c45e4d51f5b742f345309 or ba4811c8b433bfa681729ca42cc62b6034f223b0 or 53f07d095e7e680c5e4569a55a019f2c0348cdc6 or 2857bd59feb63fcf40fe4baf55401baea6b4feb4 or later.",
      "Upgrade Linux to 0 or 5.10.248 or 5.15.198 or 6.1.161 or 6.6.121 or 6.12.66 or 6.18.6 or 6.19 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
