{"id":"CVE-2025-39697","aliases":["CVE-2025-39697"],"related":[],"kind":"vulnerability","state":"published","title":"NFS: Fix a race when updating an existing write","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nNFS: Corregir una condición de carrera al actualizar una escritura existente\n\nDespués de que nfs_lock_and_join_requests() comprueba si la solicitud sigue adjunta al mapeo, nada impide que una llamada a nfs_inode_remove_request() tenga éxito hasta que realmente bloqueamos el grupo de páginas.\nLa razón es que quienquiera que haya llamado a nfs_inode_remove_request() no tiene necesariamente un bloqueo en la cabecera del grupo de páginas.\n\nAsí que para evitar condiciones de carrera, tomemos el bloqueo del grupo de páginas antes en nfs_lock_and_join_requests(), y mantengámoslo durante la eliminación de la solicitud en nfs_inode_remove_request().","source":"nvd"}],"published":"2025-09-05T17:21:03.178Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"bd37d6fce184836bd5e7cd90ce40116a4fadaf2a","fixed":"0ff42a32784e0f2cb46a46da8e9f473538c13e1b","status":"affected"},{"type":"git","introduced":"bd37d6fce184836bd5e7cd90ce40116a4fadaf2a","fixed":"f230d40147cc37eb3aef4d50e2e2c06ea73d9a77","status":"affected"},{"type":"git","introduced":"bd37d6fce184836bd5e7cd90ce40116a4fadaf2a","fixed":"c32e3c71aaa1c1ba05da88605e2ddd493c58794f","status":"affected"},{"type":"git","introduced":"bd37d6fce184836bd5e7cd90ce40116a4fadaf2a","fixed":"181feb41f0b268e6288bf9a7b984624d7fe2031d","status":"affected"},{"type":"git","introduced":"bd37d6fce184836bd5e7cd90ce40116a4fadaf2a","fixed":"92278ae36935a54e65fef9f8ea8efe7e80481ace","status":"affected"},{"type":"git","introduced":"bd37d6fce184836bd5e7cd90ce40116a4fadaf2a","fixed":"202a3432d21ac060629a760fff3b0a39859da3ea","status":"affected"},{"type":"git","introduced":"bd37d6fce184836bd5e7cd90ce40116a4fadaf2a","fixed":"76d2e3890fb169168c73f2e4f8375c7cc24a765e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.14","status":"unaffected"},{"type":"semver","introduced":"5.10.242","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.191","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.150","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.104","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.44","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.4","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.14","fixed":"5.10.242"},{"status":"affected","introduced":"5.11","fixed":"5.15.191"},{"status":"affected","introduced":"5.16","fixed":"6.1.150"},{"status":"affected","introduced":"6.2","fixed":"6.6.104"},{"status":"affected","introduced":"6.7","fixed":"6.12.44"},{"status":"affected","introduced":"6.13","fixed":"6.16.4"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0ff42a32784e0f2cb46a46da8e9f473538c13e1b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f230d40147cc37eb3aef4d50e2e2c06ea73d9a77","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c32e3c71aaa1c1ba05da88605e2ddd493c58794f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/181feb41f0b268e6288bf9a7b984624d7fe2031d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92278ae36935a54e65fef9f8ea8efe7e80481ace","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/202a3432d21ac060629a760fff3b0a39859da3ea","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76d2e3890fb169168c73f2e4f8375c7cc24a765e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-10T20:42:24.236Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39697","url":"https://www.cve.org/CVERecord?id=CVE-2025-39697","licence":"CVE Terms of Use","modified":"2026-10-15T01:08:03.870Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39697","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39697","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.267Z","epss":{"score":0.00169,"percentile":0.06536,"date":"2026-12-02T12:00:21.000Z"}}