{
  "id": "CVE-2025-39697",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39697",
  "published_at": "2025-09-05T17:21:03.178Z",
  "title": "NFS: Fix a race when updating an existing write",
  "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\nNFS: Fix a race when updating an existing write\n\nAfter nfs_lock_and_join_requests() tests for whether the request is\nstill attached to the mapping, nothing prevents a call to\nnfs_inode_remove_request() from succeeding until we actually lock the\npage group.\nThe reason is that whoever called nfs_inode_remove_request() doesn't\nnecessarily have a lock on the page group head.\n\nSo in order to avoid races, let's take the page group lock earlier in\nnfs_lock_and_join_requests(), and hold it across the removal of the\nrequest in nfs_inode_remove_request().",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 4.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \u003c 0ff42a32784e0f2cb46a46da8e9f473538c13e1b",
          "\u003e= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \u003c f230d40147cc37eb3aef4d50e2e2c06ea73d9a77",
          "\u003e= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \u003c c32e3c71aaa1c1ba05da88605e2ddd493c58794f",
          "\u003e= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \u003c 181feb41f0b268e6288bf9a7b984624d7fe2031d",
          "\u003e= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \u003c 92278ae36935a54e65fef9f8ea8efe7e80481ace",
          "\u003e= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \u003c 202a3432d21ac060629a760fff3b0a39859da3ea",
          "\u003e= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \u003c 76d2e3890fb169168c73f2e4f8375c7cc24a765e"
        ],
        "fixed_in": [
          "0ff42a32784e0f2cb46a46da8e9f473538c13e1b",
          "f230d40147cc37eb3aef4d50e2e2c06ea73d9a77",
          "c32e3c71aaa1c1ba05da88605e2ddd493c58794f",
          "181feb41f0b268e6288bf9a7b984624d7fe2031d",
          "92278ae36935a54e65fef9f8ea8efe7e80481ace",
          "202a3432d21ac060629a760fff3b0a39859da3ea",
          "76d2e3890fb169168c73f2e4f8375c7cc24a765e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.14"
        ],
        "fixed_in": [
          "0",
          "5.10.242",
          "5.15.191",
          "6.1.150",
          "6.6.104",
          "6.12.44",
          "6.16.4",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 0ff42a32784e0f2cb46a46da8e9f473538c13e1b or f230d40147cc37eb3aef4d50e2e2c06ea73d9a77 or c32e3c71aaa1c1ba05da88605e2ddd493c58794f or 181feb41f0b268e6288bf9a7b984624d7fe2031d or 92278ae36935a54e65fef9f8ea8efe7e80481ace or 202a3432d21ac060629a760fff3b0a39859da3ea or 76d2e3890fb169168c73f2e4f8375c7cc24a765e or later.",
      "Upgrade Linux to 0 or 5.10.242 or 5.15.191 or 6.1.150 or 6.6.104 or 6.12.44 or 6.16.4 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
